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

Go to the source code of this file.

Data Structures

struct  kl_config_hdr
 
struct  lboard_s
 
struct  klinfo_s
 

Macros

#define NODE_OFFSET_TO_LBOARD(nasid, off)   (lboard_t*)(GLOBAL_CAC_ADDR((nasid), (off)))
 
#define KLCLASS_MASK   0xf0
 
#define KLCLASS_NONE   0x00
 
#define KLCLASS_NODE   0x10 /* CPU, Memory and HUB board */
 
#define KLCLASS_CPU   KLCLASS_NODE
 
#define KLCLASS_IO
 
#define KLCLASS_ROUTER   0x30 /* Router board */
 
#define KLCLASS_MIDPLANE
 
#define KLCLASS_IOBRICK   0x70 /* IP35 iobrick */
 
#define KLCLASS_MAX   8 /* Bump this if a new CLASS is added */
 
#define KLCLASS(_x)   ((_x) & KLCLASS_MASK)
 
#define KLTYPE_MASK   0x0f
 
#define KLTYPE(_x)   ((_x) & KLTYPE_MASK)
 
#define KLTYPE_SNIA   (KLCLASS_CPU | 0x1)
 
#define KLTYPE_TIO   (KLCLASS_CPU | 0x2)
 
#define KLTYPE_ROUTER   (KLCLASS_ROUTER | 0x1)
 
#define KLTYPE_META_ROUTER   (KLCLASS_ROUTER | 0x3)
 
#define KLTYPE_REPEATER_ROUTER   (KLCLASS_ROUTER | 0x4)
 
#define KLTYPE_IOBRICK_XBOW   (KLCLASS_MIDPLANE | 0x2)
 
#define KLTYPE_IOBRICK   (KLCLASS_IOBRICK | 0x0)
 
#define KLTYPE_NBRICK   (KLCLASS_IOBRICK | 0x4)
 
#define KLTYPE_PXBRICK   (KLCLASS_IOBRICK | 0x6)
 
#define KLTYPE_IXBRICK   (KLCLASS_IOBRICK | 0x7)
 
#define KLTYPE_CGBRICK   (KLCLASS_IOBRICK | 0x8)
 
#define KLTYPE_OPUSBRICK   (KLCLASS_IOBRICK | 0x9)
 
#define KLTYPE_SABRICK   (KLCLASS_IOBRICK | 0xa)
 
#define KLTYPE_IABRICK   (KLCLASS_IOBRICK | 0xb)
 
#define KLTYPE_PABRICK   (KLCLASS_IOBRICK | 0xc)
 
#define KLTYPE_GABRICK   (KLCLASS_IOBRICK | 0xd)
 
#define MAX_COMPTS_PER_BRD   24
 

Typedefs

typedef s32 klconf_off_t
 
typedef struct kl_config_hdr kl_config_hdr_t
 
typedef struct lboard_s lboard_t
 
typedef struct klinfo_s klinfo_t
 

Macro Definition Documentation

#define KLCLASS (   _x)    ((_x) & KLCLASS_MASK)

Definition at line 141 of file klconfig.h.

#define KLCLASS_CPU   KLCLASS_NODE

Definition at line 134 of file klconfig.h.

#define KLCLASS_IO
Value:
0x20 /* BaseIO, 4 ch SCSI, ethernet, FDDI
and the non-graphics widget boards */

Definition at line 135 of file klconfig.h.

#define KLCLASS_IOBRICK   0x70 /* IP35 iobrick */

Definition at line 138 of file klconfig.h.

#define KLCLASS_MASK   0xf0

Definition at line 131 of file klconfig.h.

#define KLCLASS_MAX   8 /* Bump this if a new CLASS is added */

Definition at line 139 of file klconfig.h.

#define KLCLASS_MIDPLANE
Value:
0x40 /* We need to treat this as a board
so that we can record error info */

Definition at line 137 of file klconfig.h.

#define KLCLASS_NODE   0x10 /* CPU, Memory and HUB board */

Definition at line 133 of file klconfig.h.

#define KLCLASS_NONE   0x00

Definition at line 132 of file klconfig.h.

#define KLCLASS_ROUTER   0x30 /* Router board */

Definition at line 136 of file klconfig.h.

#define KLTYPE (   _x)    ((_x) & KLTYPE_MASK)

Definition at line 149 of file klconfig.h.

#define KLTYPE_CGBRICK   (KLCLASS_IOBRICK | 0x8)

Definition at line 164 of file klconfig.h.

#define KLTYPE_GABRICK   (KLCLASS_IOBRICK | 0xd)

Definition at line 169 of file klconfig.h.

#define KLTYPE_IABRICK   (KLCLASS_IOBRICK | 0xb)

Definition at line 167 of file klconfig.h.

#define KLTYPE_IOBRICK   (KLCLASS_IOBRICK | 0x0)

Definition at line 160 of file klconfig.h.

#define KLTYPE_IOBRICK_XBOW   (KLCLASS_MIDPLANE | 0x2)

Definition at line 158 of file klconfig.h.

#define KLTYPE_IXBRICK   (KLCLASS_IOBRICK | 0x7)

Definition at line 163 of file klconfig.h.

#define KLTYPE_MASK   0x0f

Definition at line 148 of file klconfig.h.

#define KLTYPE_META_ROUTER   (KLCLASS_ROUTER | 0x3)

Definition at line 155 of file klconfig.h.

#define KLTYPE_NBRICK   (KLCLASS_IOBRICK | 0x4)

Definition at line 161 of file klconfig.h.

#define KLTYPE_OPUSBRICK   (KLCLASS_IOBRICK | 0x9)

Definition at line 165 of file klconfig.h.

#define KLTYPE_PABRICK   (KLCLASS_IOBRICK | 0xc)

Definition at line 168 of file klconfig.h.

#define KLTYPE_PXBRICK   (KLCLASS_IOBRICK | 0x6)

Definition at line 162 of file klconfig.h.

#define KLTYPE_REPEATER_ROUTER   (KLCLASS_ROUTER | 0x4)

Definition at line 156 of file klconfig.h.

#define KLTYPE_ROUTER   (KLCLASS_ROUTER | 0x1)

Definition at line 154 of file klconfig.h.

#define KLTYPE_SABRICK   (KLCLASS_IOBRICK | 0xa)

Definition at line 166 of file klconfig.h.

#define KLTYPE_SNIA   (KLCLASS_CPU | 0x1)

Definition at line 151 of file klconfig.h.

#define KLTYPE_TIO   (KLCLASS_CPU | 0x2)

Definition at line 152 of file klconfig.h.

#define MAX_COMPTS_PER_BRD   24

Definition at line 176 of file klconfig.h.

#define NODE_OFFSET_TO_LBOARD (   nasid,
  off 
)    (lboard_t*)(GLOBAL_CAC_ADDR((nasid), (off)))

Definition at line 32 of file klconfig.h.

Typedef Documentation

typedef s32 klconf_off_t

Definition at line 20 of file klconfig.h.