Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
addrs.h File Reference

Go to the source code of this file.

Macros

#define NODE_SIZE_BITS   32
 
#define BWIN_SIZE_BITS   29
 
#define NASID_BITMASK   (0xffLL)
 
#define NASID_BITS   8
 
#define NASID_SHFT   32
 
#define NASID_META_BITS   4
 
#define NASID_LOCAL_BITS   4
 
#define BDDIR_UPPER_MASK   (UINT64_CAST 0xfffff << 10)
 
#define BDECC_UPPER_MASK   (UINT64_CAST 0x7ffffff << 3)
 
#define NODE_ADDRSPACE_SIZE   (UINT64_CAST 1 << NODE_SIZE_BITS)
 
#define NASID_MASK   (UINT64_CAST NASID_BITMASK << NASID_SHFT)
 
#define NASID_GET(_pa)
 
#define NODE_SWIN_BASE(nasid, widget)
 
#define BWIN_INDEX_BITS   3
 
#define BWIN_SIZE   (UINT64_CAST 1 << BWIN_SIZE_BITS)
 
#define BWIN_SIZEMASK   (BWIN_SIZE - 1)
 
#define BWIN_WIDGET_MASK   0x7
 
#define NODE_BWIN_BASE0(nasid)   (NODE_IO_BASE(nasid) + BWIN_SIZE)
 
#define NODE_BWIN_BASE(nasid, bigwin)
 
#define BWIN_WIDGETADDR(addr)   ((addr) & BWIN_SIZEMASK)
 
#define BWIN_WINDOWNUM(addr)   (((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK)
 
#define NODE_BWIN_ADDR(nasid, addr)
 
#define CALIAS_BASE   CAC_BASE
 
#define BRIDGE_REG_PTR(_base, _off)
 
#define SN0_WIDGET_BASE(_nasid, _wid)   (NODE_SWIN_BASE((_nasid), (_wid)))
 
#define SABLE_LOG_TRIGGER(_map)
 
#define KERN_NMI_ADDR(nasid, slice)
 
#define IP27PROM_ELSC_SHFT   10
 
#define IP27PROM_ELSC_SIZE   (1 << IP27PROM_ELSC_SHFT)
 
#define FREEMEM_BASE   PHYS_TO_K0(0x2000000)
 
#define IO6PROM_STACK_SHFT   14 /* stack per cpu */
 
#define IO6PROM_STACK_SIZE   (1 << IO6PROM_STACK_SHFT)
 
#define IP27PROM_ENTRY   PHYS_TO_COMPATK1(0x1fc00000)
 
#define IP27PROM_RESTART   PHYS_TO_COMPATK1(0x1fc00008)
 
#define IP27PROM_SLAVELOOP   PHYS_TO_COMPATK1(0x1fc00010)
 
#define IP27PROM_PODMODE   PHYS_TO_COMPATK1(0x1fc00018)
 
#define IP27PROM_IOC3UARTPOD   PHYS_TO_COMPATK1(0x1fc00020)
 
#define IP27PROM_FLASHLEDS   PHYS_TO_COMPATK1(0x1fc00028)
 
#define IP27PROM_REPOD   PHYS_TO_COMPATK1(0x1fc00030)
 
#define IP27PROM_LAUNCHSLAVE   PHYS_TO_COMPATK1(0x1fc00038)
 
#define IP27PROM_WAITSLAVE   PHYS_TO_COMPATK1(0x1fc00040)
 
#define IP27PROM_POLLSLAVE   PHYS_TO_COMPATK1(0x1fc00048)
 
#define KL_UART_BASE   LOCAL_HUB_ADDR(MD_UREG0_0) /* base of UART regs */
 
#define KL_UART_CMD   LOCAL_HUB_ADDR(MD_UREG0_0) /* UART command reg */
 
#define KL_UART_DATA   LOCAL_HUB_ADDR(MD_UREG0_1) /* UART data reg */
 
