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

浏览源代码.

结构体

struct  osal_poll_
 
struct  osal_ioctl_cmd_
 
struct  osal_vm_
 
struct  osal_fileops_
 
struct  osal_pmops_
 
struct  osal_dev_
 
struct  osal_smccc_info
 
struct  osal_smccc_res
 

宏定义

#define OSAL_POLLIN   0x0001U
 
#define OSAL_POLLPRI   0x0002U
 
#define OSAL_POLLOUT   0x0004U
 
#define OSAL_POLLERR   0x0008U
 
#define OSAL_POLLHUP   0x0010U
 
#define OSAL_POLLNVAL   0x0020U
 
#define OSAL_POLLRDNORM   0x0040U
 
#define OSAL_POLLRDBAND   0x0080U
 
#define OSAL_POLLWRNORM   0x0100U
 
#define OSAL_DEV_NAME_LEN   32
 
#define OSAL_NOCACHE   0
 
#define OSAL_CACHE   1
 

类型定义

typedef struct osal_poll_ osal_poll
 
typedef struct osal_ioctl_cmd_ osal_ioctl_cmd
 
typedef struct osal_vm_ osal_vm
 
typedef struct osal_fileops_ osal_fileops
 
typedef struct osal_pmops_ osal_pmops
 
typedef struct osal_dev_ osal_dev
 
typedef enum osal_kobject_action_ osal_kobject_action
 

枚举

enum  osal_kobject_action_ {
  OSAL_KOBJ_ADD , OSAL_KOBJ_REMOVE , OSAL_KOBJ_CHANGE , OSAL_KOBJ_MOVE ,
  OSAL_KOBJ_ONLINE , OSAL_KOBJ_OFFLINE , OSAL_KOBJ_BIND , OSAL_KOBJ_UNBIND ,
  OSAL_KOBJ_MAX
}
 

函数

void osal_pm_lowpower_enter (void)
 Invoke the low-power callback function of all devices.
 
void osal_pm_lowpower_exit (void)
 Invoke the low-power-exit callback function of all devices.
 
osal_devosal_dev_create (const char *name)
 Returns a pointer of the osal_dev type for which memory is applied.
 
int osal_dev_destroy (osal_dev *dev)
 Free the dev's memory.
 
int osal_dev_register (osal_dev *dev)
 register device.
 
void osal_dev_unregister (osal_dev *dev)
 unregister device.
 
void osal_device_set_async (unsigned int minor)
 Set the device to wake up asynchronously.
 
void osal_poll_wait (osal_poll *table, osal_wait *wait)
 Adds the current process to the wait list specified by the wait parameter.
 
void osal_notify_poll (osal_wait *wait)
 Wakes up the current process from the wait list specified by the wait parameter.
 
int osal_remap_pfn_range (osal_vm *vm, unsigned long addr, unsigned long pfn, unsigned long size)
 remap kernel memory to userspace.
 
int osal_try_to_freeze (void)
 try to freeze the current task.
 
int osal_set_freezable (void)
 make current task freezable and try to freeze the current task.
 
int osal_kobject_uevent_env (osal_dev *dev, osal_kobject_action action, char *envp[])
 send an uevent with environmental data.
 
int osal_fasync_helper (int fd, void *filp, int mode, void **fapp)
 Setting up the character device driver's fasync queue.
 
void osal_fasync_notify (void **fapp, int sig, int band)
 Send asynchronous notifications.
 
void osal_pgprot_noncached (osal_vm *vm)
 get nocached prot_page.
 
void osal_pgprot_cached (osal_vm *vm)
 get cached prot_page.
 
void osal_pgprot_writecombine (osal_vm *vm)
 get writecombine prot_page.
 
void osal_smccc_smc (const osal_smccc_info *info, osal_smccc_res *res)
 make SMC calls.
 
int osal_opendev (const char *path, int flag,...)
 open_device.
 
int osal_closedev (int fd)
 close device.
 
int osal_readdev (int fd, void *buf, unsigned long count)
 read device.
 
int osal_writedev (int fd, const void *buf, unsigned long count)
 write device.
 
int osal_ioctldev (int fd, unsigned int cmd,...)
 Perform other operations on the device.
 
int osal_init (void)
 osal linux userspace init.
 
void osal_exit (void)
 osal linux userspace exit.
 

宏定义说明

◆ OSAL_CACHE

#define OSAL_CACHE   1

◆ OSAL_DEV_NAME_LEN

#define OSAL_DEV_NAME_LEN   32

◆ OSAL_NOCACHE

#define OSAL_NOCACHE   0

◆ OSAL_POLLERR

#define OSAL_POLLERR   0x0008U

◆ OSAL_POLLHUP

#define OSAL_POLLHUP   0x0010U

◆ OSAL_POLLIN

#define OSAL_POLLIN   0x0001U

◆ OSAL_POLLNVAL

#define OSAL_POLLNVAL   0x0020U

◆ OSAL_POLLOUT

#define OSAL_POLLOUT   0x0004U

◆ OSAL_POLLPRI

#define OSAL_POLLPRI   0x0002U

◆ OSAL_POLLRDBAND

#define OSAL_POLLRDBAND   0x0080U

◆ OSAL_POLLRDNORM

#define OSAL_POLLRDNORM   0x0040U

◆ OSAL_POLLWRNORM

#define OSAL_POLLWRNORM   0x0100U

类型定义说明

◆ osal_dev

typedef struct osal_dev_ osal_dev

◆ osal_fileops

typedef struct osal_fileops_ osal_fileops

◆ osal_ioctl_cmd

◆ osal_kobject_action

◆ osal_pmops

typedef struct osal_pmops_ osal_pmops

◆ osal_poll

typedef struct osal_poll_ osal_poll

◆ osal_vm

typedef struct osal_vm_ osal_vm

枚举类型说明

◆ osal_kobject_action_

枚举值
OSAL_KOBJ_ADD 
OSAL_KOBJ_REMOVE 
OSAL_KOBJ_CHANGE 
OSAL_KOBJ_MOVE 
OSAL_KOBJ_ONLINE 
OSAL_KOBJ_OFFLINE 
OSAL_KOBJ_BIND 
OSAL_KOBJ_UNBIND 
OSAL_KOBJ_MAX