Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
access.c File Reference
#include <linux/io.h>
#include "internals.h"

Go to the source code of this file.

Functions

unsigned long intc_phys_to_virt (struct intc_desc_int *d, unsigned long address)
 
unsigned int intc_get_reg (struct intc_desc_int *d, unsigned long address)
 
unsigned int intc_set_field_from_handle (unsigned int value, unsigned int field_value, unsigned int handle)
 
unsigned long intc_get_field_from_handle (unsigned int value, unsigned int handle)
 

Variables

unsigned long(* intc_reg_fns [])(unsigned long addr, unsigned long h, unsigned long data)
 
unsigned long(* intc_enable_fns [])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long, unsigned long, unsigned long), unsigned int irq)
 
unsigned long(* intc_disable_fns [])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long, unsigned long, unsigned long), unsigned int irq)
 
unsigned long(* intc_enable_noprio_fns [])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long, unsigned long, unsigned long), unsigned int irq)
 

Function Documentation

unsigned long intc_get_field_from_handle ( unsigned int  value,
unsigned int  handle 
)

Definition at line 66 of file access.c.

unsigned int intc_get_reg ( struct intc_desc_int d,
unsigned long  address 
)

Definition at line 39 of file access.c.

unsigned long intc_phys_to_virt ( struct intc_desc_int d,
unsigned long  address 
)

Definition at line 14 of file access.c.

unsigned int intc_set_field_from_handle ( unsigned int  value,
unsigned int  field_value,
unsigned int  handle 
)

Definition at line 54 of file access.c.

Variable Documentation

unsigned long(* intc_disable_fns[])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long,unsigned long,unsigned long), unsigned int irq)
Initial value:
= {
[MODE_ENABLE_REG] = intc_mode_zero,
[MODE_MASK_REG] = intc_mode_field,
[MODE_DUAL_REG] = intc_mode_field,
[MODE_PRIO_REG] = intc_mode_zero,
[MODE_PCLR_REG] = intc_mode_field,
}

Definition at line 222 of file access.c.

unsigned long(* intc_enable_fns[])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long,unsigned long,unsigned long), unsigned int irq)
Initial value:
= {
[MODE_ENABLE_REG] = intc_mode_field,
[MODE_MASK_REG] = intc_mode_zero,
[MODE_DUAL_REG] = intc_mode_field,
[MODE_PRIO_REG] = intc_mode_prio,
[MODE_PCLR_REG] = intc_mode_prio,
}

Definition at line 209 of file access.c.

unsigned long(* intc_enable_noprio_fns[])(unsigned long addr, unsigned long handle, unsigned long(*fn)(unsigned long,unsigned long,unsigned long), unsigned int irq)
Initial value:
= {
[MODE_ENABLE_REG] = intc_mode_field,
[MODE_MASK_REG] = intc_mode_zero,
[MODE_DUAL_REG] = intc_mode_field,
[MODE_PRIO_REG] = intc_mode_field,
[MODE_PCLR_REG] = intc_mode_field,
}

Definition at line 235 of file access.c.

unsigned long(* intc_reg_fns[])(unsigned long addr, unsigned long h, unsigned long data)
Initial value:
= {
[REG_FN_TEST_BASE + 0] = test_8,
[REG_FN_TEST_BASE + 1] = test_16,
[REG_FN_TEST_BASE + 3] = test_32,
[REG_FN_WRITE_BASE + 0] = write_8,
[REG_FN_WRITE_BASE + 1] = write_16,
[REG_FN_WRITE_BASE + 3] = write_32,
[REG_FN_MODIFY_BASE + 0] = modify_8,
[REG_FN_MODIFY_BASE + 1] = modify_16,
[REG_FN_MODIFY_BASE + 3] = modify_32,
}

Definition at line 195 of file access.c.