[Mod] 添加Kconfiglib 子组件仓库

This commit is contained in:
gaoyang3513
2024-11-16 16:02:17 +08:00
parent b0fff11f1f
commit 9f441d3fb6
4 changed files with 218 additions and 0 deletions

View File

@ -0,0 +1,29 @@
/*******************************************************************************
* HangZhou Hikvision Digital Technology Co., Ltd. All Right Reserved.
* Author :
* Version : V1.0.0 2024.11.15
* Description :
* Note : anonymity@hikvision.com.cn Modified 2024.11.15
******************************************************************************/
#ifndef INCLUDE_WIDGET_OSAL_OSDEV_H_
#define INCLUDE_WIDGET_OSAL_OSDEV_H_
typedef struct osdev {
int id;
const char *name;
void *obj;
} OSAL_osdev;
typedef struct osdrv {
int (*probe)(struct osdev *);
int (*remove)(struct osdev *);
void *obj;
} OSAL_osdrv;
OSAL_osdev *OSAL_osdevAlloc(const char *name, int id);
int OSAL_osdevRegister(OSAL_osdev *osdev);
void OSAL_osdevUnregister(OSAL_osdev *osdev);
void *OSAL_osdevGetDrvdata(const OSAL_osdev *osdev);
void OSAL_osdevSetDrvdata(OSAL_osdev *osdev, void *data);
#endif /* INCLUDE_WIDGET_OSAL_OSDEV_H_ */