WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_driverbase_pri.h 文件参考
#include "los_driverbase.h"
los_driverbase_pri.h 的引用(Include)关系图:

浏览源代码.

宏定义

#define DEVICE_LOCK(dev)   (VOID)LOS_MuxPend((dev)->mutex, LOS_WAIT_FOREVER)
 
#define DEVICE_UNLOCK(dev)   (VOID)LOS_MuxPost((dev)->mutex)
 
#define DRIVER_LOCK(drv)   (VOID)LOS_MuxPend((drv)->mutex, LOS_WAIT_FOREVER)
 
#define DRIVER_UNLOCK(drv)   (VOID)LOS_MuxPost((drv)->mutex)
 
#define PM_LOCK(lock)   (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)
 
#define PM_UNLOCK(lock)   (VOID)LOS_MuxPost((lock))
 
#define DRIVER_BASE_LOCK(lock)   (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)
 
#define DRIVER_BASE_UNLOCK(lock)   (VOID)LOS_MuxPost((lock))
 

函数

UINT32 OsDriverBaseInit (VOID)
 
UINT32 OsDriverAttachDevice (struct LosDriver *drv, struct LosDevice *dev)
 
UINT32 OsDriverDetachDevice (struct LosDriver *drv, struct LosDevice *dev)
 
void OsDevicePmAdd (struct LosDevice *dev)
 
void OsDevicePmRemove (struct LosDevice *dev)
 
STATIC INLINE BOOL OsDeviceMatchDriver (struct LosDevice *dev, struct LosDriver *drv)
 
STATIC INLINE VOID OsDeviceBindDriver (struct LosDevice *dev, struct LosDriver *drv)
 
STATIC INLINE VOID OsDeviceUnbindDriver (struct LosDevice *dev, struct LosDriver *drv)
 
STATIC INLINE VOID OsSysAddDevice (struct LosDevice *dev)
 
STATIC INLINE VOID OsSysRemoveDevice (struct LosDevice *dev)
 
STATIC INLINE VOID OsSysAddDriver (struct LosDriver *drv)
 
STATIC INLINE VOID OsSysRemoveDriver (struct LosDriver *drv)
 

变量

LOS_DL_LIST g_deviceList
 
LOS_DL_LIST g_driverList
 
UINT32 g_driverBaseMutex
 
UINT32 g_pmListMutex
 

宏定义说明

◆ DEVICE_LOCK

#define DEVICE_LOCK (   dev)    (VOID)LOS_MuxPend((dev)->mutex, LOS_WAIT_FOREVER)

◆ DEVICE_UNLOCK

#define DEVICE_UNLOCK (   dev)    (VOID)LOS_MuxPost((dev)->mutex)

◆ DRIVER_BASE_LOCK

#define DRIVER_BASE_LOCK (   lock)    (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)

◆ DRIVER_BASE_UNLOCK

#define DRIVER_BASE_UNLOCK (   lock)    (VOID)LOS_MuxPost((lock))

◆ DRIVER_LOCK

#define DRIVER_LOCK (   drv)    (VOID)LOS_MuxPend((drv)->mutex, LOS_WAIT_FOREVER)

◆ DRIVER_UNLOCK

#define DRIVER_UNLOCK (   drv)    (VOID)LOS_MuxPost((drv)->mutex)

◆ PM_LOCK

#define PM_LOCK (   lock)    (VOID)LOS_MuxPend((lock), LOS_WAIT_FOREVER)

◆ PM_UNLOCK

#define PM_UNLOCK (   lock)    (VOID)LOS_MuxPost((lock))

函数说明

◆ OsDeviceBindDriver()

STATIC INLINE VOID OsDeviceBindDriver ( struct LosDevice dev,
struct LosDriver drv 
)

◆ OsDeviceMatchDriver()

STATIC INLINE BOOL OsDeviceMatchDriver ( struct LosDevice dev,
struct LosDriver drv 
)

◆ OsDevicePmAdd()

void OsDevicePmAdd ( struct LosDevice dev)

◆ OsDevicePmRemove()

void OsDevicePmRemove ( struct LosDevice dev)

◆ OsDeviceUnbindDriver()

STATIC INLINE VOID OsDeviceUnbindDriver ( struct LosDevice dev,
struct LosDriver drv 
)

◆ OsDriverAttachDevice()

UINT32 OsDriverAttachDevice ( struct LosDriver drv,
struct LosDevice dev 
)

◆ OsDriverBaseInit()

UINT32 OsDriverBaseInit ( VOID  )

◆ OsDriverDetachDevice()

UINT32 OsDriverDetachDevice ( struct LosDriver drv,
struct LosDevice dev 
)

◆ OsSysAddDevice()

STATIC INLINE VOID OsSysAddDevice ( struct LosDevice dev)

◆ OsSysAddDriver()

STATIC INLINE VOID OsSysAddDriver ( struct LosDriver drv)

◆ OsSysRemoveDevice()

STATIC INLINE VOID OsSysRemoveDevice ( struct LosDevice dev)

◆ OsSysRemoveDriver()

STATIC INLINE VOID OsSysRemoveDriver ( struct LosDriver drv)

变量说明

◆ g_deviceList

LOS_DL_LIST g_deviceList
extern

◆ g_driverBaseMutex

UINT32 g_driverBaseMutex
extern

◆ g_driverList

LOS_DL_LIST g_driverList
extern

◆ g_pmListMutex

UINT32 g_pmListMutex
extern