#define KL_I2C_REG   MD_UREG0_0 /* I2C reg */
 
#define CACHE_ERR_EFRAME   0x400
 
#define CACHE_ERR_ECCFRAME   (CACHE_ERR_EFRAME + EF_SIZE)
 
#define CACHE_ERR_SP_PTR   (0x1000 - 32) /* why -32? TBD */
 
#define CACHE_ERR_IBASE_PTR   (0x1000 - 40)
 
#define CACHE_ERR_SP   (CACHE_ERR_SP_PTR - 16)
 
#define CACHE_ERR_AREA_SIZE   (ARCS_SPB_OFFSET - CACHE_ERR_EFRAME)
 
#define _ARCSPROM
 

Macro Definition Documentation

#define _ARCSPROM

Definition at line 276 of file addrs.h.

#define BDDIR_UPPER_MASK   (UINT64_CAST 0xfffff << 10)

Definition at line 76 of file addrs.h.

#define BDECC_UPPER_MASK   (UINT64_CAST 0x7ffffff << 3)

Definition at line 77 of file addrs.h.

#define BRIDGE_REG_PTR (   _base,
  _off 
)
Value:
((volatile bridgereg_t *) \
((__psunsigned_t)(_base) + (__psunsigned_t)(_off)))

Definition at line 139 of file addrs.h.

#define BWIN_INDEX_BITS   3

Definition at line 103 of file addrs.h.

#define BWIN_SIZE   (UINT64_CAST 1 << BWIN_SIZE_BITS)

Definition at line 104 of file addrs.h.

#define BWIN_SIZE_BITS   29

Definition at line 68 of file addrs.h.

#define BWIN_SIZEMASK   (BWIN_SIZE - 1)

Definition at line 105 of file addrs.h.

#define BWIN_WIDGET_MASK   0x7

Definition at line 106 of file addrs.h.

#define BWIN_WIDGETADDR (   addr)    ((addr) & BWIN_SIZEMASK)

Definition at line 111 of file addrs.h.

#define BWIN_WINDOWNUM (   addr)    (((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK)

Definition at line 112 of file addrs.h.

#define CACHE_ERR_AREA_SIZE   (ARCS_SPB_OFFSET - CACHE_ERR_EFRAME)

Definition at line 272 of file addrs.h.

#define CACHE_ERR_ECCFRAME   (CACHE_ERR_EFRAME + EF_SIZE)

Definition at line 268 of file addrs.h.

#define CACHE_ERR_EFRAME   0x400

Definition at line 265 of file addrs.h.

#define CACHE_ERR_IBASE_PTR   (0x1000 - 40)

Definition at line 270 of file addrs.h.

#define CACHE_ERR_SP   (CACHE_ERR_SP_PTR - 16)

Definition at line 271 of file addrs.h.

#define CACHE_ERR_SP_PTR   (0x1000 - 32) /* why -32? TBD */

Definition at line 269 of file addrs.h.

#define CALIAS_BASE   CAC_BASE

Definition at line 135 of file addrs.h.

#define FREEMEM_BASE   PHYS_TO_K0(0x2000000)

Definition at line 231 of file addrs.h.

#define IO6PROM_STACK_SHFT   14 /* stack per cpu */

Definition at line 233 of file addrs.h.

#define IO6PROM_STACK_SIZE   (1 << IO6PROM_STACK_SHFT)

Definition at line 234 of file addrs.h.

#define IP27PROM_ELSC_SHFT   10

Definition at line 221 of file addrs.h.

#define IP27PROM_ELSC_SIZE   (1 << IP27PROM_ELSC_SHFT)

Definition at line 222 of file addrs.h.

#define IP27PROM_ENTRY   PHYS_TO_COMPATK1(0x1fc00000)

Definition at line 240 of file addrs.h.

#define IP27PROM_FLASHLEDS   PHYS_TO_COMPATK1(0x1fc00028)

Definition at line 245 of file addrs.h.

