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

Go to the source code of this file.

Data Structures

struct  xb_linkregs_s
 
struct  xbow_s
 

Macros

#define XBOW_PORT_8   0x8
 
#define XBOW_PORT_C   0xc
 
#define XBOW_PORT_F   0xf
 
#define MAX_XBOW_PORTS   8 /* number of ports on xbow chip */
 
#define BASE_XBOW_PORT   XBOW_PORT_8 /* Lowest external port */
 
#define XBOW_CREDIT   4
 
#define MAX_XBOW_NAME   16
 
#define xb_wid_id   xb_widget.w_id
 
#define xb_wid_stat   xb_widget.w_status
 
#define xb_wid_err_upper   xb_widget.w_err_upper_addr
 
#define xb_wid_err_lower   xb_widget.w_err_lower_addr
 
#define xb_wid_control   xb_widget.w_control
 
#define xb_wid_req_timeout   xb_widget.w_req_timeout
 
#define xb_wid_int_upper   xb_widget.w_intdest_upper_addr
 
#define xb_wid_int_lower   xb_widget.w_intdest_lower_addr
 
#define xb_wid_err_cmdword   xb_widget.w_err_cmd_word
 
#define xb_wid_llp   xb_widget.w_llp_cfg
 
#define xb_wid_stat_clr   xb_widget.w_tflush
 
#define xb_link(p)   xb_link_raw[(p) & (MAX_XBOW_PORTS - 1)]
 
#define XB_FLAGS_EXISTS   0x1 /* device exists */
 
#define XB_FLAGS_MASTER   0x2
 
#define XB_FLAGS_SLAVE   0x0
 
#define XB_FLAGS_GBR   0x4
 
#define XB_FLAGS_16BIT   0x8
 
#define XB_FLAGS_8BIT   0x0
 
#define XBOW_WIDGET_IS_VALID(wid)   ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_F)
 
#define XBOW_ARB_IS_UPPER(wid)   ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_B)
 
#define XBOW_ARB_IS_LOWER(wid)   ((wid) >= XBOW_PORT_C && (wid) <= XBOW_PORT_F)
 
#define XBOW_ARB_OFF(wid)   (XBOW_ARB_IS_UPPER(wid) ? 0x1c : 0x24)
 
#define XBOW_WID_ID   WIDGET_ID
 
#define XBOW_WID_STAT   WIDGET_STATUS
 
#define XBOW_WID_ERR_UPPER   WIDGET_ERR_UPPER_ADDR
 
#define XBOW_WID_ERR_LOWER   WIDGET_ERR_LOWER_ADDR
 
#define XBOW_WID_CONTROL   WIDGET_CONTROL
 
#define XBOW_WID_REQ_TO   WIDGET_REQ_TIMEOUT
 
#define XBOW_WID_INT_UPPER   WIDGET_INTDEST_UPPER_ADDR
 
#define XBOW_WID_INT_LOWER   WIDGET_INTDEST_LOWER_ADDR
 
#define XBOW_WID_ERR_CMDWORD   WIDGET_ERR_CMD_WORD
 
#define XBOW_WID_LLP   WIDGET_LLP_CFG
 
#define XBOW_WID_STAT_CLR   WIDGET_TFLUSH
 
#define XBOW_WID_ARB_RELOAD   0x5c
 
#define XBOW_WID_PERF_CTR_A   0x64
 
#define XBOW_WID_PERF_CTR_B   0x6c
 
#define XBOW_WID_NIC   0x74
 
#define XBOW_W0_RST_FNC   0x00007C
 
#define XBOW_L8_RST_FNC   0x000084
 
#define XBOW_L9_RST_FNC   0x00008c
 
#define XBOW_LA_RST_FNC   0x000094
 
#define XBOW_LB_RST_FNC   0x00009c
 
#define XBOW_LC_RST_FNC   0x0000a4
 
#define XBOW_LD_RST_FNC   0x0000ac
 
