Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | xb_linkregs_s |
struct | xbow_s |
Typedefs | |
typedef struct xb_linkregs_s | xb_linkregs_t |
typedef struct xbow_s | xbow_t |
#define BASE_XBOW_PORT XBOW_PORT_8 /* Lowest external port */ |
#define IS_PIC_XBOW | ( | wid | ) |
#define IS_XBRIDGE_XBOW | ( | wid | ) |
#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_CTRL_8BIT_MODE |
#define XB_CTRL_BAD_LLP_PKT |
#define XB_CTRL_BNDWDTH_ALLOC_IE 0x00000100 /* bandwidth alloc */ |
#define XB_CTRL_IBUF_LEVEL_MSK |
#define XB_CTRL_ILLEGAL_DST_IE |
#define XB_CTRL_LINKALIVE_IE 0x80000000 /* link comes alive */ |
#define XB_CTRL_MAXREQ_TOUT_IE |
#define XB_CTRL_OALLOC_IBUF_IE |
#define XB_CTRL_PERF_CTR_MODE_MSK 0x30000000 /* perf counter mode */ |
#define XB_CTRL_RCV_CNT_OFLOW_IE 0x00000080 /* rcv retry overflow */ |
#define XB_CTRL_WIDGET_CR_MSK |
#define XB_CTRL_WIDGET_CR_SHFT |
#define XB_CTRL_XMT_CNT_OFLOW_IE 0x00000040 /* xmt retry overflow */ |
#define XB_CTRL_XMT_MAX_RTRY_IE 0x00000020 /* max transmit retry */ |
#define xb_link | ( | p | ) | xb_link_raw[(p) & (MAX_XBOW_PORTS - 1)] |
#define XB_LINK_ARB_LOWER | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x24) |
#define XB_LINK_ARB_UPPER | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x1c) |
#define XB_LINK_AUX_STATUS | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x3c) |
#define XB_LINK_CTRL | ( | x | ) | (XB_LINK_REG_BASE(x) + 0xc) |
#define XB_LINK_IBUF_FLUSH | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x4) |
#define XB_LINK_REG_BASE | ( | x | ) | (XB_LINK_BASE + ((x) & (MAX_XBOW_PORTS - 1)) * XB_LINK_OFFSET) |
#define XB_LINK_RESET | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x34) |
#define XB_LINK_STATUS | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x14) |
#define XB_LINK_STATUS_CLR | ( | x | ) | (XB_LINK_REG_BASE(x) + 0x2c) |
#define XB_STAT_BNDWDTH_ALLOC_ID_MSK 0x0000ff00 /* port bitmask */ |
#define XB_STAT_ILLEGAL_DST_ERR XB_CTRL_ILLEGAL_DST_IE |
#define XB_STAT_LINKALIVE XB_CTRL_LINKALIVE_IE |
#define XB_STAT_MAXREQ_TOUT_ERR XB_CTRL_MAXREQ_TOUT_IE |
#define XB_STAT_OALLOC_IBUF_ERR XB_CTRL_OALLOC_IBUF_IE |
#define XB_STAT_RCV_CNT_OFLOW_ERR XB_CTRL_RCV_CNT_OFLOW_IE |
#define XB_STAT_RCV_ERR XB_CTRL_RCV_IE |
#define XB_STAT_SRC_TOUT_ERR XB_CTRL_SRC_TOUT_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_XMT_RTRY_ERR XB_CTRL_XMT_RTRY_IE |
#define XB_WID_CTRL_ARB_TOUT XB_WID_STAT_ARB_TOUT |
#define XB_WID_CTRL_RECV_TOUT XB_WID_STAT_RECV_TOUT |
#define XB_WID_CTRL_REG_ACC_IE XB_WID_STAT_REG_ACC_ERR |
#define XB_WID_CTRL_XTALK_IE XB_WID_STAT_XTALK_ERR |
#define XB_WID_STAT_LINK_INTR | ( | x | ) | (0x1 << (((x)&7) + XB_WID_STAT_LINK_INTR_SHFT)) |
#define XB_WID_STAT_LINK_INTR_MASK (0xFF << XB_WID_STAT_LINK_INTR_SHFT) |
#define XBOW_ARB_IS_LOWER | ( | wid | ) | ((wid) >= XBOW_PORT_C && (wid) <= XBOW_PORT_F) |
#define XBOW_ARB_IS_UPPER | ( | wid | ) | ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_B) |
#define XBOW_ARB_OFF | ( | wid | ) | (XBOW_ARB_IS_UPPER(wid) ? 0x1c : 0x24) |
#define XBOW_RESET_FENCE | ( | x | ) |
#define XBOW_WAR_ENABLED | ( | pv, | |
widid | |||
) | ((1 << XWIDGET_REV_NUM(widid)) & pv) |
#define XBOW_WID_ARB_RELOAD_INT 0x3f /* GBR reload interval */ |
#define XBOW_WID_CONTROL WIDGET_CONTROL |
#define XBOW_WID_ERR_CMDWORD WIDGET_ERR_CMD_WORD |
#define XBOW_WID_ERR_LOWER WIDGET_ERR_LOWER_ADDR |
#define XBOW_WID_ERR_UPPER WIDGET_ERR_UPPER_ADDR |
#define XBOW_WID_INT_LOWER WIDGET_INTDEST_LOWER_ADDR |
#define XBOW_WID_INT_UPPER WIDGET_INTDEST_UPPER_ADDR |
#define XBOW_WID_LLP WIDGET_LLP_CFG |
#define XBOW_WID_REQ_TO WIDGET_REQ_TIMEOUT |
#define XBOW_WID_STAT WIDGET_STATUS |
#define XBOW_WID_STAT_CLR WIDGET_TFLUSH |
#define XBOW_WIDGET_IS_VALID | ( | wid | ) | ((wid) >= XBOW_PORT_8 && (wid) <= XBOW_PORT_F) |
#define XXBOW_PART_REV_1_0 (XXBOW_WIDGET_PART_NUM << 4 | 0x1 ) |
#define XXBOW_PART_REV_2_0 (XXBOW_WIDGET_PART_NUM << 4 | 0x2 ) |
typedef struct xb_linkregs_s xb_linkregs_t |