#define IP27PROM_IOC3UARTPOD   PHYS_TO_COMPATK1(0x1fc00020)

Definition at line 244 of file addrs.h.

#define IP27PROM_LAUNCHSLAVE   PHYS_TO_COMPATK1(0x1fc00038)

Definition at line 247 of file addrs.h.

#define IP27PROM_PODMODE   PHYS_TO_COMPATK1(0x1fc00018)

Definition at line 243 of file addrs.h.

#define IP27PROM_POLLSLAVE   PHYS_TO_COMPATK1(0x1fc00048)

Definition at line 249 of file addrs.h.

#define IP27PROM_REPOD   PHYS_TO_COMPATK1(0x1fc00030)

Definition at line 246 of file addrs.h.

#define IP27PROM_RESTART   PHYS_TO_COMPATK1(0x1fc00008)

Definition at line 241 of file addrs.h.

#define IP27PROM_SLAVELOOP   PHYS_TO_COMPATK1(0x1fc00010)

Definition at line 242 of file addrs.h.

#define IP27PROM_WAITSLAVE   PHYS_TO_COMPATK1(0x1fc00040)

Definition at line 248 of file addrs.h.

#define KERN_NMI_ADDR (   nasid,
  slice 
)
Value:

Definition at line 148 of file addrs.h.

#define KL_I2C_REG   MD_UREG0_0 /* I2C reg */

Definition at line 254 of file addrs.h.

#define KL_UART_BASE   LOCAL_HUB_ADDR(MD_UREG0_0) /* base of UART regs */

Definition at line 251 of file addrs.h.

#define KL_UART_CMD   LOCAL_HUB_ADDR(MD_UREG0_0) /* UART command reg */

Definition at line 252 of file addrs.h.

#define KL_UART_DATA   LOCAL_HUB_ADDR(MD_UREG0_1) /* UART data reg */

Definition at line 253 of file addrs.h.

#define NASID_BITMASK   (0xffLL)

Definition at line 70 of file addrs.h.

#define NASID_BITS   8

Definition at line 71 of file addrs.h.

#define NASID_GET (   _pa)
Value:

Definition at line 84 of file addrs.h.

#define NASID_LOCAL_BITS   4

Definition at line 74 of file addrs.h.

#define NASID_MASK   (UINT64_CAST NASID_BITMASK << NASID_SHFT)

Definition at line 83 of file addrs.h.

#define NASID_META_BITS   4

Definition at line 73 of file addrs.h.

#define NASID_SHFT   32

Definition at line 72 of file addrs.h.

#define NODE_ADDRSPACE_SIZE   (UINT64_CAST 1 << NODE_SIZE_BITS)

Definition at line 81 of file addrs.h.

#define NODE_BWIN_ADDR (   nasid,
  addr 
)
Value:
(((addr) >= NODE_BWIN_BASE0(nasid)) && \
BWIN_SIZE)))

Definition at line 123 of file addrs.h.

#define NODE_BWIN_BASE (   nasid,
  bigwin 
)
Value:
(NODE_BWIN_BASE0(nasid) + \

Definition at line 108 of file addrs.h.

#define NODE_BWIN_BASE0 (   nasid)    (NODE_IO_BASE(nasid) + BWIN_SIZE)

Definition at line 107 of file addrs.h.

#define NODE_SIZE_BITS   32

Definition at line 67 of file addrs.h.

#define NODE_SWIN_BASE (   nasid,
  widget 
)
Value:
((widget == 0) ? NODE_BWIN_BASE((nasid), SWIN0_BIGWIN) \
: RAW_NODE_SWIN_BASE(nasid, widget))

Definition at line 89 of file addrs.h.

#define SABLE_LOG_TRIGGER (   _map)

Definition at line 145 of file addrs.h.

#define SN0_WIDGET_BASE (   _nasid,
  _wid 
)    (NODE_SWIN_BASE((_nasid), (_wid)))

Definition at line 142 of file addrs.h.