#define XBOW_LE_RST_FNC   0x0000b4
 
#define XBOW_LF_RST_FNC   0x0000bc
 
#define XBOW_RESET_FENCE(x)
 
#define XBOW_LOCK   0x0000c4
 
#define XBOW_LOCK_CLR   0x0000cc
 
#define XBOW_WID_UNDEF   0xe4
 
#define XB_LINK_BASE   0x100
 
#define XB_LINK_OFFSET   0x40
 
#define XB_LINK_REG_BASE(x)   (XB_LINK_BASE + ((x) & (MAX_XBOW_PORTS - 1)) * XB_LINK_OFFSET)
 
#define XB_LINK_IBUF_FLUSH(x)   (XB_LINK_REG_BASE(x) + 0x4)
 
#define XB_LINK_CTRL(x)   (XB_LINK_REG_BASE(x) + 0xc)
 
#define XB_LINK_STATUS(x)   (XB_LINK_REG_BASE(x) + 0x14)
 
#define XB_LINK_ARB_UPPER(x)   (XB_LINK_REG_BASE(x) + 0x1c)
 
#define XB_LINK_ARB_LOWER(x)   (XB_LINK_REG_BASE(x) + 0x24)
 
#define XB_LINK_STATUS_CLR(x)   (XB_LINK_REG_BASE(x) + 0x2c)
 
#define XB_LINK_RESET(x)   (XB_LINK_REG_BASE(x) + 0x34)
 
#define XB_LINK_AUX_STATUS(x)   (XB_LINK_REG_BASE(x) + 0x3c)
 
#define XB_CTRL_LINKALIVE_IE   0x80000000 /* link comes alive */
 
#define XB_CTRL_PERF_CTR_MODE_MSK   0x30000000 /* perf counter mode */
 
#define XB_CTRL_IBUF_LEVEL_MSK
 
#define XB_CTRL_8BIT_MODE
 
#define XB_CTRL_BAD_LLP_PKT
 
#define XB_CTRL_WIDGET_CR_MSK
 
#define XB_CTRL_WIDGET_CR_SHFT
 
#define XB_CTRL_ILLEGAL_DST_IE
 
#define XB_CTRL_OALLOC_IBUF_IE
 
#define XB_CTRL_BNDWDTH_ALLOC_IE   0x00000100 /* bandwidth alloc */
 
#define XB_CTRL_RCV_CNT_OFLOW_IE   0x00000080 /* rcv retry overflow */
 
#define XB_CTRL_XMT_CNT_OFLOW_IE   0x00000040 /* xmt retry overflow */
 
#define XB_CTRL_XMT_MAX_RTRY_IE   0x00000020 /* max transmit retry */
 
#define XB_CTRL_RCV_IE   0x00000010 /* receive */
 
#define XB_CTRL_XMT_RTRY_IE   0x00000008 /* transmit retry */
 
#define XB_CTRL_MAXREQ_TOUT_IE
 
#define XB_CTRL_SRC_TOUT_IE   0x00000001 /* source timeout */
 
#define XB_STAT_LINKALIVE   XB_CTRL_LINKALIVE_IE
 
#define XB_STAT_MULTI_ERR   0x00040000 /* multi error */
 
#define XB_STAT_ILLEGAL_DST_ERR   XB_CTRL_ILLEGAL_DST_IE
 
#define XB_STAT_OALLOC_IBUF_ERR   XB_CTRL_OALLOC_IBUF_IE
 
#define XB_STAT_BNDWDTH_ALLOC_ID_MSK   0x0000ff00 /* port bitmask */
 
#define XB_STAT_RCV_CNT_OFLOW_ERR   XB_CTRL_RCV_CNT_OFLOW_IE
 
#define XB_STAT_XMT_CNT_OFLOW_ERR   XB_CTRL_XMT_CNT_OFLOW_IE
 
#define XB_STAT_XMT_MAX_RTRY_ERR   XB_CTRL_XMT_MAX_RTRY_IE
 
