function_description(opl_minte.c)
[minte module]
local function declaration | |
ssize_t | opl_minte_read (struct file *filp, char *buffer, size_t length, loff_t *offset) |
description: copy the opl_chip_irq_pending(indicate which interrupt occured) to user App, which will handle its interrupt.if the no irq pending occured,the process will sleep until the isr wake up it. | |
ssize_t | opl_minte_write (struct file *filp, const char *buffer, size_t length, loff_t *offset) |
description: because the enable irq or disable irq will be in atomic mode,so it should be operated in kernel mode is correct. | |
函数 | |
int __init | opl_minte_init (void) |
description: The driver module entry.to register the chrdev and request irq. | |
void __exit | opl_minte_exit (void) |
description: it is called when the module removed. | |
module_init (opl_minte_init) | |
module_exit (opl_minte_exit) | |
MODULE_LICENSE ("GPL2") | |
MODULE_AUTHOR ("stephanxu <[email protected]>") | |
MODULE_DESCRIPTION ("control interface for opulan ipmux-e switch chip") |
函数文档
|
|
|
|
|
|
|
|
|
|
|
description: it is called when the module removed. do the reverse of opl_minte_init().
在文件opl_minte.c第219行定义。 参考 OPL_MINTE_DEVICE、opl_minte_hw0_irqexit及OPL_MINTE_MAJOR. 参考自 main(). |
|
description: The driver module entry.to register the chrdev and request irq. and some essential initialization.
在文件opl_minte.c第189行定义。 参考 g_opl_chip_waitq、OPL_MINTE_DEVICE、opl_minte_fops、opl_minte_hw0_irqinit及OPL_MINTE_MAJOR. 参考自 main(). |
|
description: copy the opl_chip_irq_pending(indicate which interrupt occured) to user App, which will handle its interrupt.if the no irq pending occured,the process will sleep until the isr wake up it.
在文件opl_minte.c第109行定义。 参考 clear_irq_pending()、g_opl_chip_irq_event、g_opl_chip_waitq、get_irq_pending()、opl_minte_is_open及u32. |
|
description: because the enable irq or disable irq will be in atomic mode,so it should be operated in kernel mode is correct. the value in user *buffer it is the enable or disable. 1. enable 0. disable if the value is enable, to enble the ipmux interrupt, call the function in malta_int.c
在文件opl_minte.c第146行定义。 参考 ipmux_irq_disable()、ipmux_irq_enable()、OPL_IPMUX_IRQ及opl_minte_is_open. |
Generated at Mon Jul 30 16:43:48 2007 for IPMUX1IPMUX2IPMUX3 by
