WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_driverbase.h 文件参考
#include "los_mux.h"
los_driverbase.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  LosDeviceRegs
 
struct  LosDeviceConfig
 
struct  LosDevice
 
struct  LosPowerMgrOps
 
struct  LosDriverOps
 
struct  LosDriver
 

宏定义

#define LOS_ERRNO_DRIVER_INPUT_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x10)
 
#define LOS_ERRNO_DRIVER_MUX_FAIL   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x11)
 
#define LOS_ERRNO_DRIVER_DRIVER_MATCH_FAIL   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x20)
 
#define LOS_ERRNO_DRIVER_DRIVER_PROBE_FAIL   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x21)
 
#define LOS_ERRNO_DRIVER_DRIVER_REGISTERED   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x22)
 
#define LOS_ERRNO_DRIVER_DRIVER_NOTFOUND   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x23)
 
#define LOS_ERRNO_DRIVER_DEVICE_BOUNDED   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x30)
 
#define LOS_ERRNO_DRIVER_DEVICE_INITIALFAIL   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x31)
 
#define LOS_ERRNO_DRIVER_DEVICE_REGISTERED   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x32)
 
#define LOS_ERRNO_DRIVER_DEVICE_BUSY   LOS_ERRNO_OS_ERROR(LOS_MOD_DRIVER, 0x33)
 
#define LOS_FOREACH_DEVICE_LIST_HOOK(device, list, hook)    LOS_DL_LIST_FOR_EACH_ENTRY_HOOK(device, list, struct LosDevice, driverNode, hook)
 iterate over a device list and execute hook function.
 
#define LOS_FOREACH_DEVICE_HOOK(device, hook)    LOS_DL_LIST_FOR_EACH_ENTRY_HOOK(device, &g_deviceList, struct LosDevice, deviceItem, hook)
 iterate over g_deviceList and execute hook function.
 
#define LOS_FOREACH_DEVICE_BY_DRIVER(device, driver)    LOS_FOREACH_DEVICE_LIST_HOOK(device, &(driver)->deviceList, NULL)
 iterate over a driver's deviceList.
 
#define LOS_FOREACH_DEVICE(device)    LOS_FOREACH_DEVICE_HOOK(device, NULL)
 iterate over a device list.
 

函数

UINT32 LOS_DriverRegister (struct LosDriver *drv)
 register a new driver to the system.
 
UINT32 LOS_DriverUnregister (struct LosDriver *drv)
 unregister a driver from the system.
 
UINT32 LOS_DeviceRegister (struct LosDevice *dev)
 register a new device to the system.
 
void LOS_DeviceUnregister (struct LosDevice *dev)
 unregister a device from the system.
 
VOIDLOS_DeviceDataGet (const struct LosDevice *dev)
 get data form a device.
 
UINTPTR LOS_DeviceRegBaseGet (const struct LosDevice *dev, UINT32 index)
 get register base address form a device.
 
UINTPTR LOS_DeviceRegSizeGet (const struct LosDevice *dev, UINT32 index)
 get register size form a device.
 
UINTPTR LOS_DeviceIrqNumGet (const struct LosDevice *dev)
 get interrupt number form a device.
 
INT32 LOS_PmSuspend (VOID)
 suspend all devices in preparedList.
 
VOID LOS_PmResume (VOID)
 resume all devices in suspendedList.
 

变量

LOS_DL_LIST g_deviceList
 

变量说明

◆ g_deviceList

LOS_DL_LIST g_deviceList
extern