#define XB_STAT_RCV_ERR   XB_CTRL_RCV_IE
 
#define XB_STAT_XMT_RTRY_ERR   XB_CTRL_XMT_RTRY_IE
 
#define XB_STAT_MAXREQ_TOUT_ERR   XB_CTRL_MAXREQ_TOUT_IE
 
#define XB_STAT_SRC_TOUT_ERR   XB_CTRL_SRC_TOUT_IE
 
#define XB_AUX_STAT_RCV_CNT   0xff000000
 
#define XB_AUX_STAT_XMT_CNT   0x00ff0000
 
#define XB_AUX_STAT_TOUT_DST   0x0000ff00
 
#define XB_AUX_LINKFAIL_RST_BAD   0x00000040
 
#define XB_AUX_STAT_PRESENT   0x00000020
 
#define XB_AUX_STAT_PORT_WIDTH   0x00000010
 
#define XB_ARB_GBR_MSK   0x1f
 
#define XB_ARB_RR_MSK   0x7
 
#define XB_ARB_GBR_SHFT(x)   (((x) & 0x3) * 8)
 
#define XB_ARB_RR_SHFT(x)   (((x) & 0x3) * 8 + 5)
 
#define XB_ARB_GBR_CNT(reg, x)   ((reg) >> XB_ARB_GBR_SHFT(x) & XB_ARB_GBR_MSK)
 
#define XB_ARB_RR_CNT(reg, x)   ((reg) >> XB_ARB_RR_SHFT(x) & XB_ARB_RR_MSK)
 
#define XB_WID_STAT_LINK_INTR_SHFT   (24)
 
#define XB_WID_STAT_LINK_INTR_MASK   (0xFF << XB_WID_STAT_LINK_INTR_SHFT)
 
#define XB_WID_STAT_LINK_INTR(x)   (0x1 << (((x)&7) + XB_WID_STAT_LINK_INTR_SHFT))
 
#define XB_WID_STAT_WIDGET0_INTR   0x00800000
 
#define XB_WID_STAT_SRCID_MASK   0x000003c0 /* Xbridge only */
 
#define XB_WID_STAT_REG_ACC_ERR   0x00000020
 
#define XB_WID_STAT_RECV_TOUT   0x00000010 /* Xbridge only */
 
#define XB_WID_STAT_ARB_TOUT   0x00000008 /* Xbridge only */
 
#define XB_WID_STAT_XTALK_ERR   0x00000004
 
#define XB_WID_STAT_DST_TOUT   0x00000002 /* Xbridge only */
 
#define XB_WID_STAT_MULTI_ERR   0x00000001
 
#define XB_WID_STAT_SRCID_SHFT   6
 
#define XB_WID_CTRL_REG_ACC_IE   XB_WID_STAT_REG_ACC_ERR
 
#define XB_WID_CTRL_RECV_TOUT   XB_WID_STAT_RECV_TOUT
 
#define XB_WID_CTRL_ARB_TOUT   XB_WID_STAT_ARB_TOUT
 
#define XB_WID_CTRL_XTALK_IE   XB_WID_STAT_XTALK_ERR
 
#define XBOW_WIDGET_PART_NUM   0x0 /* crossbow */
 
#define XXBOW_WIDGET_PART_NUM   0xd000 /* Xbridge */
 
#define XBOW_WIDGET_MFGR_NUM   0x0
 
#define XXBOW_WIDGET_MFGR_NUM   0x0
 
#define PXBOW_WIDGET_PART_NUM   0xd100 /* PIC */
 
#define XBOW_REV_1_0   0x1 /* xbow rev 1.0 is "1" */
 
#define XBOW_REV_1_1   0x2 /* xbow rev 1.1 is "2" */
 
#define XBOW_REV_1_2   0x3 /* xbow rev 1.2 is "3" */
 
#define XBOW_REV_1_3   0x4 /* xbow rev 1.3 is "4" */
 
