Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
sv_addr_ag.h File Reference
#include <arch/sv_addr.agh>

Go to the source code of this file.

Macros

#define __test_sv_addr__   0
 
#define IO_MASK(reg, field)   IO_MASK_ (reg##_, field##_)
 
#define IO_MASK_(reg_, field_)   ( ( ( 1 << reg_##_##field_##_WIDTH ) - 1 ) << reg_##_##field_##_BITNR )
 
#define IO_STATE(reg, field, state)   IO_STATE_ (reg##_, field##_, _##state)
 
#define IO_STATE_(reg_, field_, _state)   ( reg_##_##field_##_state << reg_##_##field_##_BITNR )
 
#define IO_EXTRACT(reg, field, val)   IO_EXTRACT_ (reg##_, field##_, val)
 
#define IO_EXTRACT_(reg_, field_, val)
 
#define IO_STATE_VALUE(reg, field, state)   IO_STATE_VALUE_ (reg##_, field##_, _##state)
 
#define IO_STATE_VALUE_(reg_, field_, _state)   ( reg_##_##field_##_state )
 
#define IO_FIELD(reg, field, val)   IO_FIELD_ (reg##_, field##_, val)
 
#define IO_FIELD_(reg_, field_, val)   ((val) << reg_##_##field_##_BITNR)
 
#define IO_BITNR(reg, field)   IO_BITNR_ (reg##_, field##_)
 
#define IO_BITNR_(reg_, field_)   (reg_##_##field_##_BITNR)
 
#define IO_WIDTH(reg, field)   IO_WIDTH_ (reg##_, field##_)
 
#define IO_WIDTH_(reg_, field_)   (reg_##_##field_##_WIDTH)
 
#define IO_RD(reg)   (*(volatile u32*)(reg))
 
#define IO_RD_B(reg)   (*(volatile u8*)(reg))
 
#define IO_RD_W(reg)   (*(volatile u16*)(reg))
 
#define IO_RD_D(reg)   (*(volatile u32*)(reg))
 
#define MEM_CSE0_START   (0x00000000)
 
#define MEM_CSE0_SIZE   (0x04000000)
 
#define MEM_CSE1_START   (0x04000000)
 
#define MEM_CSE1_SIZE   (0x04000000)
 
#define MEM_CSR0_START   (0x08000000)
 
#define MEM_CSR1_START   (0x0c000000)
 
#define MEM_CSP0_START   (0x10000000)
 
#define MEM_CSP1_START   (0x14000000)
 
#define MEM_CSP2_START   (0x18000000)
 
#define MEM_CSP3_START   (0x1c000000)
 
#define MEM_CSP4_START   (0x20000000)
 
#define MEM_CSP5_START   (0x24000000)
 
#define MEM_CSP6_START   (0x28000000)
 
#define MEM_CSP7_START   (0x2c000000)
 
#define MEM_DRAM_START   (0x40000000)
 
#define MEM_NON_CACHEABLE   (0x80000000)
 
#define IO_TYPECAST_UDWORD   (volatile u32*)
 
#define IO_TYPECAST_RO_UDWORD   (const volatile u32*)
 
#define IO_TYPECAST_UWORD   (volatile u16*)
 
#define IO_TYPECAST_RO_UWORD   (const volatile u16*)
 
#define IO_TYPECAST_BYTE   (volatile u8*)
 
#define IO_TYPECAST_RO_BYTE   (const volatile u8*)
 

Macro Definition Documentation

