IPMUX1IPMUX2IPMUX3: register mmap module

RTL96xx (RTL9607,...)

register mmap module


详细描述

THE FORMAT is FOR DOXYGEN to Generate the document opulan.com.

作者:
[email protected]
版本:
v0.2
日期:
June-29-2007 author date description ------------------------------------------------------------------- hxu June-29-2007 mainly from the old version and rewrite the opulan_read function.
hxu July-05-2007 distill the piece of the ipmux driver code dedicated for the opl switch chip register map.


模块

组  function_description(opl_reg_mmap.c)
#define OPL_REG_MAJOR   110
#define OPL_REG_DEVICE   "opl_reg"

local function declaration

int opl_reg_open (struct inode *inode, struct file *filp)
ssize_t opl_reg_write (struct file *filp, const char *buffer, size_t length, loff_t *offset)
int opl_reg_release (struct inode *inode, struct file *filp)
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.

local variable declaration and definition

u32 opl_reg_open_count = 0
u32 opl_reg_is_open = 0
file_operations opl_reg_fops

宏定义文档

#define OPL_REG_DEVICE   "opl_reg"
 

在文件opl_reg_mmap.c32行定义。

参考自 opl_reg_exit()opl_reg_init().

#define OPL_REG_MAJOR   110
 

在文件opl_reg_mmap.c31行定义。

参考自 opl_reg_exit()opl_reg_init().


函数文档

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行定义。

int opl_reg_open struct inode *  inode,
struct file *  filp
[static]
 

在文件opl_reg_mmap.c150行定义。

参考 opl_reg_is_openopl_reg_open_count.

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行定义。

int opl_reg_release struct inode *  inode,
struct file *  filp
[static]
 

在文件opl_reg_mmap.c159行定义。

参考 opl_reg_is_openopl_reg_open_count.

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

在文件opl_reg_mmap.c107行定义。


变量文档

struct file_operations opl_reg_fops
 

初始化序列:

 {
  .read = opl_reg_read,
  .write = opl_reg_write,
  .mmap = opl_reg_mmap,
  .open = opl_reg_open,
  .release = opl_reg_release, 
}

在文件opl_reg_mmap.c75行定义。

参考自 opl_reg_init().

u32 opl_reg_is_open = 0 [static]
 

在文件opl_reg_mmap.c74行定义。

参考自 opl_reg_open()opl_reg_release().

u32 opl_reg_open_count = 0 [static]
 

在文件opl_reg_mmap.c73行定义。

参考自 opl_reg_open()opl_reg_release().


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