#define XBOW_REV_2_0   0x5 /* xbow rev 2.0 is "5" */
 
#define XXBOW_PART_REV_1_0   (XXBOW_WIDGET_PART_NUM << 4 | 0x1 )
 
#define XXBOW_PART_REV_2_0   (XXBOW_WIDGET_PART_NUM << 4 | 0x2 )
 
#define XBOW_WID_ARB_RELOAD_INT   0x3f /* GBR reload interval */
 
#define IS_XBRIDGE_XBOW(wid)
 
#define IS_PIC_XBOW(wid)
 
#define XBOW_WAR_ENABLED(pv, widid)   ((1 << XWIDGET_REV_NUM(widid)) & pv)
 

Typedefs

typedef struct xb_linkregs_s xb_linkregs_t
 
typedef struct xbow_s xbow_t
 

Macro Definition Documentation

#define BASE_XBOW_PORT   XBOW_PORT_8 /* Lowest external port */

Definition at line 17 of file xbow.h.

#define IS_PIC_XBOW (   wid)
Value:
XWIDGET_MFG_NUM(wid) == XXBOW_WIDGET_MFGR_NUM)

Definition at line 287 of file xbow.h.

#define IS_XBRIDGE_XBOW (   wid)
Value:
XWIDGET_MFG_NUM(wid) == XXBOW_WIDGET_MFGR_NUM)

Definition at line 283 of file xbow.h.

#define MAX_XBOW_NAME   16

Definition at line 21 of file xbow.h.

#define MAX_XBOW_PORTS   8 /* number of ports on xbow chip */

Definition at line 16 of file xbow.h.

#define PXBOW_WIDGET_PART_NUM   0xd100 /* PIC */

Definition at line 269 of file xbow.h.

#define XB_ARB_GBR_CNT (   reg,
  x 
)    ((reg) >> XB_ARB_GBR_SHFT(x) & XB_ARB_GBR_MSK)

Definition at line 236 of file xbow.h.

#define XB_ARB_GBR_MSK   0x1f

Definition at line 232 of file xbow.h.

#define XB_ARB_GBR_SHFT (   x)    (((x) & 0x3) * 8)

Definition at line 234 of file xbow.h.

#define XB_ARB_RR_CNT (   reg,
  x 
)    ((reg) >> XB_ARB_RR_SHFT(x) & XB_ARB_RR_MSK)

Definition at line 237 of file xbow.h.

#define XB_ARB_RR_MSK   0x7

Definition at line 233 of file xbow.h.

#define XB_ARB_RR_SHFT (   x)    (((x) & 0x3) * 8 + 5)

Definition at line 235 of file xbow.h.

#define XB_AUX_LINKFAIL_RST_BAD   0x00000040

Definition at line 223 of file xbow.h.

#define XB_AUX_STAT_PORT_WIDTH   0x00000010

Definition at line 225 of file xbow.h.

#define XB_AUX_STAT_PRESENT   0x00000020

Definition at line 224 of file xbow.h.

#define XB_AUX_STAT_RCV_CNT   0xff000000

Definition at line 220 of file xbow.h.

#define XB_AUX_STAT_TOUT_DST   0x0000ff00

Definition at line 222 of file xbow.h.

#define XB_AUX_STAT_XMT_CNT   0x00ff0000

Definition at line 221 of file xbow.h.

#define XB_CTRL_8BIT_MODE
Value:
0x01000000 /* force link into 8
bit mode */

Definition at line 186 of file xbow.h.

#define XB_CTRL_BAD_LLP_PKT
Value:
0x00800000 /* force bad LLP
packet */

Definition at line 187 of file xbow.h.

#define XB_CTRL_BNDWDTH_ALLOC_IE   0x00000100 /* bandwidth alloc */

Definition at line 193 of file xbow.h.

#define XB_CTRL_IBUF_LEVEL_MSK
Value:
0x0e000000 /* input packet buffer
level */

