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

Go to the source code of this file.

Macros

#define SIBYTE_HDR_FMASK_1250_ALL   0x000000ff
 
#define SIBYTE_HDR_FMASK_1250_PASS1   0x00000001
 
#define SIBYTE_HDR_FMASK_1250_PASS2   0x00000002
 
#define SIBYTE_HDR_FMASK_1250_PASS3   0x00000004
 
#define SIBYTE_HDR_FMASK_112x_ALL   0x00000f00
 
#define SIBYTE_HDR_FMASK_112x_PASS1   0x00000100
 
#define SIBYTE_HDR_FMASK_1480_ALL   0x0000f000
 
#define SIBYTE_HDR_FMASK_1480_PASS1   0x00001000
 
#define SIBYTE_HDR_FMASK_1480_PASS2   0x00002000
 
#define SIBYTE_HDR_FMASK(chip, pass)   (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass)
 
#define SIBYTE_HDR_FMASK_ALLREVS(chip)   (SIBYTE_HDR_FMASK_ ## chip ## _ALL)
 
#define SIBYTE_HDR_FMASK_ALL
 
#define SIBYTE_HDR_FMASK_1250_112x_ALL   (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL)
 
#define SIBYTE_HDR_FMASK_1250_112x   SIBYTE_HDR_FMASK_1250_112x_ALL
 
#define SIBYTE_HDR_FEATURES   SIBYTE_HDR_FMASK_ALL
 
#define SIBYTE_HDR_FMASK_BEFORE(chip, pass)   ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip))
 
#define SIBYTE_HDR_FMASK_AFTER(chip, pass)
 
#define SIBYTE_HDR_FEATURE_CHIP(chip)   (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES))
 
#define SIBYTE_HDR_FEATURE_1250_112x   (SIBYTE_HDR_FEATURE_CHIP(1250) || SIBYTE_HDR_FEATURE_CHIP(112x))
 
#define SIBYTE_HDR_FEATURE(chip, pass)
 
#define SIBYTE_HDR_FEATURE_EXACT(chip, pass)   (!! (SIBYTE_HDR_FMASK(chip, pass) & SIBYTE_HDR_FEATURES))
 
#define SIBYTE_HDR_FEATURE_UP_TO(chip, pass)
 
#define _SB_MAKE64(x)   ((uint64_t)(x))
 
#define _SB_MAKE32(x)   ((uint32_t)(x))
 
#define _SB_MAKEMASK1(n)   (_SB_MAKE64(1) << _SB_MAKE64(n))
 
#define _SB_MAKEMASK1_32(n)   (_SB_MAKE32(1) << _SB_MAKE32(n))
 
#define _SB_MAKEMASK(v, n)   (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n))
 
#define _SB_MAKEMASK_32(v, n)   (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n))
 
#define _SB_MAKEVALUE(v, n)   (_SB_MAKE64(v) << _SB_MAKE64(n))
 
#define _SB_MAKEVALUE_32(v, n)   (_SB_MAKE32(v) << _SB_MAKE32(n))
 
#define _SB_GETVALUE(v, n, m)   ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n))
 
#define _SB_GETVALUE_32(v, n, m)   ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n))
 

Macro Definition Documentation

#define _SB_GETVALUE (   v,
  n,
  m 
)    ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n))

Definition at line 245 of file sb1250_defs.h.

#define _SB_GETVALUE_32 (   v,
  n,
  m 
)    ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n))

Definition at line 246 of file sb1250_defs.h.

#define _SB_MAKE32 (   x)    ((uint32_t)(x))

Definition at line 217 of file sb1250_defs.h.

#define _SB_MAKE64 (   x)    ((uint64_t)(x))

Definition at line 216 of file sb1250_defs.h.

#define _SB_MAKEMASK (   v,
  n 
)    (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n))

Definition at line 235 of file sb1250_defs.h.

#define _SB_MAKEMASK1 (   n)    (_SB_MAKE64(1) << _SB_MAKE64(n))

Definition at line 228 of file sb1250_defs.h.

#define _SB_MAKEMASK1_32 (   n)    (_SB_MAKE32(1) << _SB_MAKE32(n))

Definition at line 229 of file sb1250_defs.h.

#define _SB_MAKEMASK_32 (   v,
  n 
)    (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n))

Definition at line 236 of file sb1250_defs.h.

#define _SB_MAKEVALUE (   v,
  n 
)    (_SB_MAKE64(v) << _SB_MAKE64(n))

Definition at line 242 of file sb1250_defs.h.

#define _SB_MAKEVALUE_32 (   v,
  n 
)    (_SB_MAKE32(v) << _SB_MAKE32(n))

Definition at line 243 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURE (   chip,
  pass 
)
Value:

Definition at line 154 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURE_1250_112x   (SIBYTE_HDR_FEATURE_CHIP(1250) || SIBYTE_HDR_FEATURE_CHIP(112x))

Definition at line 149 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURE_CHIP (   chip)    (!! (SIBYTE_HDR_FMASK_ALLREVS(chip) & SIBYTE_HDR_FEATURES))

Definition at line 144 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURE_EXACT (   chip,
  pass 
)    (!! (SIBYTE_HDR_FMASK(chip, pass) & SIBYTE_HDR_FEATURES))

Definition at line 159 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURE_UP_TO (   chip,
  pass 
)
Value:

Definition at line 163 of file sb1250_defs.h.

#define SIBYTE_HDR_FEATURES   SIBYTE_HDR_FMASK_ALL

Definition at line 129 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK (   chip,
  pass 
)    (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass)

Definition at line 111 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_112x_ALL   0x00000f00

Definition at line 103 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_112x_PASS1   0x00000100

Definition at line 104 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_112x   SIBYTE_HDR_FMASK_1250_112x_ALL

Definition at line 126 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_112x_ALL   (SIBYTE_HDR_FMASK_1250_ALL | SIBYTE_HDR_FMASK_112x_ALL)

Definition at line 124 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_ALL   0x000000ff

Definition at line 98 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_PASS1   0x00000001

Definition at line 99 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_PASS2   0x00000002

Definition at line 100 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1250_PASS3   0x00000004

Definition at line 101 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1480_ALL   0x0000f000

Definition at line 106 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1480_PASS1   0x00001000

Definition at line 107 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_1480_PASS2   0x00002000

Definition at line 108 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_AFTER (   chip,
  pass 
)
Value:

Definition at line 138 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_ALL
#define SIBYTE_HDR_FMASK_ALLREVS (   chip)    (SIBYTE_HDR_FMASK_ ## chip ## _ALL)

Definition at line 113 of file sb1250_defs.h.

#define SIBYTE_HDR_FMASK_BEFORE (   chip,
  pass 
)    ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip))

Definition at line 134 of file sb1250_defs.h.