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

Go to the source code of this file.

Macros

#define XWIDGET_NONE   -1
 
#define XWIDGET_PART_NUM_NONE   -1
 
#define XWIDGET_REV_NUM_NONE   -1
 
#define XWIDGET_MFG_NUM_NONE   -1
 
#define XIO_NOWHERE   (0xFFFFFFFFFFFFFFFFull)
 
#define XIO_ADDR_BITS   (0x0000FFFFFFFFFFFFull)
 
#define XIO_PORT_BITS   (0xF000000000000000ull)
 
#define XIO_PORT_SHIFT   (60)
 
#define XIO_PACKED(x)   (((x)&XIO_PORT_BITS) != 0)
 
#define XIO_ADDR(x)   ((x)&XIO_ADDR_BITS)
 
#define XIO_PORT(x)   ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT))
 
#define XIO_PACK(p, o)   ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS))
 

Typedefs

typedef char xwidgetnum_t
 
typedef int xwidget_part_num_t
 
typedef int xwidget_rev_num_t
 
typedef int xwidget_mfg_num_t
 
typedef struct xtalk_piomap_s * xtalk_piomap_t
 

Macro Definition Documentation

#define XIO_ADDR (   x)    ((x)&XIO_ADDR_BITS)

Definition at line 46 of file xtalk.h.

#define XIO_ADDR_BITS   (0x0000FFFFFFFFFFFFull)

Definition at line 41 of file xtalk.h.

#define XIO_NOWHERE   (0xFFFFFFFFFFFFFFFFull)

Definition at line 40 of file xtalk.h.

#define XIO_PACK (   p,
 
)    ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS))

Definition at line 48 of file xtalk.h.

#define XIO_PACKED (   x)    (((x)&XIO_PORT_BITS) != 0)

Definition at line 45 of file xtalk.h.

#define XIO_PORT (   x)    ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT))

Definition at line 47 of file xtalk.h.

#define XIO_PORT_BITS   (0xF000000000000000ull)

Definition at line 42 of file xtalk.h.

#define XIO_PORT_SHIFT   (60)

Definition at line 43 of file xtalk.h.

#define XWIDGET_MFG_NUM_NONE   -1

Definition at line 33 of file xtalk.h.

#define XWIDGET_NONE   -1

Definition at line 21 of file xtalk.h.

#define XWIDGET_PART_NUM_NONE   -1

Definition at line 25 of file xtalk.h.

#define XWIDGET_REV_NUM_NONE   -1

Definition at line 29 of file xtalk.h.

Typedef Documentation

typedef struct xtalk_piomap_s* xtalk_piomap_t

Definition at line 35 of file xtalk.h.

Definition at line 31 of file xtalk.h.

Definition at line 23 of file xtalk.h.

Definition at line 27 of file xtalk.h.

typedef char xwidgetnum_t

Definition at line 19 of file xtalk.h.