|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
函数 | |
| 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_dev * | osal_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. | |
| int osal_closedev | ( | int | fd | ) |
close device.
| osal_dev * osal_dev_create | ( | const char * | name | ) |
Returns a pointer of the osal_dev type for which memory is applied.
| name | [in] The name of device. |
| int osal_dev_destroy | ( | osal_dev * | dev | ) |
Free the dev's memory.
| dev | [in] The result of osal_dev_create. |
| 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.
| minor | [in] The minor of device. |
| void osal_exit | ( | void | ) |
osal linux userspace exit.
| 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.
| int osal_init | ( | void | ) |
osal linux userspace init.
| int osal_ioctldev | ( | int | fd, |
| unsigned int | cmd, | ||
| ... | |||
| ) |
Perform other operations on the device.
| int osal_kobject_uevent_env | ( | osal_dev * | dev, |
| osal_kobject_action | action, | ||
| char * | envp[] | ||
| ) |
send an uevent with environmental data.
| void osal_notify_poll | ( | osal_wait * | wait | ) |
Wakes up the current process from the wait list specified by the wait parameter.
| int osal_opendev | ( | const char * | path, |
| int | flag, | ||
| ... | |||
| ) |
open_device.
| void osal_pgprot_cached | ( | osal_vm * | vm | ) |
get cached prot_page.
| void osal_pgprot_noncached | ( | osal_vm * | vm | ) |
get nocached prot_page.
| void osal_pgprot_writecombine | ( | osal_vm * | vm | ) |
get writecombine prot_page.
| 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.
Adds the current process to the wait list specified by the wait parameter.
| int osal_readdev | ( | int | fd, |
| void * | buf, | ||
| unsigned long | count | ||
| ) |
read device.
| int osal_remap_pfn_range | ( | osal_vm * | vm, |
| unsigned long | addr, | ||
| unsigned long | pfn, | ||
| unsigned long | size | ||
| ) |
remap kernel memory to userspace.
| int osal_set_freezable | ( | void | ) |
make current task freezable and try to freeze the current task.
| void osal_smccc_smc | ( | const osal_smccc_info * | info, |
| osal_smccc_res * | res | ||
| ) |
make SMC calls.
| int osal_try_to_freeze | ( | void | ) |
try to freeze the current task.
| int osal_writedev | ( | int | fd, |
| const void * | buf, | ||
| unsigned long | count | ||
| ) |
write device.