mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
61c6f10791
PD#SWPL-102608 Problem: add dmc dev access callback func Solution: add dmc access callback func use see to https://confluence.amlogic.com/display/SW/06+DMC+Dev+Access Verify: sc2 Change-Id: I54faa5f383045b0441665af292a926cee52fca72 Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
28 lines
656 B
C
28 lines
656 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __DMC_DEV_ACCESS_H__
|
|
#define __DMC_DEV_ACCESS_H__
|
|
|
|
#define MAX_NAME 15
|
|
|
|
struct dmc_dev_access_data {
|
|
unsigned long addr;
|
|
unsigned long size;
|
|
};
|
|
|
|
struct dmc_notifier_list {
|
|
char port_name[MAX_NAME];
|
|
char port_id;
|
|
struct list_head list;
|
|
};
|
|
|
|
void dmc_dev_access(unsigned char id, unsigned long addr, unsigned long size);
|
|
int show_dmc_notifier_list(char *buf);
|
|
int register_dmc_dev_access_notifier(char *dev_name, struct notifier_block *nb);
|
|
int unregister_dmc_dev_access_notifier(char *dev_name, struct notifier_block *nb);
|
|
|
|
#endif
|