29#ifndef _LOS_DRIVER_BASE_PRI_H
30#define _LOS_DRIVER_BASE_PRI_H
39#define DEVICE_LOCK(dev) (VOID)LOS_MuxPend((dev)->mutex, LOS_WAIT_FOREVER)
40#define DEVICE_UNLOCK(dev) (VOID)LOS_MuxPost((dev)->mutex)
42#define DRIVER_LOCK(drv) (VOID)LOS_MuxPend((drv)->mutex, LOS_WAIT_FOREVER)
43#define DRIVER_UNLOCK(drv) (VOID)LOS_MuxPost((drv)->mutex)
45#define PM_LOCK(lock) (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)
46#define PM_UNLOCK(lock) (VOID)LOS_MuxPost((lock))
48#define DRIVER_BASE_LOCK(lock) (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)
49#define DRIVER_BASE_UNLOCK(lock) (VOID)LOS_MuxPost((lock))
60 return (strcmp(dev->
name, drv->
name) == 0);
#define STATIC
Definition common_def.h:57
#define INLINE
Definition common_def.h:65
void OsDevicePmRemove(struct LosDevice *dev)
UINT32 OsDriverBaseInit(VOID)
STATIC INLINE VOID OsSysRemoveDevice(struct LosDevice *dev)
Definition los_driverbase_pri.h:86
STATIC INLINE BOOL OsDeviceMatchDriver(struct LosDevice *dev, struct LosDriver *drv)
Definition los_driverbase_pri.h:58
void OsDevicePmAdd(struct LosDevice *dev)
UINT32 OsDriverAttachDevice(struct LosDriver *drv, struct LosDevice *dev)
#define DRIVER_BASE_LOCK(lock)
Definition los_driverbase_pri.h:48
STATIC INLINE VOID OsSysAddDriver(struct LosDriver *drv)
Definition los_driverbase_pri.h:95
UINT32 OsDriverDetachDevice(struct LosDriver *drv, struct LosDevice *dev)
STATIC INLINE VOID OsSysRemoveDriver(struct LosDriver *drv)
Definition los_driverbase_pri.h:104
STATIC INLINE VOID OsDeviceBindDriver(struct LosDevice *dev, struct LosDriver *drv)
Definition los_driverbase_pri.h:63
STATIC INLINE VOID OsSysAddDevice(struct LosDevice *dev)
Definition los_driverbase_pri.h:77
STATIC INLINE VOID OsDeviceUnbindDriver(struct LosDevice *dev, struct LosDriver *drv)
Definition los_driverbase_pri.h:70
#define DRIVER_BASE_UNLOCK(lock)
Definition los_driverbase_pri.h:49
#define DRIVER_LOCK(drv)
Definition los_driverbase_pri.h:42
#define DRIVER_UNLOCK(drv)
Definition los_driverbase_pri.h:43
#define VOID
Definition los_typedef.h:88
#define TRUE
Definition los_typedef.h:98
#define FALSE
Definition los_typedef.h:94
unsigned int UINT32
Definition los_typedef.h:52
size_t BOOL
Definition los_typedef.h:83
Definition los_driverbase.h:70
const CHAR * name
Definition los_driverbase.h:71
BOOL isRegistered
Definition los_driverbase.h:77
LOS_DL_LIST deviceItem
Definition los_driverbase.h:74
LOS_DL_LIST driverNode
Definition los_driverbase.h:73
Definition los_driverbase.h:111
BOOL isRegistered
Definition los_driverbase.h:116
LOS_DL_LIST deviceList
Definition los_driverbase.h:113
LOS_DL_LIST driverItem
Definition los_driverbase.h:114
const CHAR * name
Definition los_driverbase.h:112