Definition at line 185 of file xbow.h.

#define XB_CTRL_ILLEGAL_DST_IE
Value:
0x00020000 /* illegal destination
*/

Definition at line 190 of file xbow.h.

#define XB_CTRL_LINKALIVE_IE   0x80000000 /* link comes alive */

Definition at line 182 of file xbow.h.

#define XB_CTRL_MAXREQ_TOUT_IE
Value:
0x00000002 /* maximum request
timeout */

Definition at line 200 of file xbow.h.

#define XB_CTRL_OALLOC_IBUF_IE
Value:
0x00010000 /* overallocated input
buffer */

Definition at line 191 of file xbow.h.

#define XB_CTRL_PERF_CTR_MODE_MSK   0x30000000 /* perf counter mode */

Definition at line 184 of file xbow.h.

#define XB_CTRL_RCV_CNT_OFLOW_IE   0x00000080 /* rcv retry overflow */

Definition at line 194 of file xbow.h.

#define XB_CTRL_RCV_IE   0x00000010 /* receive */

Definition at line 197 of file xbow.h.

#define XB_CTRL_SRC_TOUT_IE   0x00000001 /* source timeout */

Definition at line 201 of file xbow.h.

#define XB_CTRL_WIDGET_CR_MSK
Value:
0x007c0000 /* LLP widget credit
mask */

Definition at line 188 of file xbow.h.

#define XB_CTRL_WIDGET_CR_SHFT
Value:
18 /* LLP widget credit
shift */

Definition at line 189 of file xbow.h.

#define XB_CTRL_XMT_CNT_OFLOW_IE   0x00000040 /* xmt retry overflow */

Definition at line 195 of file xbow.h.

#define XB_CTRL_XMT_MAX_RTRY_IE   0x00000020 /* max transmit retry */

Definition at line 196 of file xbow.h.

#define XB_CTRL_XMT_RTRY_IE   0x00000008 /* transmit retry */

Definition at line 198 of file xbow.h.

#define XB_FLAGS_16BIT   0x8

Definition at line 117 of file xbow.h.

#define XB_FLAGS_8BIT   0x0

Definition at line 118 of file xbow.h.

#define XB_FLAGS_EXISTS   0x1 /* device exists */

Definition at line 113 of file xbow.h.

#define XB_FLAGS_GBR   0x4

Definition at line 116 of file xbow.h.

#define XB_FLAGS_MASTER   0x2

Definition at line 114 of file xbow.h.

#define XB_FLAGS_SLAVE   0x0

Definition at line 115 of file xbow.h.

#define xb_link (   p)    xb_link_raw[(p) & (MAX_XBOW_PORTS - 1)]

Definition at line 111 of file xbow.h.

#define XB_LINK_ARB_LOWER (   x)    (XB_LINK_REG_BASE(x) + 0x24)

Definition at line 176 of file xbow.h.

#define XB_LINK_ARB_UPPER (   x)    (XB_LINK_REG_BASE(x) + 0x1c)

Definition at line 175 of file xbow.h.

#define XB_LINK_AUX_STATUS (   x)    (XB_LINK_REG_BASE(x) + 0x3c)

Definition at line 179 of file xbow.h.

#define XB_LINK_BASE   0x100

Definition at line 168 of file xbow.h.

#define XB_LINK_CTRL (   x)    (XB_LINK_REG_BASE(x) + 0xc)

Definition at line 173 of file xbow.h.

#define XB_LINK_IBUF_FLUSH (   x)    (XB_LINK_REG_BASE(x) + 0x4)

Definition at line 172 of file xbow.h.

#define XB_LINK_OFFSET   0x40

Definition at line 169 of file xbow.h.

#define XB_LINK_REG_BASE (   x)    (XB_LINK_BASE + ((x) & (MAX_XBOW_PORTS - 1)) * XB_LINK_OFFSET)

Definition at line 170 of file xbow.h.

