Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
xwidget.h File Reference
#include <linux/types.h>
#include <asm/xtalk/xtalk.h>

Go to the source code of this file.

Data Structures

struct  widget_cfg
 
struct  w_err_cmd_word_f
 
union  w_err_cmd_word_u
 
struct  xwidget_hwid_s
 

Macros

#define WIDGET_ID   0x04
 
#define WIDGET_STATUS   0x0c
 
#define WIDGET_ERR_UPPER_ADDR   0x14
 
#define WIDGET_ERR_LOWER_ADDR   0x1c
 
#define WIDGET_CONTROL   0x24
 
#define WIDGET_REQ_TIMEOUT   0x2c
 
#define WIDGET_INTDEST_UPPER_ADDR   0x34
 
#define WIDGET_INTDEST_LOWER_ADDR   0x3c
 
#define WIDGET_ERR_CMD_WORD   0x44
 
#define WIDGET_LLP_CFG   0x4c
 
#define WIDGET_TFLUSH   0x54
 
#define WIDGET_REV_NUM   0xf0000000
 
#define WIDGET_PART_NUM   0x0ffff000
 
#define WIDGET_MFG_NUM   0x00000ffe
 
#define WIDGET_REV_NUM_SHFT   28
 
#define WIDGET_PART_NUM_SHFT   12
 
#define WIDGET_MFG_NUM_SHFT   1
 
#define XWIDGET_PART_NUM(widgetid)   (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)
 
#define XWIDGET_REV_NUM(widgetid)   (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)
 
#define XWIDGET_MFG_NUM(widgetid)   (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)
 
#define WIDGET_LLP_REC_CNT   0xff000000
 
#define WIDGET_LLP_TX_CNT   0x00ff0000
 
#define WIDGET_PENDING   0x0000001f
 
#define WIDGET_ERR_UPPER_ADDR_ONLY   0x0000ffff
 
#define WIDGET_F_BAD_PKT   0x00010000
 
#define WIDGET_LLP_XBAR_CRD   0x0000f000
 
#define WIDGET_LLP_XBAR_CRD_SHFT   12
 
#define WIDGET_CLR_RLLP_CNT   0x00000800
 
#define WIDGET_CLR_TLLP_CNT   0x00000400
 
#define WIDGET_SYS_END   0x00000200
 
#define WIDGET_MAX_TRANS   0x000001f0
 
#define WIDGET_WIDGET_ID   0x0000000f
 
#define WIDGET_INT_VECTOR   0xff000000
 
#define WIDGET_INT_VECTOR_SHFT   24
 
#define WIDGET_TARGET_ID   0x000f0000
 
#define WIDGET_TARGET_ID_SHFT   16
 
#define WIDGET_UPP_ADDR   0x0000ffff
 
#define WIDGET_DIDN   0xf0000000
 
#define WIDGET_SIDN   0x0f000000
 
#define WIDGET_PACTYP   0x00f00000
 
#define WIDGET_TNUM   0x000f8000
 
#define WIDGET_COHERENT   0x00004000
 
#define WIDGET_DS   0x00003000
 
#define WIDGET_GBR   0x00000800
 
#define WIDGET_VBPM   0x00000400
 
#define WIDGET_ERROR   0x00000200
 
#define WIDGET_BARRIER   0x00000100
 
#define WIDGET_LLP_MAXRETRY   0x03ff0000
 
#define WIDGET_LLP_MAXRETRY_SHFT   16
 
#define WIDGET_LLP_NULLTIMEOUT   0x0000fc00
 
#define WIDGET_LLP_NULLTIMEOUT_SHFT   10
 
#define WIDGET_LLP_MAXBURST   0x000003ff
 
#define WIDGET_LLP_MAXBURST_SHFT   0
 
#define XWIDGET_HARDWARE_ID_MATCH(hwid1, hwid2)
 

Typedefs

typedef u32 widgetreg_t
 
typedef struct widget_cfg widget_cfg_t
 
typedef struct xwidget_info_s * xwidget_info_t
 
typedef struct xwidget_hwid_sxwidget_hwid_t
 

Macro Definition Documentation

#define WIDGET_BARRIER   0x00000100

Definition at line 77 of file xwidget.h.

#define WIDGET_CLR_RLLP_CNT   0x00000800

Definition at line 54 of file xwidget.h.

#define WIDGET_CLR_TLLP_CNT   0x00000400

Definition at line 55 of file xwidget.h.

#define WIDGET_COHERENT   0x00004000

Definition at line 72 of file xwidget.h.

#define WIDGET_CONTROL   0x24

Definition at line 22 of file xwidget.h.

#define WIDGET_DIDN   0xf0000000

Definition at line 68 of file xwidget.h.

#define WIDGET_DS   0x00003000

Definition at line 73 of file xwidget.h.

#define WIDGET_ERR_CMD_WORD   0x44

Definition at line 26 of file xwidget.h.

#define WIDGET_ERR_LOWER_ADDR   0x1c

Definition at line 21 of file xwidget.h.

#define WIDGET_ERR_UPPER_ADDR   0x14

Definition at line 20 of file xwidget.h.

#define WIDGET_ERR_UPPER_ADDR_ONLY   0x0000ffff

Definition at line 48 of file xwidget.h.

#define WIDGET_ERROR   0x00000200