#define __test_sv_addr__   0
#define IO_BITNR (   reg,
  field 
)    IO_BITNR_ (reg##_, field##_)

Definition at line 57 of file sv_addr_ag.h.

#define IO_BITNR_ (   reg_,
  field_ 
)    (reg_##_##field_##_BITNR)

Definition at line 58 of file sv_addr_ag.h.

#define IO_EXTRACT (   reg,
  field,
  val 
)    IO_EXTRACT_ (reg##_, field##_, val)

Definition at line 40 of file sv_addr_ag.h.

#define IO_EXTRACT_ (   reg_,
  field_,
  val 
)
Value:
( (( ( ( 1 << reg_##_##field_##_WIDTH ) \
- 1 ) << reg_##_##field_##_BITNR ) & (val)) >> reg_##_##field_##_BITNR )

Definition at line 41 of file sv_addr_ag.h.

#define IO_FIELD (   reg,
  field,
  val 
)    IO_FIELD_ (reg##_, field##_, val)

Definition at line 52 of file sv_addr_ag.h.

#define IO_FIELD_ (   reg_,
  field_,
  val 
)    ((val) << reg_##_##field_##_BITNR)

Definition at line 53 of file sv_addr_ag.h.

#define IO_MASK (   reg,
  field 
)    IO_MASK_ (reg##_, field##_)

Definition at line 28 of file sv_addr_ag.h.

#define IO_MASK_ (   reg_,
  field_ 
)    ( ( ( 1 << reg_##_##field_##_WIDTH ) - 1 ) << reg_##_##field_##_BITNR )

Definition at line 29 of file sv_addr_ag.h.

#define IO_RD (   reg)    (*(volatile u32*)(reg))

Definition at line 67 of file sv_addr_ag.h.

#define IO_RD_B (   reg)    (*(volatile u8*)(reg))

Definition at line 68 of file sv_addr_ag.h.

#define IO_RD_D (   reg)    (*(volatile u32*)(reg))

Definition at line 70 of file sv_addr_ag.h.

#define IO_RD_W (   reg)    (*(volatile u16*)(reg))

Definition at line 69 of file sv_addr_ag.h.

#define IO_STATE (   reg,
  field,
  state 
)    IO_STATE_ (reg##_, field##_, _##state)

Definition at line 34 of file sv_addr_ag.h.

#define IO_STATE_ (   reg_,
  field_,
  _state 
)    ( reg_##_##field_##_state << reg_##_##field_##_BITNR )

Definition at line 35 of file sv_addr_ag.h.

#define IO_STATE_VALUE (   reg,
  field,
  state 
)    IO_STATE_VALUE_ (reg##_, field##_, _##state)

Definition at line 46 of file sv_addr_ag.h.

#define IO_STATE_VALUE_ (   reg_,
  field_,
  _state 
)    ( reg_##_##field_##_state )

Definition at line 48 of file sv_addr_ag.h.

#define IO_TYPECAST_BYTE   (volatile u8*)

Definition at line 104 of file sv_addr_ag.h.

#define IO_TYPECAST_RO_BYTE   (const volatile u8*)

Definition at line 105 of file sv_addr_ag.h.

#define IO_TYPECAST_RO_UDWORD   (const volatile u32*)

Definition at line 101 of file sv_addr_ag.h.

#define IO_TYPECAST_RO_UWORD   (const volatile u16*)

Definition at line 103 of file sv_addr_ag.h.

#define IO_TYPECAST_UDWORD   (volatile u32*)

Definition at line 100 of file sv_addr_ag.h.

#define IO_TYPECAST_UWORD   (volatile u16*)

Definition at line 102 of file sv_addr_ag.h.

#define IO_WIDTH (   reg,
  field 
)    IO_WIDTH_ (reg##_, field##_)

Definition at line 61 of file sv_addr_ag.h.

#define IO_WIDTH_ (   reg_,
  field_ 
)    (reg_##_##field_##_WIDTH)

Definition at line 62 of file sv_addr_ag.h.

#define MEM_CSE0_SIZE   (0x04000000)

Definition at line 77 of file sv_addr_ag.h.

#define MEM_CSE0_START   (0x00000000)

Definition at line 76 of file sv_addr_ag.h.

#define MEM_CSE1_SIZE   (0x04000000)

Definition at line 79 of file sv_addr_ag.h.

#define MEM_CSE1_START   (0x04000000)

Definition at line 78 of file sv_addr_ag.h.

#define MEM_CSP0_START   (0x10000000)

Definition at line 82 of file sv_addr_ag.h.

#define MEM_CSP1_START   (0x14000000)

Definition at line 83 of file sv_addr_ag.h.

#define MEM_CSP2_START   (0x18000000)

Definition at line 84 of file sv_addr_ag.h.

#define MEM_CSP3_START   (0x1c000000)

Definition at line 85 of file sv_addr_ag.h.

#define MEM_CSP4_START   (0x20000000)

Definition at line 86 of file sv_addr_ag.h.

#define MEM_CSP5_START   (0x24000000)

Definition at line 87 of file sv_addr_ag.h.

#define MEM_CSP6_START   (0x28000000)

Definition at line 88 of file sv_addr_ag.h.

#define MEM_CSP7_START   (0x2c000000)

Definition at line 89 of file sv_addr_ag.h.

#define MEM_CSR0_START   (0x08000000)

Definition at line 80 of file sv_addr_ag.h.

#define MEM_CSR1_START   (0x0c000000)

Definition at line 81 of file sv_addr_ag.h.

#define MEM_DRAM_START   (0x40000000)

Definition at line 90 of file sv_addr_ag.h.

#define MEM_NON_CACHEABLE   (0x80000000)

Definition at line 92 of file sv_addr_ag.h.