#define XB_LINK_RESET (   x)    (XB_LINK_REG_BASE(x) + 0x34)

Definition at line 178 of file xbow.h.

#define XB_LINK_STATUS (   x)    (XB_LINK_REG_BASE(x) + 0x14)

Definition at line 174 of file xbow.h.

#define XB_LINK_STATUS_CLR (   x)    (XB_LINK_REG_BASE(x) + 0x2c)

Definition at line 177 of file xbow.h.

#define XB_STAT_BNDWDTH_ALLOC_ID_MSK   0x0000ff00 /* port bitmask */

Definition at line 209 of file xbow.h.

#define XB_STAT_ILLEGAL_DST_ERR   XB_CTRL_ILLEGAL_DST_IE

Definition at line 207 of file xbow.h.

#define XB_STAT_LINKALIVE   XB_CTRL_LINKALIVE_IE

Definition at line 204 of file xbow.h.

#define XB_STAT_MAXREQ_TOUT_ERR   XB_CTRL_MAXREQ_TOUT_IE

Definition at line 216 of file xbow.h.

#define XB_STAT_MULTI_ERR   0x00040000 /* multi error */

Definition at line 206 of file xbow.h.

#define XB_STAT_OALLOC_IBUF_ERR   XB_CTRL_OALLOC_IBUF_IE

Definition at line 208 of file xbow.h.

#define XB_STAT_RCV_CNT_OFLOW_ERR   XB_CTRL_RCV_CNT_OFLOW_IE

Definition at line 210 of file xbow.h.

#define XB_STAT_RCV_ERR   XB_CTRL_RCV_IE

Definition at line 213 of file xbow.h.

#define XB_STAT_SRC_TOUT_ERR   XB_CTRL_SRC_TOUT_IE

Definition at line 217 of file xbow.h.

#define XB_STAT_XMT_CNT_OFLOW_ERR   XB_CTRL_XMT_CNT_OFLOW_IE

Definition at line 211 of file xbow.h.

#define XB_STAT_XMT_MAX_RTRY_ERR   XB_CTRL_XMT_MAX_RTRY_IE

Definition at line 212 of file xbow.h.

#define XB_STAT_XMT_RTRY_ERR   XB_CTRL_XMT_RTRY_IE

Definition at line 214 of file xbow.h.

#define xb_wid_control   xb_widget.w_control

Definition at line 58 of file xbow.h.

#define XB_WID_CTRL_ARB_TOUT   XB_WID_STAT_ARB_TOUT

Definition at line 258 of file xbow.h.

#define XB_WID_CTRL_RECV_TOUT   XB_WID_STAT_RECV_TOUT

Definition at line 257 of file xbow.h.

#define XB_WID_CTRL_REG_ACC_IE   XB_WID_STAT_REG_ACC_ERR

Definition at line 256 of file xbow.h.

#define XB_WID_CTRL_XTALK_IE   XB_WID_STAT_XTALK_ERR

Definition at line 259 of file xbow.h.

#define xb_wid_err_cmdword   xb_widget.w_err_cmd_word

Definition at line 62 of file xbow.h.

#define xb_wid_err_lower   xb_widget.w_err_lower_addr

Definition at line 57 of file xbow.h.

#define xb_wid_err_upper   xb_widget.w_err_upper_addr

Definition at line 56 of file xbow.h.

#define xb_wid_id   xb_widget.w_id

Definition at line 54 of file xbow.h.

#define xb_wid_int_lower   xb_widget.w_intdest_lower_addr

Definition at line 61 of file xbow.h.

#define xb_wid_int_upper   xb_widget.w_intdest_upper_addr

Definition at line 60 of file xbow.h.

#define xb_wid_llp   xb_widget.w_llp_cfg

Definition at line 63 of file xbow.h.

#define xb_wid_req_timeout   xb_widget.w_req_timeout

Definition at line 59 of file xbow.h.

#define xb_wid_stat   xb_widget.w_status