Definition at line 76 of file xwidget.h.

#define WIDGET_F_BAD_PKT   0x00010000

Definition at line 51 of file xwidget.h.

#define WIDGET_GBR   0x00000800

Definition at line 74 of file xwidget.h.

#define WIDGET_ID   0x04

Definition at line 18 of file xwidget.h.

#define WIDGET_INT_VECTOR   0xff000000

Definition at line 61 of file xwidget.h.

#define WIDGET_INT_VECTOR_SHFT   24

Definition at line 62 of file xwidget.h.

#define WIDGET_INTDEST_LOWER_ADDR   0x3c

Definition at line 25 of file xwidget.h.

#define WIDGET_INTDEST_UPPER_ADDR   0x34

Definition at line 24 of file xwidget.h.

#define WIDGET_LLP_CFG   0x4c

Definition at line 27 of file xwidget.h.

#define WIDGET_LLP_MAXBURST   0x000003ff

Definition at line 84 of file xwidget.h.

#define WIDGET_LLP_MAXBURST_SHFT   0

Definition at line 85 of file xwidget.h.

#define WIDGET_LLP_MAXRETRY   0x03ff0000

Definition at line 80 of file xwidget.h.

#define WIDGET_LLP_MAXRETRY_SHFT   16

Definition at line 81 of file xwidget.h.

#define WIDGET_LLP_NULLTIMEOUT   0x0000fc00

Definition at line 82 of file xwidget.h.

#define WIDGET_LLP_NULLTIMEOUT_SHFT   10

Definition at line 83 of file xwidget.h.

#define WIDGET_LLP_REC_CNT   0xff000000

Definition at line 43 of file xwidget.h.

#define WIDGET_LLP_TX_CNT   0x00ff0000

Definition at line 44 of file xwidget.h.

#define WIDGET_LLP_XBAR_CRD   0x0000f000

Definition at line 52 of file xwidget.h.

#define WIDGET_LLP_XBAR_CRD_SHFT   12

Definition at line 53 of file xwidget.h.

#define WIDGET_MAX_TRANS   0x000001f0

Definition at line 57 of file xwidget.h.

#define WIDGET_MFG_NUM   0x00000ffe

Definition at line 33 of file xwidget.h.

#define WIDGET_MFG_NUM_SHFT   1

Definition at line 36 of file xwidget.h.

#define WIDGET_PACTYP   0x00f00000

Definition at line 70 of file xwidget.h.

#define WIDGET_PART_NUM   0x0ffff000

Definition at line 32 of file xwidget.h.

#define WIDGET_PART_NUM_SHFT   12

Definition at line 35 of file xwidget.h.

#define WIDGET_PENDING   0x0000001f

Definition at line 45 of file xwidget.h.

#define WIDGET_REQ_TIMEOUT   0x2c

Definition at line 23 of file xwidget.h.

#define WIDGET_REV_NUM   0xf0000000

Definition at line 31 of file xwidget.h.

#define WIDGET_REV_NUM_SHFT   28

Definition at line 34 of file xwidget.h.

#define WIDGET_SIDN   0x0f000000

Definition at line 69 of file xwidget.h.

#define WIDGET_STATUS   0x0c

Definition at line 19 of file xwidget.h.

#define WIDGET_SYS_END   0x00000200

Definition at line 56 of file xwidget.h.

#define WIDGET_TARGET_ID   0x000f0000

Definition at line 63 of file xwidget.h.

#define WIDGET_TARGET_ID_SHFT   16

Definition at line 64 of file xwidget.h.

#define WIDGET_TFLUSH   0x54

Definition at line 28 of file xwidget.h.

#define WIDGET_TNUM   0x000f8000

Definition at line 71 of file xwidget.h.

#define WIDGET_UPP_ADDR   0x0000ffff

Definition at line 65 of file xwidget.h.

#define WIDGET_VBPM   0x00000400

Definition at line 75 of file xwidget.h.

#define WIDGET_WIDGET_ID   0x0000000f

Definition at line 58 of file xwidget.h.

#define XWIDGET_HARDWARE_ID_MATCH (   hwid1,
  hwid2 
)
Value:
(((hwid1)->part_num == (hwid2)->part_num) && \
(((hwid1)->mfg_num == XWIDGET_MFG_NUM_NONE) || \
((hwid2)->mfg_num == XWIDGET_MFG_NUM_NONE) || \
((hwid1)->mfg_num == (hwid2)->mfg_num)))

Definition at line 159 of file xwidget.h.

#define XWIDGET_MFG_NUM (   widgetid)    (((widgetid) & WIDGET_MFG_NUM) >> WIDGET_MFG_NUM_SHFT)

Definition at line 40 of file xwidget.h.

#define XWIDGET_PART_NUM (   widgetid)    (((widgetid) & WIDGET_PART_NUM) >> WIDGET_PART_NUM_SHFT)

Definition at line 38 of file xwidget.h.

#define XWIDGET_REV_NUM (   widgetid)    (((widgetid) & WIDGET_REV_NUM) >> WIDGET_REV_NUM_SHFT)

Definition at line 39 of file xwidget.h.

Typedef Documentation

typedef u32 widgetreg_t

Definition at line 95 of file xwidget.h.

typedef struct xwidget_info_s* xwidget_info_t

Definition at line 142 of file xwidget.h.