IPMUX1IPMUX2IPMUX3: function_description(opl_reg_mmap.c)

RTL96xx (RTL9607,...)

function_description(opl_reg_mmap.c)
[register mmap module]


local function declaration

ssize_t opl_reg_read (struct file *filp, char *buffer, size_t length, loff_t *offset)
 description:
int opl_reg_mmap (struct file *file, struct vm_area_struct *vma)
 description: memory map the ipmux register into user space to access it.

函数

int __init opl_reg_init (void)
 description: The driver module entry.to register the chrdev and request irq.
void __exit opl_reg_exit (void)
 description: it is called when the module removed.
 module_init (opl_reg_init)
 module_exit (opl_reg_exit)
 MODULE_LICENSE ("GPL2")
 MODULE_AUTHOR ("stephanxu <[email protected]>")
 MODULE_DESCRIPTION ("dedicated the module for mmap the opulan switch chip register.")

函数文档

MODULE_AUTHOR "stephanxu <[email protected]>"   ) 
 

MODULE_DESCRIPTION "dedicated the module for mmap the opulan switch chip register."   ) 
 

module_exit opl_reg_exit   ) 
 

module_init opl_reg_init   ) 
 

MODULE_LICENSE "GPL2"   ) 
 

void __exit opl_reg_exit void   )  [static]
 

description: it is called when the module removed.

do the reverse of opl_reg_module_init.

参数:
void 
返回:
NULL
参见:
Deprecated:

在文件opl_reg_mmap.c193行定义。

参考 OPL_REG_DEVICEOPL_REG_MAJOR.

参考自 main().

int __init opl_reg_init void   )  [static]
 

description: The driver module entry.to register the chrdev and request irq.

and some essential initialization.

参数:
void 
返回值:
0 success
!0 failure.the module cant be inserted into os.
参见:
insmod rmmod
Deprecated:

在文件opl_reg_mmap.c176行定义。

参考 OPL_REG_DEVICEopl_reg_fopsOPL_REG_MAJOR.

参考自 main().

int opl_reg_mmap struct file *  file,
struct vm_area_struct *  vma
[static]
 

description: memory map the ipmux register into user space to access it.

which will reduce the spense on copy value between kernel space with user space. and reduce the dependency on interface of OS. the ipmux register must be NOcached and NO swap out and NO Coredump.

参数:
struct file *file
struct vm_area_struct *vma
返回值:
0 success.
-(x) failure.
参见:
mmap manual.
Deprecated:

在文件opl_reg_mmap.c124行定义。

ssize_t opl_reg_read struct file *  filp,
char *  buffer,
size_t  length,
loff_t *  offset
[static]
 

description:

参数:
@param 
@return 
返回值:
@retval 
参见:
Deprecated:

在文件opl_reg_mmap.c102行定义。


Generated at Mon Jul 30 16:43:48 2007 for IPMUX1IPMUX2IPMUX3 by  doxygen 1.3.9.1