Definition at line 55 of file xbow.h.

#define XB_WID_STAT_ARB_TOUT   0x00000008 /* Xbridge only */

Definition at line 248 of file xbow.h.

#define xb_wid_stat_clr   xb_widget.w_tflush

Definition at line 64 of file xbow.h.

#define XB_WID_STAT_DST_TOUT   0x00000002 /* Xbridge only */

Definition at line 250 of file xbow.h.

#define XB_WID_STAT_LINK_INTR (   x)    (0x1 << (((x)&7) + XB_WID_STAT_LINK_INTR_SHFT))

Definition at line 242 of file xbow.h.

#define XB_WID_STAT_LINK_INTR_MASK   (0xFF << XB_WID_STAT_LINK_INTR_SHFT)

Definition at line 241 of file xbow.h.

#define XB_WID_STAT_LINK_INTR_SHFT   (24)

Definition at line 240 of file xbow.h.

#define XB_WID_STAT_MULTI_ERR   0x00000001

Definition at line 251 of file xbow.h.

#define XB_WID_STAT_RECV_TOUT   0x00000010 /* Xbridge only */

Definition at line 247 of file xbow.h.

#define XB_WID_STAT_REG_ACC_ERR   0x00000020

Definition at line 246 of file xbow.h.

#define XB_WID_STAT_SRCID_MASK   0x000003c0 /* Xbridge only */

Definition at line 245 of file xbow.h.

#define XB_WID_STAT_SRCID_SHFT   6

Definition at line 253 of file xbow.h.

#define XB_WID_STAT_WIDGET0_INTR   0x00800000

Definition at line 244 of file xbow.h.

#define XB_WID_STAT_XTALK_ERR   0x00000004

Definition at line 249 of file xbow.h.

#define XBOW_ARB_IS_LOWER (   wid)    ((wid) >= XBOW_PORT_C && (wid) <= XBOW_PORT_F)

Definition at line 125 of file xbow.h.

#define XBOW_ARB_IS_UPPER (   wid)    ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_B)

Definition at line 124 of file xbow.h.

#define XBOW_ARB_OFF (   wid)    (XBOW_ARB_IS_UPPER(wid) ? 0x1c : 0x24)

Definition at line 128 of file xbow.h.

#define XBOW_CREDIT   4

Definition at line 19 of file xbow.h.

#define XBOW_L8_RST_FNC   0x000084

Definition at line 148 of file xbow.h.

#define XBOW_L9_RST_FNC   0x00008c

Definition at line 149 of file xbow.h.

#define XBOW_LA_RST_FNC   0x000094

Definition at line 150 of file xbow.h.

#define XBOW_LB_RST_FNC   0x00009c

Definition at line 151 of file xbow.h.

#define XBOW_LC_RST_FNC   0x0000a4

Definition at line 152 of file xbow.h.

#define XBOW_LD_RST_FNC   0x0000ac

Definition at line 153 of file xbow.h.

#define XBOW_LE_RST_FNC   0x0000b4

Definition at line 154 of file xbow.h.

#define XBOW_LF_RST_FNC   0x0000bc

Definition at line 155 of file xbow.h.

#define XBOW_LOCK   0x0000c4

Definition at line 159 of file xbow.h.

#define XBOW_LOCK_CLR   0x0000cc

Definition at line 160 of file xbow.h.

#define XBOW_PORT_8   0x8

Definition at line 12 of file xbow.h.

#define XBOW_PORT_C   0xc

Definition at line 13 of file xbow.h.

#define XBOW_PORT_F   0xf

Definition at line 14 of file xbow.h.

#define XBOW_RESET_FENCE (   x)
Value:
((x) > 7 && (x) < 16) ? \
(XBOW_W0_RST_FNC + ((x) - 7) * 8) : \
((x) == 0) ? XBOW_W0_RST_FNC : 0

Definition at line 156 of file xbow.h.

#define XBOW_REV_1_0   0x1 /* xbow rev 1.0 is "1" */

Definition at line 271 of file xbow.h.

#define XBOW_REV_1_1   0x2 /* xbow rev 1.1 is "2" */

Definition at line 272 of file xbow.h.

#define XBOW_REV_1_2   0x3 /* xbow rev 1.2 is "3" */

Definition at line 273 of file xbow.h.

#define XBOW_REV_1_3   0x4 /* xbow rev 1.3 is "4" */

Definition at line 274 of file xbow.h.

#define XBOW_REV_2_0   0x5 /* xbow rev 2.0 is "5" */

Definition at line 275 of file xbow.h.

#define XBOW_W0_RST_FNC   0x00007C

Definition at line 147 of file xbow.h.

#define XBOW_WAR_ENABLED (   pv,
  widid 
)    ((1 << XWIDGET_REV_NUM(widid)) & pv)

Definition at line 291 of file xbow.h.

#define XBOW_WID_ARB_RELOAD   0x5c

Definition at line 141 of file xbow.h.

#define XBOW_WID_ARB_RELOAD_INT   0x3f /* GBR reload interval */

Definition at line 281 of file xbow.h.

#define XBOW_WID_CONTROL   WIDGET_CONTROL

Definition at line 134 of file xbow.h.

#define XBOW_WID_ERR_CMDWORD   WIDGET_ERR_CMD_WORD

Definition at line 138 of file xbow.h.

#define XBOW_WID_ERR_LOWER   WIDGET_ERR_LOWER_ADDR

Definition at line 133 of file xbow.h.

#define XBOW_WID_ERR_UPPER   WIDGET_ERR_UPPER_ADDR

Definition at line 132 of file xbow.h.

#define XBOW_WID_ID   WIDGET_ID

Definition at line 130 of file xbow.h.

#define XBOW_WID_INT_LOWER   WIDGET_INTDEST_LOWER_ADDR

Definition at line 137 of file xbow.h.

#define XBOW_WID_INT_UPPER   WIDGET_INTDEST_UPPER_ADDR

Definition at line 136 of file xbow.h.

#define XBOW_WID_LLP   WIDGET_LLP_CFG

Definition at line 139 of file xbow.h.

#define XBOW_WID_NIC   0x74

Definition at line 144 of file xbow.h.

#define XBOW_WID_PERF_CTR_A   0x64

Definition at line 142 of file xbow.h.

#define XBOW_WID_PERF_CTR_B   0x6c

Definition at line 143 of file xbow.h.

#define XBOW_WID_REQ_TO   WIDGET_REQ_TIMEOUT

Definition at line 135 of file xbow.h.

#define XBOW_WID_STAT   WIDGET_STATUS

Definition at line 131 of file xbow.h.

#define XBOW_WID_STAT_CLR   WIDGET_TFLUSH

Definition at line 140 of file xbow.h.

#define XBOW_WID_UNDEF   0xe4

Definition at line 165 of file xbow.h.

#define XBOW_WIDGET_IS_VALID (   wid)    ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_F)

Definition at line 121 of file xbow.h.

#define XBOW_WIDGET_MFGR_NUM   0x0

Definition at line 267 of file xbow.h.

#define XBOW_WIDGET_PART_NUM   0x0 /* crossbow */

Definition at line 265 of file xbow.h.

#define XXBOW_PART_REV_1_0   (XXBOW_WIDGET_PART_NUM << 4 | 0x1 )

Definition at line 277 of file xbow.h.

#define XXBOW_PART_REV_2_0   (XXBOW_WIDGET_PART_NUM << 4 | 0x2 )

Definition at line 278 of file xbow.h.

#define XXBOW_WIDGET_MFGR_NUM   0x0

Definition at line 268 of file xbow.h.

#define XXBOW_WIDGET_PART_NUM   0xd000 /* Xbridge */

Definition at line 266 of file xbow.h.

Typedef Documentation

typedef struct xbow_s xbow_t