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

Go to the source code of this file.

Data Structures

struct  bridge_s
 
struct  bridge_err_cmdword_s
 
union  ate_u
 
struct  ate_u::ate_s
 
struct  bridge_controller
 

Macros

#define IOPFNSHIFT   12 /* 4K per mapped page */
 
#define IOPGSIZE   (1 << IOPFNSHIFT)
 
#define IOPG(x)   ((x) >> IOPFNSHIFT)
 
#define IOPGOFF(x)   ((x) & (IOPGSIZE-1))
 
#define BRIDGE_ATE_RAM_SIZE   0x00000400 /* 1kB ATE RAM */
 
#define BRIDGE_CONFIG_BASE   0x20000
 
#define BRIDGE_CONFIG1_BASE   0x28000
 
#define BRIDGE_CONFIG_END   0x30000
 
#define BRIDGE_CONFIG_SLOT_SIZE   0x1000
 
#define BRIDGE_SSRAM_512K   0x00080000 /* 512kB */
 
#define BRIDGE_SSRAM_128K   0x00020000 /* 128kB */
 
#define BRIDGE_SSRAM_64K   0x00010000 /* 64kB */
 
#define BRIDGE_SSRAM_0K   0x00000000 /* 0kB */
 
#define b_wid_id   b_widget.w_id
 
#define b_wid_stat   b_widget.w_status
 
#define b_wid_err_upper   b_widget.w_err_upper_addr
 
#define b_wid_err_lower   b_widget.w_err_lower_addr
 
#define b_wid_control   b_widget.w_control
 
#define b_wid_req_timeout   b_widget.w_req_timeout
 
#define b_wid_int_upper   b_widget.w_intdest_upper_addr
 
#define b_wid_int_lower   b_widget.w_intdest_lower_addr
 
#define b_wid_err_cmdword   b_widget.w_err_cmd_word
 
#define b_wid_llp   b_widget.w_llp_cfg
 
#define b_wid_tflush   b_widget.w_tflush
 
#define b_pci_bus_timeout   b_bus_timeout
 
#define b_gio_err_lower   b_pci_err_lower
 
#define b_gio_err_upper   b_pci_err_upper
 
#define b_even_resp   b_rrb_map[0].reg /* 0x000284 */
 
#define b_odd_resp   b_rrb_map[1].reg /* 0x00028C */
 
#define b_devio(n)   b_devio_raw[((n)<2)?(n*2):(n+2)]
 
#define berr_field   berr_un.berr_st
 
#define BRIDGE_WID_ID   WIDGET_ID
 
#define BRIDGE_WID_STAT   WIDGET_STATUS
 
#define BRIDGE_WID_ERR_UPPER   WIDGET_ERR_UPPER_ADDR
 
#define BRIDGE_WID_ERR_LOWER   WIDGET_ERR_LOWER_ADDR
 
#define BRIDGE_WID_CONTROL   WIDGET_CONTROL
 
#define BRIDGE_WID_REQ_TIMEOUT   WIDGET_REQ_TIMEOUT
 
#define BRIDGE_WID_INT_UPPER   WIDGET_INTDEST_UPPER_ADDR
 
#define BRIDGE_WID_INT_LOWER   WIDGET_INTDEST_LOWER_ADDR
 
#define BRIDGE_WID_ERR_CMDWORD   WIDGET_ERR_CMD_WORD
 
#define BRIDGE_WID_LLP   WIDGET_LLP_CFG
 
#define BRIDGE_WID_TFLUSH   WIDGET_TFLUSH
 
#define BRIDGE_WID_AUX_ERR   0x00005C /* Aux Error Command Word */
 
#define BRIDGE_WID_RESP_UPPER   0x000064 /* Response Buf Upper Addr */
 
#define BRIDGE_WID_RESP_LOWER   0x00006C /* Response Buf Lower Addr */
 
#define BRIDGE_WID_TST_PIN_CTRL   0x000074 /* Test pin control */
 
#define BRIDGE_DIR_MAP   0x000084 /* Direct Map reg */
 
#define BRIDGE_RAM_PERR   0x000094 /* SSRAM Parity Error */
 
#define BRIDGE_ARB   0x0000A4 /* Arbitration Priority reg */
 
#define BRIDGE_NIC   0x0000B4 /* Number In A Can */
 
#define BRIDGE_BUS_TIMEOUT   0x0000C4 /* Bus Timeout Register */
 
#define BRIDGE_PCI_BUS_TIMEOUT   BRIDGE_BUS_TIMEOUT
 
#define BRIDGE_PCI_CFG   0x0000CC /* PCI Type 1 Config reg */
 
#define BRIDGE_PCI_ERR_UPPER   0x0000D4 /* PCI error Upper Addr */
 
#define BRIDGE_PCI_ERR_LOWER   0x0000DC /* PCI error Lower Addr */
 
#define BRIDGE_INT_STATUS   0x000104 /* Interrupt Status */
 
#define BRIDGE_INT_ENABLE   0x00010C /* Interrupt Enables */
 
#define BRIDGE_INT_RST_STAT   0x000114 /* Reset Intr Status */
 
#define BRIDGE_INT_MODE   0x00011C /* Interrupt Mode */
 
#define BRIDGE_INT_DEVICE   0x000124 /* Interrupt Device */
 
#define BRIDGE_INT_HOST_ERR   0x00012C /* Host Error Field */
 
#define BRIDGE_INT_ADDR0   0x000134 /* Host Address Reg */
 
#define BRIDGE_INT_ADDR_OFF   0x000008 /* Host Addr offset (1..7) */
 
#define BRIDGE_INT_ADDR(x)   (BRIDGE_INT_ADDR0+(x)*BRIDGE_INT_ADDR_OFF)
 
#define BRIDGE_DEVICE0   0x000204 /* Device 0 */
 
#define BRIDGE_DEVICE_OFF   0x000008 /* Device offset (1..7) */
 
#define BRIDGE_DEVICE(x)   (BRIDGE_DEVICE0+(x)*BRIDGE_DEVICE_OFF)
 
#define BRIDGE_WR_REQ_BUF0   0x000244 /* Write Request Buffer 0 */
 
#define BRIDGE_WR_REQ_BUF_OFF   0x000008 /* Buffer Offset (1..7) */
 
#define BRIDGE_WR_REQ_BUF(x)   (BRIDGE_WR_REQ_BUF0+(x)*BRIDGE_WR_REQ_BUF_OFF)
 
#define BRIDGE_EVEN_RESP   0x000284 /* Even Device Response Buf */
 
#define BRIDGE_ODD_RESP   0x00028C /* Odd Device Response Buf */
 
#define BRIDGE_RESP_STATUS   0x000294 /* Read Response Status reg */
 
#define BRIDGE_RESP_CLEAR   0x00029C /* Read Response Clear reg */
 
#define BRIDGE_ATE_RAM   0x00010000 /* Internal Addr Xlat Ram */
 
#define BRIDGE_TYPE0_CFG_DEV0   0x00020000 /* Type 0 Cfg, Device 0 */
 
#define BRIDGE_TYPE0_CFG_SLOT_OFF   0x00001000 /* Type 0 Cfg Slot Offset (1..7) */
 
#define BRIDGE_TYPE0_CFG_FUNC_OFF   0x00000100 /* Type 0 Cfg Func Offset (1..7) */
 
#define BRIDGE_TYPE0_CFG_DEV(s)
 
#define BRIDGE_TYPE0_CFG_DEVF(s, f)
 
#define BRIDGE_TYPE1_CFG   0x00028000 /* Type 1 Cfg space */
 
#define BRIDGE_PCI_IACK   0x00030000 /* PCI Interrupt Ack */
 
#define BRIDGE_EXT_SSRAM   0x00080000 /* Extern SSRAM (ATE) */
 
#define BRIDGE_DEV_CNT   8 /* Up to 8 devices per bridge */
 
#define BRIDGE_DEVIO0   0x00200000 /* Device IO 0 Addr */
 
#define BRIDGE_DEVIO1   0x00400000 /* Device IO 1 Addr */
 
#define BRIDGE_DEVIO2   0x00600000 /* Device IO 2 Addr */
 
#define BRIDGE_DEVIO_OFF   0x00100000 /* Device IO Offset (3..7) */
 
#define BRIDGE_DEVIO_2MB   0x00200000 /* Device IO Offset (0..1) */
 
#define BRIDGE_DEVIO_1MB   0x00100000 /* Device IO Offset (2..7) */
 
#define BRIDGE_DEVIO(x)   ((x)<=1 ? BRIDGE_DEVIO0+(x)*BRIDGE_DEVIO_2MB : BRIDGE_DEVIO2+((x)-2)*BRIDGE_DEVIO_1MB)
 
#define BRIDGE_EXTERNAL_FLASH   0x00C00000 /* External Flash PROMS */
 
#define BRIDGE_WIDGET_PART_NUM   0xc002
 
#define XBRIDGE_WIDGET_PART_NUM   0xd002
 
#define BRIDGE_WIDGET_MFGR_NUM   0x036
 
#define XBRIDGE_WIDGET_MFGR_NUM   0x024
 
#define BRIDGE_REV_A   0x1
 
#define BRIDGE_REV_B   0x2
 
#define BRIDGE_REV_C   0x3
 
#define BRIDGE_REV_D   0x4
 
#define BRIDGE_STAT_LLP_REC_CNT   (0xFFu << 24)
 
#define BRIDGE_STAT_LLP_TX_CNT   (0xFF << 16)
 
#define BRIDGE_STAT_FLASH_SELECT   (0x1 << 6)
 
#define BRIDGE_STAT_PCI_GIO_N   (0x1 << 5)
 
#define BRIDGE_STAT_PENDING   (0x1F << 0)
 
#define BRIDGE_CTRL_FLASH_WR_EN   (0x1ul << 31)
 
#define BRIDGE_CTRL_EN_CLK50   (0x1 << 30)
 
#define BRIDGE_CTRL_EN_CLK40   (0x1 << 29)
 
#define BRIDGE_CTRL_EN_CLK33   (0x1 << 28)
 
#define BRIDGE_CTRL_RST(n)   ((n) << 24)
 
#define BRIDGE_CTRL_RST_MASK   (BRIDGE_CTRL_RST(0xF))
 
#define BRIDGE_CTRL_RST_PIN(x)   (BRIDGE_CTRL_RST(0x1 << (x)))
 
#define BRIDGE_CTRL_IO_SWAP   (0x1 << 23)
 
#define BRIDGE_CTRL_MEM_SWAP   (0x1 << 22)
 
#define BRIDGE_CTRL_PAGE_SIZE   (0x1 << 21)
 
#define BRIDGE_CTRL_SS_PAR_BAD   (0x1 << 20)
 
#define BRIDGE_CTRL_SS_PAR_EN   (0x1 << 19)
 
#define BRIDGE_CTRL_SSRAM_SIZE(n)   ((n) << 17)
 
#define BRIDGE_CTRL_SSRAM_SIZE_MASK   (BRIDGE_CTRL_SSRAM_SIZE(0x3))
 
#define BRIDGE_CTRL_SSRAM_512K   (BRIDGE_CTRL_SSRAM_SIZE(0x3))
 
#define BRIDGE_CTRL_SSRAM_128K   (BRIDGE_CTRL_SSRAM_SIZE(0x2))
 
#define BRIDGE_CTRL_SSRAM_64K   (BRIDGE_CTRL_SSRAM_SIZE(0x1))
 
#define BRIDGE_CTRL_SSRAM_1K   (BRIDGE_CTRL_SSRAM_SIZE(0x0))
 
#define BRIDGE_CTRL_F_BAD_PKT   (0x1 << 16)
 
#define BRIDGE_CTRL_LLP_XBAR_CRD(n)   ((n) << 12)
 
#define BRIDGE_CTRL_LLP_XBAR_CRD_MASK   (BRIDGE_CTRL_LLP_XBAR_CRD(0xf))
 
#define BRIDGE_CTRL_CLR_RLLP_CNT   (0x1 << 11)
 
#define BRIDGE_CTRL_CLR_TLLP_CNT   (0x1 << 10)
 
#define BRIDGE_CTRL_SYS_END   (0x1 << 9)
 
#define BRIDGE_CTRL_MAX_TRANS(n)   ((n) << 4)
 
#define BRIDGE_CTRL_MAX_TRANS_MASK   (BRIDGE_CTRL_MAX_TRANS(0x1f))
 
#define BRIDGE_CTRL_WIDGET_ID(n)   ((n) << 0)
 
#define BRIDGE_CTRL_WIDGET_ID_MASK   (BRIDGE_CTRL_WIDGET_ID(0xf))
 
#define BRIDGE_RESP_ERRUPPR_DEVNUM_SHFT   (20)
 
#define BRIDGE_RESP_ERRUPPR_DEVNUM_MASK   (0x7 << BRIDGE_RESP_ERRUPPR_DEVNUM_SHFT)
 
#define BRIDGE_RESP_ERRUPPR_BUFNUM_SHFT   (16)
 
#define BRIDGE_RESP_ERRUPPR_BUFNUM_MASK   (0xF << BRIDGE_RESP_ERRUPPR_BUFNUM_SHFT)
 
#define BRIDGE_RESP_ERRRUPPR_BUFMASK   (0xFFFF)
 
#define BRIDGE_RESP_ERRUPPR_BUFNUM(x)
 
#define BRIDGE_RESP_ERRUPPR_DEVICE(x)
 
#define BRIDGE_DIRMAP_W_ID_SHFT   20
 
#define BRIDGE_DIRMAP_W_ID   (0xf << BRIDGE_DIRMAP_W_ID_SHFT)
 
#define BRIDGE_DIRMAP_RMF_64   (0x1 << 18)
 
#define BRIDGE_DIRMAP_ADD512   (0x1 << 17)
 
#define BRIDGE_DIRMAP_OFF   (0x1ffff << 0)
 
#define BRIDGE_DIRMAP_OFF_ADDRSHFT   (31) /* lsbit of DIRMAP_OFF is xtalk address bit 31 */
 
#define BRIDGE_ARB_REQ_WAIT_TICK(x)   ((x) << 16)
 
#define BRIDGE_ARB_REQ_WAIT_TICK_MASK   BRIDGE_ARB_REQ_WAIT_TICK(0x3)
 
#define BRIDGE_ARB_REQ_WAIT_EN(x)   ((x) << 8)
 
#define BRIDGE_ARB_REQ_WAIT_EN_MASK   BRIDGE_ARB_REQ_WAIT_EN(0xff)
 
#define BRIDGE_ARB_FREEZE_GNT   (1 << 6)
 
#define BRIDGE_ARB_HPRI_RING_B2   (1 << 5)
 
#define BRIDGE_ARB_HPRI_RING_B1   (1 << 4)
 
#define BRIDGE_ARB_HPRI_RING_B0   (1 << 3)
 
#define BRIDGE_ARB_LPRI_RING_B2   (1 << 2)
 
#define BRIDGE_ARB_LPRI_RING_B1   (1 << 1)
 
#define BRIDGE_ARB_LPRI_RING_B0   (1 << 0)
 
#define BRIDGE_BUS_PCI_RETRY_HLD(x)   ((x) << 16)
 
#define BRIDGE_BUS_PCI_RETRY_HLD_MASK   BRIDGE_BUS_PCI_RETRY_HLD(0x1f)
 
#define BRIDGE_BUS_GIO_TIMEOUT   (1 << 12)
 
#define BRIDGE_BUS_PCI_RETRY_CNT(x)   ((x) << 0)
 
#define BRIDGE_BUS_PCI_RETRY_MASK   BRIDGE_BUS_PCI_RETRY_CNT(0x3ff)
 
#define BRIDGE_ISR_MULTI_ERR   (0x1u << 31)
 
#define BRIDGE_ISR_PMU_ESIZE_FAULT   (0x1 << 30)
 
#define BRIDGE_ISR_UNEXP_RESP   (0x1 << 29)
 
#define BRIDGE_ISR_BAD_XRESP_PKT   (0x1 << 28)
 
#define BRIDGE_ISR_BAD_XREQ_PKT   (0x1 << 27)
 
#define BRIDGE_ISR_RESP_XTLK_ERR   (0x1 << 26)
 
#define BRIDGE_ISR_REQ_XTLK_ERR   (0x1 << 25)
 
#define BRIDGE_ISR_INVLD_ADDR   (0x1 << 24)
 
#define BRIDGE_ISR_UNSUPPORTED_XOP   (0x1 << 23)
 
#define BRIDGE_ISR_XREQ_FIFO_OFLOW   (0x1 << 22)
 
#define BRIDGE_ISR_LLP_REC_SNERR   (0x1 << 21)
 
#define BRIDGE_ISR_LLP_REC_CBERR   (0x1 << 20)
 
#define BRIDGE_ISR_LLP_RCTY   (0x1 << 19)
 
#define BRIDGE_ISR_LLP_TX_RETRY   (0x1 << 18)
 
#define BRIDGE_ISR_LLP_TCTY   (0x1 << 17)
 
#define BRIDGE_ISR_SSRAM_PERR   (0x1 << 16)
 
#define BRIDGE_ISR_PCI_ABORT   (0x1 << 15)
 
#define BRIDGE_ISR_PCI_PARITY   (0x1 << 14)
 
#define BRIDGE_ISR_PCI_SERR   (0x1 << 13)
 
#define BRIDGE_ISR_PCI_PERR   (0x1 << 12)
 
#define BRIDGE_ISR_PCI_MST_TIMEOUT   (0x1 << 11)
 
#define BRIDGE_ISR_GIO_MST_TIMEOUT   BRIDGE_ISR_PCI_MST_TIMEOUT
 
#define BRIDGE_ISR_PCI_RETRY_CNT   (0x1 << 10)
 
#define BRIDGE_ISR_XREAD_REQ_TIMEOUT   (0x1 << 9)
 
#define BRIDGE_ISR_GIO_B_ENBL_ERR   (0x1 << 8)
 
#define BRIDGE_ISR_INT_MSK   (0xff << 0)
 
#define BRIDGE_ISR_INT(x)   (0x1 << (x))
 
#define BRIDGE_ISR_LINK_ERROR
 
#define BRIDGE_ISR_PCIBUS_PIOERR   (BRIDGE_ISR_PCI_MST_TIMEOUT|BRIDGE_ISR_PCI_ABORT)
 
#define BRIDGE_ISR_PCIBUS_ERROR
 
#define BRIDGE_ISR_XTALK_ERROR
 
#define BRIDGE_ISR_ERRORS
 
#define BRIDGE_ISR_ERROR_FATAL
 
#define BRIDGE_ISR_ERROR_DUMP
 
#define BRIDGE_IMR_UNEXP_RESP   BRIDGE_ISR_UNEXP_RESP
 
#define BRIDGE_IMR_PMU_ESIZE_FAULT   BRIDGE_ISR_PMU_ESIZE_FAULT
 
#define BRIDGE_IMR_BAD_XRESP_PKT   BRIDGE_ISR_BAD_XRESP_PKT
 
#define BRIDGE_IMR_BAD_XREQ_PKT   BRIDGE_ISR_BAD_XREQ_PKT
 
#define BRIDGE_IMR_RESP_XTLK_ERR   BRIDGE_ISR_RESP_XTLK_ERR
 
#define BRIDGE_IMR_REQ_XTLK_ERR   BRIDGE_ISR_REQ_XTLK_ERR
 
#define BRIDGE_IMR_INVLD_ADDR   BRIDGE_ISR_INVLD_ADDR
 
#define BRIDGE_IMR_UNSUPPORTED_XOP   BRIDGE_ISR_UNSUPPORTED_XOP
 
#define BRIDGE_IMR_XREQ_FIFO_OFLOW   BRIDGE_ISR_XREQ_FIFO_OFLOW
 
#define BRIDGE_IMR_LLP_REC_SNERR   BRIDGE_ISR_LLP_REC_SNERR
 
#define BRIDGE_IMR_LLP_REC_CBERR   BRIDGE_ISR_LLP_REC_CBERR
 
#define BRIDGE_IMR_LLP_RCTY   BRIDGE_ISR_LLP_RCTY
 
#define BRIDGE_IMR_LLP_TX_RETRY   BRIDGE_ISR_LLP_TX_RETRY
 
#define BRIDGE_IMR_LLP_TCTY   BRIDGE_ISR_LLP_TCTY
 
#define BRIDGE_IMR_SSRAM_PERR   BRIDGE_ISR_SSRAM_PERR
 
#define BRIDGE_IMR_PCI_ABORT   BRIDGE_ISR_PCI_ABORT
 
#define BRIDGE_IMR_PCI_PARITY   BRIDGE_ISR_PCI_PARITY
 
#define BRIDGE_IMR_PCI_SERR   BRIDGE_ISR_PCI_SERR
 
#define BRIDGE_IMR_PCI_PERR   BRIDGE_ISR_PCI_PERR
 
#define BRIDGE_IMR_PCI_MST_TIMEOUT   BRIDGE_ISR_PCI_MST_TIMEOUT
 
#define BRIDGE_IMR_GIO_MST_TIMEOUT   BRIDGE_ISR_GIO_MST_TIMEOUT
 
#define BRIDGE_IMR_PCI_RETRY_CNT   BRIDGE_ISR_PCI_RETRY_CNT
 
#define BRIDGE_IMR_XREAD_REQ_TIMEOUT   BRIDGE_ISR_XREAD_REQ_TIMEOUT
 
#define BRIDGE_IMR_GIO_B_ENBL_ERR   BRIDGE_ISR_GIO_B_ENBL_ERR
 
#define BRIDGE_IMR_INT_MSK   BRIDGE_ISR_INT_MSK
 
#define BRIDGE_IMR_INT(x)   BRIDGE_ISR_INT(x)
 
#define BRIDGE_IRR_MULTI_CLR   (0x1 << 6)
 
#define BRIDGE_IRR_CRP_GRP_CLR   (0x1 << 5)
 
#define BRIDGE_IRR_RESP_BUF_GRP_CLR   (0x1 << 4)
 
#define BRIDGE_IRR_REQ_DSP_GRP_CLR   (0x1 << 3)
 
#define BRIDGE_IRR_LLP_GRP_CLR   (0x1 << 2)
 
#define BRIDGE_IRR_SSRAM_GRP_CLR   (0x1 << 1)
 
#define BRIDGE_IRR_PCI_GRP_CLR   (0x1 << 0)
 
#define BRIDGE_IRR_GIO_GRP_CLR   (0x1 << 0)
 
#define BRIDGE_IRR_ALL_CLR   0x7f
 
#define BRIDGE_IRR_CRP_GRP
 
#define BRIDGE_IRR_RESP_BUF_GRP
 
#define BRIDGE_IRR_REQ_DSP_GRP
 
#define BRIDGE_IRR_LLP_GRP
 
#define BRIDGE_IRR_SSRAM_GRP
 
#define BRIDGE_IRR_PCI_GRP
 
#define BRIDGE_IRR_GIO_GRP
 
#define BRIDGE_INT_DEV_SHFT(n)   ((n)*3)
 
#define BRIDGE_INT_DEV_MASK(n)   (0x7 << BRIDGE_INT_DEV_SHFT(n))
 
#define BRIDGE_INT_DEV_SET(_dev, _line)   (_dev << BRIDGE_INT_DEV_SHFT(_line))
 
#define BRIDGE_INT_ADDR_HOST   0x0003FF00
 
#define BRIDGE_INT_ADDR_FLD   0x000000FF
 
#define BRIDGE_TMO_PCI_RETRY_HLD_MASK   0x1f0000
 
#define BRIDGE_TMO_GIO_TIMEOUT_MASK   0x001000
 
#define BRIDGE_TMO_PCI_RETRY_CNT_MASK   0x0003ff
 
#define BRIDGE_TMO_PCI_RETRY_CNT_MAX   0x3ff
 
#define BRIDGE_INT_ADDR_NASID_SHFT   8
 
#define BRIDGE_INT_ADDR_DEST_IO   (1 << 17)
 
#define BRIDGE_INT_ADDR_DEST_MEM   0
 
#define BRIDGE_INT_ADDR_MASK   (1 << 17)
 
#define BRIDGE_DEV_ERR_LOCK_EN   0x10000000
 
#define BRIDGE_DEV_PAGE_CHK_DIS   0x08000000
 
#define BRIDGE_DEV_FORCE_PCI_PAR   0x04000000
 
#define BRIDGE_DEV_VIRTUAL_EN   0x02000000
 
#define BRIDGE_DEV_PMU_WRGA_EN   0x01000000
 
#define BRIDGE_DEV_DIR_WRGA_EN   0x00800000
 
#define BRIDGE_DEV_DEV_SIZE   0x00400000
 
#define BRIDGE_DEV_RT   0x00200000
 
#define BRIDGE_DEV_SWAP_PMU   0x00100000
 
#define BRIDGE_DEV_SWAP_DIR   0x00080000
 
#define BRIDGE_DEV_PREF   0x00040000
 
#define BRIDGE_DEV_PRECISE   0x00020000
 
#define BRIDGE_DEV_COH   0x00010000
 
#define BRIDGE_DEV_BARRIER   0x00008000
 
#define BRIDGE_DEV_GBR   0x00004000
 
#define BRIDGE_DEV_DEV_SWAP   0x00002000
 
#define BRIDGE_DEV_DEV_IO_MEM   0x00001000
 
#define BRIDGE_DEV_OFF_MASK   0x00000fff
 
#define BRIDGE_DEV_OFF_ADDR_SHFT   20
 
#define BRIDGE_DEV_PMU_BITS
 
#define BRIDGE_DEV_D32_BITS
 
#define BRIDGE_DEV_D64_BITS
 
#define BRIDGE_ERRUPPR_DEVMASTER   (0x1 << 20) /* Device was master */
 
#define BRIDGE_ERRUPPR_PCIVDEV   (0x1 << 19) /* Virtual Req value */
 
#define BRIDGE_ERRUPPR_DEVNUM_SHFT   (16)
 
#define BRIDGE_ERRUPPR_DEVNUM_MASK   (0x7 << BRIDGE_ERRUPPR_DEVNUM_SHFT)
 
#define BRIDGE_ERRUPPR_DEVICE(err)   (((err) >> BRIDGE_ERRUPPR_DEVNUM_SHFT) & 0x7)
 
#define BRIDGE_ERRUPPR_ADDRMASK   (0xFFFF)
 
#define BRIDGE_INTMODE_CLR_PKT_EN(x)   (0x1 << (x))
 
#define BRIDGE_CREDIT   3
 
#define BRIDGE_RRB_EN   0x8 /* after shifting down */
 
#define BRIDGE_RRB_DEV   0x7 /* after shifting down */
 
#define BRIDGE_RRB_VDEV   0x4 /* after shifting down */
 
#define BRIDGE_RRB_PDEV   0x3 /* after shifting down */
 
#define BRIDGE_RRB_VALID(r)   (0x00010000<<(r))
 
#define BRIDGE_RRB_INUSE(r)   (0x00000001<<(r))
 
#define BRIDGE_RRB_CLEAR(r)   (0x00000001<<(r))
 
#define XBOX_BRIDGE_WID   8
 
#define FLASH_PROM1_BASE   0xE00000 /* To read the xbox sysctlr status */
 
#define XBOX_RPS_EXISTS   1 << 6 /* RPS bit in status register */
 
#define XBOX_RPS_FAIL   1 << 4 /* RPS status bit in register */
 
#define BRIDGE_PIO32_XTALK_ALIAS_BASE   0x000040000000L
 
#define BRIDGE_PIO32_XTALK_ALIAS_LIMIT   0x00007FFFFFFFL
 
#define BRIDGE_PIO64_XTALK_ALIAS_BASE   0x000080000000L
 
#define BRIDGE_PIO64_XTALK_ALIAS_LIMIT   0x0000BFFFFFFFL
 
#define BRIDGE_PCIIO_XTALK_ALIAS_BASE   0x000100000000L
 
#define BRIDGE_PCIIO_XTALK_ALIAS_LIMIT   0x0001FFFFFFFFL
 
#define BRIDGE_MIN_PIO_ADDR_MEM   0x00000000 /* 1G PCI memory space */
 
#define BRIDGE_MAX_PIO_ADDR_MEM   0x3fffffff
 
#define BRIDGE_MIN_PIO_ADDR_IO   0x00000000 /* 4G PCI IO space */
 
#define BRIDGE_MAX_PIO_ADDR_IO   0xffffffff
 
#define BRIDGE_PCI_MEM32_BASE   BRIDGE_PIO32_XTALK_ALIAS_BASE
 
#define BRIDGE_PCI_MEM32_LIMIT   BRIDGE_PIO32_XTALK_ALIAS_LIMIT
 
#define BRIDGE_PCI_MEM64_BASE   BRIDGE_PIO64_XTALK_ALIAS_BASE
 
#define BRIDGE_PCI_MEM64_LIMIT   BRIDGE_PIO64_XTALK_ALIAS_LIMIT
 
#define BRIDGE_PCI_IO_BASE   BRIDGE_PCIIO_XTALK_ALIAS_BASE
 
#define BRIDGE_PCI_IO_LIMIT   BRIDGE_PCIIO_XTALK_ALIAS_LIMIT
 
#define BRIDGE_LOCAL_BASE   0
 
#define BRIDGE_DMA_MAPPED_BASE   0x40000000
 
#define BRIDGE_DMA_MAPPED_SIZE   0x40000000 /* 1G Bytes */
 
#define BRIDGE_DMA_DIRECT_BASE   0x80000000
 
#define BRIDGE_DMA_DIRECT_SIZE   0x80000000 /* 2G Bytes */
 
#define PCI32_LOCAL_BASE   BRIDGE_LOCAL_BASE
 
#define PCI32_MAPPED_BASE   BRIDGE_DMA_MAPPED_BASE
 
#define PCI32_DIRECT_BASE   BRIDGE_DMA_DIRECT_BASE
 
#define IS_PCI32_LOCAL(x)   ((ulong_t)(x) < PCI32_MAPPED_BASE)
 
#define IS_PCI32_MAPPED(x)
 
#define IS_PCI32_DIRECT(x)   ((ulong_t)(x) >= PCI32_MAPPED_BASE)
 
#define IS_PCI64(x)   ((ulong_t)(x) >= PCI64_BASE)
 
#define BRIDGE_GIO_MEM32_BASE   BRIDGE_PIO32_XTALK_ALIAS_BASE
 
#define BRIDGE_GIO_MEM32_LIMIT   BRIDGE_PIO32_XTALK_ALIAS_LIMIT
 
#define GIO_LOCAL_BASE   BRIDGE_LOCAL_BASE
 
#define GIO_MAPPED_BASE   BRIDGE_DMA_MAPPED_BASE
 
#define GIO_DIRECT_BASE   BRIDGE_DMA_DIRECT_BASE
 
#define IS_GIO_LOCAL(x)   ((ulong_t)(x) < GIO_MAPPED_BASE)
 
#define IS_GIO_MAPPED(x)
 
#define IS_GIO_DIRECT(x)   ((ulong_t)(x) >= GIO_MAPPED_BASE)
 
#define BRIDGE_DIRECT_32_SEG_SIZE   BRIDGE_DMA_DIRECT_SIZE
 
#define BRIDGE_DIRECT_32_TO_XTALK(dir_off, adr)
 
#define PCI64_ATTR_TARG_MASK   0xf000000000000000
 
#define PCI64_ATTR_TARG_SHFT   60
 
#define PCI64_ATTR_PREF   0x0800000000000000
 
#define PCI64_ATTR_PREC   0x0400000000000000
 
#define PCI64_ATTR_VIRTUAL   0x0200000000000000
 
#define PCI64_ATTR_BAR   0x0100000000000000
 
#define PCI64_ATTR_RMF_MASK   0x00ff000000000000
 
#define PCI64_ATTR_RMF_SHFT   48
 
#define ATE_V   0x01
 
#define ATE_CO   0x02
 
#define ATE_PREC   0x04
 
#define ATE_PREF   0x08
 
#define ATE_BAR   0x10
 
#define ATE_PFNSHIFT   12
 
#define ATE_TIDSHIFT   8
 
#define ATE_RMFSHIFT   48
 
#define mkate(xaddr, xid, attr)
 
#define BRIDGE_INTERNAL_ATES   128
 
#define BRIDGE_CONTROLLER(bus)   ((struct bridge_controller *)((bus)->sysdata))
 

Typedefs

typedef u32 bridgereg_t
 
typedef u64 bridge_ate_t
 
typedef volatile bridge_ate_tbridge_ate_p
 
typedef struct bridge_s bridge_t
 
typedef struct bridge_err_cmdword_s bridge_err_cmdword_t
 
typedef union ate_u ate_t
 

Functions

void register_bridge_irq (unsigned int irq)
 
int request_bridge_irq (struct bridge_controller *bc)
 

Variables

struct pci_ops bridge_pci_ops
 

Macro Definition Documentation

#define ATE_BAR   0x10

Definition at line 822 of file bridge.h.

#define ATE_CO   0x02

Definition at line 819 of file bridge.h.

#define ATE_PFNSHIFT   12

Definition at line 824 of file bridge.h.

#define ATE_PREC   0x04

Definition at line 820 of file bridge.h.

#define ATE_PREF   0x08

Definition at line 821 of file bridge.h.

#define ATE_RMFSHIFT   48

Definition at line 826 of file bridge.h.

#define ATE_TIDSHIFT   8

Definition at line 825 of file bridge.h.

#define ATE_V   0x01

Definition at line 818 of file bridge.h.

#define b_devio (   n)    b_devio_raw[((n)<2)?(n*2):(n+2)]

Definition at line 253 of file bridge.h.

#define b_even_resp   b_rrb_map[0].reg /* 0x000284 */

Definition at line 170 of file bridge.h.

#define b_gio_err_lower   b_pci_err_lower

Definition at line 131 of file bridge.h.

#define b_gio_err_upper   b_pci_err_upper

Definition at line 132 of file bridge.h.

#define b_odd_resp   b_rrb_map[1].reg /* 0x00028C */

Definition at line 171 of file bridge.h.

#define b_pci_bus_timeout   b_bus_timeout

Definition at line 122 of file bridge.h.

#define b_wid_control   b_widget.w_control

Definition at line 80 of file bridge.h.

#define b_wid_err_cmdword   b_widget.w_err_cmd_word

Definition at line 84 of file bridge.h.

#define b_wid_err_lower   b_widget.w_err_lower_addr

Definition at line 79 of file bridge.h.

#define b_wid_err_upper   b_widget.w_err_upper_addr

Definition at line 78 of file bridge.h.

#define b_wid_id   b_widget.w_id

Definition at line 76 of file bridge.h.

#define b_wid_int_lower   b_widget.w_intdest_lower_addr

Definition at line 83 of file bridge.h.

#define b_wid_int_upper   b_widget.w_intdest_upper_addr

Definition at line 82 of file bridge.h.

#define b_wid_llp   b_widget.w_llp_cfg

Definition at line 85 of file bridge.h.

#define b_wid_req_timeout   b_widget.w_req_timeout

Definition at line 81 of file bridge.h.

#define b_wid_stat   b_widget.w_status

Definition at line 77 of file bridge.h.

#define b_wid_tflush   b_widget.w_tflush

Definition at line 86 of file bridge.h.

#define berr_field   berr_un.berr_st

Definition at line 287 of file bridge.h.

#define BRIDGE_ARB   0x0000A4 /* Arbitration Priority reg */

Definition at line 319 of file bridge.h.

#define BRIDGE_ARB_FREEZE_GNT   (1 << 6)

Definition at line 471 of file bridge.h.

#define BRIDGE_ARB_HPRI_RING_B0   (1 << 3)

Definition at line 474 of file bridge.h.

#define BRIDGE_ARB_HPRI_RING_B1   (1 << 4)

Definition at line 473 of file bridge.h.

#define BRIDGE_ARB_HPRI_RING_B2   (1 << 5)

Definition at line 472 of file bridge.h.

#define BRIDGE_ARB_LPRI_RING_B0   (1 << 0)

Definition at line 477 of file bridge.h.

#define BRIDGE_ARB_LPRI_RING_B1   (1 << 1)

Definition at line 476 of file bridge.h.

#define BRIDGE_ARB_LPRI_RING_B2   (1 << 2)

Definition at line 475 of file bridge.h.

#define BRIDGE_ARB_REQ_WAIT_EN (   x)    ((x) << 8)

Definition at line 469 of file bridge.h.

#define BRIDGE_ARB_REQ_WAIT_EN_MASK   BRIDGE_ARB_REQ_WAIT_EN(0xff)

Definition at line 470 of file bridge.h.

#define BRIDGE_ARB_REQ_WAIT_TICK (   x)    ((x) << 16)

Definition at line 467 of file bridge.h.

#define BRIDGE_ARB_REQ_WAIT_TICK_MASK   BRIDGE_ARB_REQ_WAIT_TICK(0x3)

Definition at line 468 of file bridge.h.

#define BRIDGE_ATE_RAM   0x00010000 /* Internal Addr Xlat Ram */

Definition at line 356 of file bridge.h.

#define BRIDGE_ATE_RAM_SIZE   0x00000400 /* 1kB ATE RAM */

Definition at line 30 of file bridge.h.

#define BRIDGE_BUS_GIO_TIMEOUT   (1 << 12)

Definition at line 482 of file bridge.h.

#define BRIDGE_BUS_PCI_RETRY_CNT (   x)    ((x) << 0)

Definition at line 483 of file bridge.h.

#define BRIDGE_BUS_PCI_RETRY_HLD (   x)    ((x) << 16)

Definition at line 480 of file bridge.h.

#define BRIDGE_BUS_PCI_RETRY_HLD_MASK   BRIDGE_BUS_PCI_RETRY_HLD(0x1f)

Definition at line 481 of file bridge.h.

#define BRIDGE_BUS_PCI_RETRY_MASK   BRIDGE_BUS_PCI_RETRY_CNT(0x3ff)

Definition at line 484 of file bridge.h.

#define BRIDGE_BUS_TIMEOUT   0x0000C4 /* Bus Timeout Register */

Definition at line 323 of file bridge.h.

#define BRIDGE_CONFIG1_BASE   0x28000

Definition at line 33 of file bridge.h.

#define BRIDGE_CONFIG_BASE   0x20000

Definition at line 32 of file bridge.h.

#define BRIDGE_CONFIG_END   0x30000

Definition at line 34 of file bridge.h.

#define BRIDGE_CONFIG_SLOT_SIZE   0x1000

Definition at line 35 of file bridge.h.

#define BRIDGE_CONTROLLER (   bus)    ((struct bridge_controller *)((bus)->sysdata))

Definition at line 846 of file bridge.h.

#define BRIDGE_CREDIT   3

Definition at line 691 of file bridge.h.

#define BRIDGE_CTRL_CLR_RLLP_CNT   (0x1 << 11)

Definition at line 435 of file bridge.h.

#define BRIDGE_CTRL_CLR_TLLP_CNT   (0x1 << 10)

Definition at line 436 of file bridge.h.

#define BRIDGE_CTRL_EN_CLK33   (0x1 << 28)

Definition at line 417 of file bridge.h.

#define BRIDGE_CTRL_EN_CLK40   (0x1 << 29)

Definition at line 416 of file bridge.h.

#define BRIDGE_CTRL_EN_CLK50   (0x1 << 30)

Definition at line 415 of file bridge.h.

#define BRIDGE_CTRL_F_BAD_PKT   (0x1 << 16)

Definition at line 432 of file bridge.h.

#define BRIDGE_CTRL_FLASH_WR_EN   (0x1ul << 31)

Definition at line 414 of file bridge.h.

#define BRIDGE_CTRL_IO_SWAP   (0x1 << 23)

Definition at line 421 of file bridge.h.

#define BRIDGE_CTRL_LLP_XBAR_CRD (   n)    ((n) << 12)

Definition at line 433 of file bridge.h.

#define BRIDGE_CTRL_LLP_XBAR_CRD_MASK   (BRIDGE_CTRL_LLP_XBAR_CRD(0xf))

Definition at line 434 of file bridge.h.

#define BRIDGE_CTRL_MAX_TRANS (   n)    ((n) << 4)

Definition at line 438 of file bridge.h.

#define BRIDGE_CTRL_MAX_TRANS_MASK   (BRIDGE_CTRL_MAX_TRANS(0x1f))

Definition at line 439 of file bridge.h.

#define BRIDGE_CTRL_MEM_SWAP   (0x1 << 22)

Definition at line 422 of file bridge.h.

#define BRIDGE_CTRL_PAGE_SIZE   (0x1 << 21)

Definition at line 423 of file bridge.h.

#define BRIDGE_CTRL_RST (   n)    ((n) << 24)

Definition at line 418 of file bridge.h.

#define BRIDGE_CTRL_RST_MASK   (BRIDGE_CTRL_RST(0xF))

Definition at line 419 of file bridge.h.

#define BRIDGE_CTRL_RST_PIN (   x)    (BRIDGE_CTRL_RST(0x1 << (x)))

Definition at line 420 of file bridge.h.

#define BRIDGE_CTRL_SS_PAR_BAD   (0x1 << 20)

Definition at line 424 of file bridge.h.

#define BRIDGE_CTRL_SS_PAR_EN   (0x1 << 19)

Definition at line 425 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_128K   (BRIDGE_CTRL_SSRAM_SIZE(0x2))

Definition at line 429 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_1K   (BRIDGE_CTRL_SSRAM_SIZE(0x0))

Definition at line 431 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_512K   (BRIDGE_CTRL_SSRAM_SIZE(0x3))

Definition at line 428 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_64K   (BRIDGE_CTRL_SSRAM_SIZE(0x1))

Definition at line 430 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_SIZE (   n)    ((n) << 17)

Definition at line 426 of file bridge.h.

#define BRIDGE_CTRL_SSRAM_SIZE_MASK   (BRIDGE_CTRL_SSRAM_SIZE(0x3))

Definition at line 427 of file bridge.h.

#define BRIDGE_CTRL_SYS_END   (0x1 << 9)

Definition at line 437 of file bridge.h.

#define BRIDGE_CTRL_WIDGET_ID (   n)    ((n) << 0)

Definition at line 440 of file bridge.h.

#define BRIDGE_CTRL_WIDGET_ID_MASK   (BRIDGE_CTRL_WIDGET_ID(0xf))

Definition at line 441 of file bridge.h.

#define BRIDGE_DEV_BARRIER   0x00008000

Definition at line 659 of file bridge.h.

#define BRIDGE_DEV_CNT   8 /* Up to 8 devices per bridge */

Definition at line 374 of file bridge.h.

#define BRIDGE_DEV_COH   0x00010000

Definition at line 658 of file bridge.h.

#define BRIDGE_DEV_D32_BITS
Value:
BRIDGE_DEV_SWAP_DIR | \
BRIDGE_DEV_PREF | \
BRIDGE_DEV_PRECISE | \
BRIDGE_DEV_COH | \
BRIDGE_DEV_BARRIER)

Definition at line 668 of file bridge.h.

#define BRIDGE_DEV_D64_BITS
Value:
BRIDGE_DEV_SWAP_DIR | \
BRIDGE_DEV_COH | \
BRIDGE_DEV_BARRIER)

Definition at line 674 of file bridge.h.

#define BRIDGE_DEV_DEV_IO_MEM   0x00001000

Definition at line 662 of file bridge.h.

#define BRIDGE_DEV_DEV_SIZE   0x00400000

Definition at line 652 of file bridge.h.

#define BRIDGE_DEV_DEV_SWAP   0x00002000

Definition at line 661 of file bridge.h.

#define BRIDGE_DEV_DIR_WRGA_EN   0x00800000

Definition at line 651 of file bridge.h.

#define BRIDGE_DEV_ERR_LOCK_EN   0x10000000

Definition at line 646 of file bridge.h.

#define BRIDGE_DEV_FORCE_PCI_PAR   0x04000000

Definition at line 648 of file bridge.h.

#define BRIDGE_DEV_GBR   0x00004000

Definition at line 660 of file bridge.h.

#define BRIDGE_DEV_OFF_ADDR_SHFT   20

Definition at line 664 of file bridge.h.

#define BRIDGE_DEV_OFF_MASK   0x00000fff

Definition at line 663 of file bridge.h.

#define BRIDGE_DEV_PAGE_CHK_DIS   0x08000000

Definition at line 647 of file bridge.h.

#define BRIDGE_DEV_PMU_BITS
Value:
BRIDGE_DEV_SWAP_PMU)

Definition at line 666 of file bridge.h.

#define BRIDGE_DEV_PMU_WRGA_EN   0x01000000

Definition at line 650 of file bridge.h.

#define BRIDGE_DEV_PRECISE   0x00020000

Definition at line 657 of file bridge.h.

#define BRIDGE_DEV_PREF   0x00040000

Definition at line 656 of file bridge.h.

#define BRIDGE_DEV_RT   0x00200000

Definition at line 653 of file bridge.h.

#define BRIDGE_DEV_SWAP_DIR   0x00080000

Definition at line 655 of file bridge.h.

#define BRIDGE_DEV_SWAP_PMU   0x00100000

Definition at line 654 of file bridge.h.

#define BRIDGE_DEV_VIRTUAL_EN   0x02000000

Definition at line 649 of file bridge.h.

#define BRIDGE_DEVICE (   x)    (BRIDGE_DEVICE0+(x)*BRIDGE_DEVICE_OFF)

Definition at line 342 of file bridge.h.

#define BRIDGE_DEVICE0   0x000204 /* Device 0 */

Definition at line 340 of file bridge.h.

#define BRIDGE_DEVICE_OFF   0x000008 /* Device offset (1..7) */

Definition at line 341 of file bridge.h.

#define BRIDGE_DEVIO (   x)    ((x)<=1 ? BRIDGE_DEVIO0+(x)*BRIDGE_DEVIO_2MB : BRIDGE_DEVIO2+((x)-2)*BRIDGE_DEVIO_1MB)

Definition at line 383 of file bridge.h.

#define BRIDGE_DEVIO0   0x00200000 /* Device IO 0 Addr */

Definition at line 375 of file bridge.h.

#define BRIDGE_DEVIO1   0x00400000 /* Device IO 1 Addr */

Definition at line 376 of file bridge.h.

#define BRIDGE_DEVIO2   0x00600000 /* Device IO 2 Addr */

Definition at line 377 of file bridge.h.

#define BRIDGE_DEVIO_1MB   0x00100000 /* Device IO Offset (2..7) */

Definition at line 381 of file bridge.h.

#define BRIDGE_DEVIO_2MB   0x00200000 /* Device IO Offset (0..1) */

Definition at line 380 of file bridge.h.

#define BRIDGE_DEVIO_OFF   0x00100000 /* Device IO Offset (3..7) */

Definition at line 378 of file bridge.h.

#define BRIDGE_DIR_MAP   0x000084 /* Direct Map reg */

Definition at line 315 of file bridge.h.

#define BRIDGE_DIRECT_32_SEG_SIZE   BRIDGE_DMA_DIRECT_SIZE

Definition at line 785 of file bridge.h.

#define BRIDGE_DIRECT_32_TO_XTALK (   dir_off,
  adr 
)
Value:

Definition at line 786 of file bridge.h.

#define BRIDGE_DIRMAP_ADD512   (0x1 << 17)

Definition at line 462 of file bridge.h.

#define BRIDGE_DIRMAP_OFF   (0x1ffff << 0)

Definition at line 463 of file bridge.h.

#define BRIDGE_DIRMAP_OFF_ADDRSHFT   (31) /* lsbit of DIRMAP_OFF is xtalk address bit 31 */

Definition at line 464 of file bridge.h.

#define BRIDGE_DIRMAP_RMF_64   (0x1 << 18)

Definition at line 461 of file bridge.h.

#define BRIDGE_DIRMAP_W_ID   (0xf << BRIDGE_DIRMAP_W_ID_SHFT)

Definition at line 460 of file bridge.h.

#define BRIDGE_DIRMAP_W_ID_SHFT   20

Definition at line 459 of file bridge.h.

#define BRIDGE_DMA_DIRECT_BASE   0x80000000

Definition at line 747 of file bridge.h.

#define BRIDGE_DMA_DIRECT_SIZE   0x80000000 /* 2G Bytes */

Definition at line 748 of file bridge.h.

#define BRIDGE_DMA_MAPPED_BASE   0x40000000

Definition at line 745 of file bridge.h.

#define BRIDGE_DMA_MAPPED_SIZE   0x40000000 /* 1G Bytes */

Definition at line 746 of file bridge.h.

#define BRIDGE_ERRUPPR_ADDRMASK   (0xFFFF)

Definition at line 685 of file bridge.h.

#define BRIDGE_ERRUPPR_DEVICE (   err)    (((err) >> BRIDGE_ERRUPPR_DEVNUM_SHFT) & 0x7)

Definition at line 684 of file bridge.h.

#define BRIDGE_ERRUPPR_DEVMASTER   (0x1 << 20) /* Device was master */

Definition at line 680 of file bridge.h.

#define BRIDGE_ERRUPPR_DEVNUM_MASK   (0x7 << BRIDGE_ERRUPPR_DEVNUM_SHFT)

Definition at line 683 of file bridge.h.

#define BRIDGE_ERRUPPR_DEVNUM_SHFT   (16)

Definition at line 682 of file bridge.h.

#define BRIDGE_ERRUPPR_PCIVDEV   (0x1 << 19) /* Virtual Req value */

Definition at line 681 of file bridge.h.

#define BRIDGE_EVEN_RESP   0x000284 /* Even Device Response Buf */

Definition at line 348 of file bridge.h.

#define BRIDGE_EXT_SSRAM   0x00080000 /* Extern SSRAM (ATE) */

Definition at line 370 of file bridge.h.

#define BRIDGE_EXTERNAL_FLASH   0x00C00000 /* External Flash PROMS */

Definition at line 385 of file bridge.h.

#define BRIDGE_GIO_MEM32_BASE   BRIDGE_PIO32_XTALK_ALIAS_BASE

Definition at line 766 of file bridge.h.

#define BRIDGE_GIO_MEM32_LIMIT   BRIDGE_PIO32_XTALK_ALIAS_LIMIT

Definition at line 767 of file bridge.h.

#define BRIDGE_IMR_BAD_XREQ_PKT   BRIDGE_ISR_BAD_XREQ_PKT

Definition at line 555 of file bridge.h.

#define BRIDGE_IMR_BAD_XRESP_PKT   BRIDGE_ISR_BAD_XRESP_PKT

Definition at line 554 of file bridge.h.

#define BRIDGE_IMR_GIO_B_ENBL_ERR   BRIDGE_ISR_GIO_B_ENBL_ERR

Definition at line 575 of file bridge.h.

#define BRIDGE_IMR_GIO_MST_TIMEOUT   BRIDGE_ISR_GIO_MST_TIMEOUT

Definition at line 572 of file bridge.h.

#define BRIDGE_IMR_INT (   x)    BRIDGE_ISR_INT(x)

Definition at line 577 of file bridge.h.

#define BRIDGE_IMR_INT_MSK   BRIDGE_ISR_INT_MSK

Definition at line 576 of file bridge.h.

#define BRIDGE_IMR_INVLD_ADDR   BRIDGE_ISR_INVLD_ADDR

Definition at line 558 of file bridge.h.

#define BRIDGE_IMR_LLP_RCTY   BRIDGE_ISR_LLP_RCTY

Definition at line 563 of file bridge.h.

#define BRIDGE_IMR_LLP_REC_CBERR   BRIDGE_ISR_LLP_REC_CBERR

Definition at line 562 of file bridge.h.

#define BRIDGE_IMR_LLP_REC_SNERR   BRIDGE_ISR_LLP_REC_SNERR

Definition at line 561 of file bridge.h.

#define BRIDGE_IMR_LLP_TCTY   BRIDGE_ISR_LLP_TCTY

Definition at line 565 of file bridge.h.

#define BRIDGE_IMR_LLP_TX_RETRY   BRIDGE_ISR_LLP_TX_RETRY

Definition at line 564 of file bridge.h.

#define BRIDGE_IMR_PCI_ABORT   BRIDGE_ISR_PCI_ABORT

Definition at line 567 of file bridge.h.

#define BRIDGE_IMR_PCI_MST_TIMEOUT   BRIDGE_ISR_PCI_MST_TIMEOUT

Definition at line 571 of file bridge.h.

#define BRIDGE_IMR_PCI_PARITY   BRIDGE_ISR_PCI_PARITY

Definition at line 568 of file bridge.h.

#define BRIDGE_IMR_PCI_PERR   BRIDGE_ISR_PCI_PERR

Definition at line 570 of file bridge.h.

#define BRIDGE_IMR_PCI_RETRY_CNT   BRIDGE_ISR_PCI_RETRY_CNT

Definition at line 573 of file bridge.h.

#define BRIDGE_IMR_PCI_SERR   BRIDGE_ISR_PCI_SERR

Definition at line 569 of file bridge.h.

#define BRIDGE_IMR_PMU_ESIZE_FAULT   BRIDGE_ISR_PMU_ESIZE_FAULT

Definition at line 553 of file bridge.h.

#define BRIDGE_IMR_REQ_XTLK_ERR   BRIDGE_ISR_REQ_XTLK_ERR

Definition at line 557 of file bridge.h.

#define BRIDGE_IMR_RESP_XTLK_ERR   BRIDGE_ISR_RESP_XTLK_ERR

Definition at line 556 of file bridge.h.

#define BRIDGE_IMR_SSRAM_PERR   BRIDGE_ISR_SSRAM_PERR

Definition at line 566 of file bridge.h.

#define BRIDGE_IMR_UNEXP_RESP   BRIDGE_ISR_UNEXP_RESP

Definition at line 552 of file bridge.h.

#define BRIDGE_IMR_UNSUPPORTED_XOP   BRIDGE_ISR_UNSUPPORTED_XOP

Definition at line 559 of file bridge.h.

#define BRIDGE_IMR_XREAD_REQ_TIMEOUT   BRIDGE_ISR_XREAD_REQ_TIMEOUT

Definition at line 574 of file bridge.h.

#define BRIDGE_IMR_XREQ_FIFO_OFLOW   BRIDGE_ISR_XREQ_FIFO_OFLOW

Definition at line 560 of file bridge.h.

#define BRIDGE_INT_ADDR (   x)    (BRIDGE_INT_ADDR0+(x)*BRIDGE_INT_ADDR_OFF)

Definition at line 338 of file bridge.h.

#define BRIDGE_INT_ADDR0   0x000134 /* Host Address Reg */

Definition at line 336 of file bridge.h.

#define BRIDGE_INT_ADDR_DEST_IO   (1 << 17)

Definition at line 641 of file bridge.h.

#define BRIDGE_INT_ADDR_DEST_MEM   0

Definition at line 642 of file bridge.h.

#define BRIDGE_INT_ADDR_FLD   0x000000FF

Definition at line 623 of file bridge.h.

#define BRIDGE_INT_ADDR_HOST   0x0003FF00

Definition at line 622 of file bridge.h.

#define BRIDGE_INT_ADDR_MASK   (1 << 17)

Definition at line 643 of file bridge.h.

#define BRIDGE_INT_ADDR_NASID_SHFT   8

Definition at line 635 of file bridge.h.

#define BRIDGE_INT_ADDR_OFF   0x000008 /* Host Addr offset (1..7) */

Definition at line 337 of file bridge.h.

#define BRIDGE_INT_DEV_MASK (   n)    (0x7 << BRIDGE_INT_DEV_SHFT(n))

Definition at line 618 of file bridge.h.

#define BRIDGE_INT_DEV_SET (   _dev,
  _line 
)    (_dev << BRIDGE_INT_DEV_SHFT(_line))

Definition at line 619 of file bridge.h.

#define BRIDGE_INT_DEV_SHFT (   n)    ((n)*3)

Definition at line 617 of file bridge.h.

#define BRIDGE_INT_DEVICE   0x000124 /* Interrupt Device */

Definition at line 333 of file bridge.h.

#define BRIDGE_INT_ENABLE   0x00010C /* Interrupt Enables */

Definition at line 330 of file bridge.h.

#define BRIDGE_INT_HOST_ERR   0x00012C /* Host Error Field */

Definition at line 334 of file bridge.h.

#define BRIDGE_INT_MODE   0x00011C /* Interrupt Mode */

Definition at line 332 of file bridge.h.

#define BRIDGE_INT_RST_STAT   0x000114 /* Reset Intr Status */

Definition at line 331 of file bridge.h.

#define BRIDGE_INT_STATUS   0x000104 /* Interrupt Status */

Definition at line 329 of file bridge.h.

#define BRIDGE_INTERNAL_ATES   128

Definition at line 832 of file bridge.h.

#define BRIDGE_INTMODE_CLR_PKT_EN (   x)    (0x1 << (x))

Definition at line 688 of file bridge.h.

#define BRIDGE_IRR_ALL_CLR   0x7f

Definition at line 588 of file bridge.h.

#define BRIDGE_IRR_CRP_GRP
Value:
BRIDGE_ISR_XREQ_FIFO_OFLOW)

Definition at line 590 of file bridge.h.

#define BRIDGE_IRR_CRP_GRP_CLR   (0x1 << 5)

Definition at line 581 of file bridge.h.

#define BRIDGE_IRR_GIO_GRP
Value:
BRIDGE_ISR_GIO_MST_TIMEOUT)

Definition at line 613 of file bridge.h.

#define BRIDGE_IRR_GIO_GRP_CLR   (0x1 << 0)

Definition at line 587 of file bridge.h.

#define BRIDGE_IRR_LLP_GRP
Value:
BRIDGE_ISR_LLP_REC_CBERR | \
BRIDGE_ISR_LLP_RCTY | \
BRIDGE_ISR_LLP_TX_RETRY | \
BRIDGE_ISR_LLP_TCTY)

Definition at line 599 of file bridge.h.

#define BRIDGE_IRR_LLP_GRP_CLR   (0x1 << 2)

Definition at line 584 of file bridge.h.

#define BRIDGE_IRR_MULTI_CLR   (0x1 << 6)

Definition at line 580 of file bridge.h.

#define BRIDGE_IRR_PCI_GRP
Value:
BRIDGE_ISR_PCI_PARITY | \
BRIDGE_ISR_PCI_SERR | \
BRIDGE_ISR_PCI_PERR | \
BRIDGE_ISR_PCI_MST_TIMEOUT | \
BRIDGE_ISR_PCI_RETRY_CNT)

Definition at line 606 of file bridge.h.

#define BRIDGE_IRR_PCI_GRP_CLR   (0x1 << 0)

Definition at line 586 of file bridge.h.

#define BRIDGE_IRR_REQ_DSP_GRP
Value:
BRIDGE_ISR_BAD_XREQ_PKT | \
BRIDGE_ISR_REQ_XTLK_ERR | \
BRIDGE_ISR_INVLD_ADDR)

Definition at line 595 of file bridge.h.

#define BRIDGE_IRR_REQ_DSP_GRP_CLR   (0x1 << 3)

Definition at line 583 of file bridge.h.

#define BRIDGE_IRR_RESP_BUF_GRP
Value:
BRIDGE_ISR_RESP_XTLK_ERR | \
BRIDGE_ISR_XREAD_REQ_TIMEOUT)

Definition at line 592 of file bridge.h.

#define BRIDGE_IRR_RESP_BUF_GRP_CLR   (0x1 << 4)

Definition at line 582 of file bridge.h.

#define BRIDGE_IRR_SSRAM_GRP
Value:
BRIDGE_ISR_PMU_ESIZE_FAULT)

Definition at line 604 of file bridge.h.

#define BRIDGE_IRR_SSRAM_GRP_CLR   (0x1 << 1)

Definition at line 585 of file bridge.h.

#define BRIDGE_ISR_BAD_XREQ_PKT   (0x1 << 27)

Definition at line 491 of file bridge.h.

#define BRIDGE_ISR_BAD_XRESP_PKT   (0x1 << 28)

Definition at line 490 of file bridge.h.

#define BRIDGE_ISR_ERROR_DUMP
Value:

Definition at line 547 of file bridge.h.

#define BRIDGE_ISR_ERROR_FATAL
#define BRIDGE_ISR_ERRORS
Value:
BRIDGE_ISR_XTALK_ERROR|BRIDGE_ISR_SSRAM_PERR| \
BRIDGE_ISR_PMU_ESIZE_FAULT)

Definition at line 535 of file bridge.h.

#define BRIDGE_ISR_GIO_B_ENBL_ERR   (0x1 << 8)

Definition at line 511 of file bridge.h.

#define BRIDGE_ISR_GIO_MST_TIMEOUT   BRIDGE_ISR_PCI_MST_TIMEOUT

Definition at line 508 of file bridge.h.

#define BRIDGE_ISR_INT (   x)    (0x1 << (x))

Definition at line 513 of file bridge.h.

#define BRIDGE_ISR_INT_MSK   (0xff << 0)

Definition at line 512 of file bridge.h.

#define BRIDGE_ISR_INVLD_ADDR   (0x1 << 24)

Definition at line 494 of file bridge.h.

#define BRIDGE_ISR_LINK_ERROR
Value:
BRIDGE_ISR_LLP_RCTY|BRIDGE_ISR_LLP_TX_RETRY| \
BRIDGE_ISR_LLP_TCTY)

Definition at line 515 of file bridge.h.

#define BRIDGE_ISR_LLP_RCTY   (0x1 << 19)

Definition at line 499 of file bridge.h.

#define BRIDGE_ISR_LLP_REC_CBERR   (0x1 << 20)

Definition at line 498 of file bridge.h.

#define BRIDGE_ISR_LLP_REC_SNERR   (0x1 << 21)

Definition at line 497 of file bridge.h.

#define BRIDGE_ISR_LLP_TCTY   (0x1 << 17)

Definition at line 501 of file bridge.h.

#define BRIDGE_ISR_LLP_TX_RETRY   (0x1 << 18)

Definition at line 500 of file bridge.h.

#define BRIDGE_ISR_MULTI_ERR   (0x1u << 31)

Definition at line 487 of file bridge.h.

#define BRIDGE_ISR_PCI_ABORT   (0x1 << 15)

Definition at line 503 of file bridge.h.

#define BRIDGE_ISR_PCI_MST_TIMEOUT   (0x1 << 11)

Definition at line 507 of file bridge.h.

#define BRIDGE_ISR_PCI_PARITY   (0x1 << 14)

Definition at line 504 of file bridge.h.

#define BRIDGE_ISR_PCI_PERR   (0x1 << 12)

Definition at line 506 of file bridge.h.

#define BRIDGE_ISR_PCI_RETRY_CNT   (0x1 << 10)

Definition at line 509 of file bridge.h.

#define BRIDGE_ISR_PCI_SERR   (0x1 << 13)

Definition at line 505 of file bridge.h.

#define BRIDGE_ISR_PCIBUS_ERROR
Value:
BRIDGE_ISR_PCI_SERR|BRIDGE_ISR_PCI_RETRY_CNT| \
BRIDGE_ISR_PCI_PARITY)

Definition at line 523 of file bridge.h.

#define BRIDGE_ISR_PCIBUS_PIOERR   (BRIDGE_ISR_PCI_MST_TIMEOUT|BRIDGE_ISR_PCI_ABORT)

Definition at line 520 of file bridge.h.

#define BRIDGE_ISR_PMU_ESIZE_FAULT   (0x1 << 30)

Definition at line 488 of file bridge.h.

#define BRIDGE_ISR_REQ_XTLK_ERR   (0x1 << 25)

Definition at line 493 of file bridge.h.

#define BRIDGE_ISR_RESP_XTLK_ERR   (0x1 << 26)

Definition at line 492 of file bridge.h.

#define BRIDGE_ISR_SSRAM_PERR   (0x1 << 16)

Definition at line 502 of file bridge.h.

#define BRIDGE_ISR_UNEXP_RESP   (0x1 << 29)

Definition at line 489 of file bridge.h.

#define BRIDGE_ISR_UNSUPPORTED_XOP   (0x1 << 23)

Definition at line 495 of file bridge.h.

#define BRIDGE_ISR_XREAD_REQ_TIMEOUT   (0x1 << 9)

Definition at line 510 of file bridge.h.

#define BRIDGE_ISR_XREQ_FIFO_OFLOW   (0x1 << 22)

Definition at line 496 of file bridge.h.

#define BRIDGE_ISR_XTALK_ERROR
Value:
BRIDGE_ISR_UNSUPPORTED_XOP|BRIDGE_ISR_INVLD_ADDR| \
BRIDGE_ISR_REQ_XTLK_ERR|BRIDGE_ISR_RESP_XTLK_ERR| \
BRIDGE_ISR_BAD_XREQ_PKT|BRIDGE_ISR_BAD_XRESP_PKT| \
BRIDGE_ISR_UNEXP_RESP)

Definition at line 528 of file bridge.h.

#define BRIDGE_LOCAL_BASE   0

Definition at line 744 of file bridge.h.

#define BRIDGE_MAX_PIO_ADDR_IO   0xffffffff

Definition at line 730 of file bridge.h.

#define BRIDGE_MAX_PIO_ADDR_MEM   0x3fffffff

Definition at line 728 of file bridge.h.

#define BRIDGE_MIN_PIO_ADDR_IO   0x00000000 /* 4G PCI IO space */

Definition at line 729 of file bridge.h.

#define BRIDGE_MIN_PIO_ADDR_MEM   0x00000000 /* 1G PCI memory space */

Definition at line 727 of file bridge.h.

#define BRIDGE_NIC   0x0000B4 /* Number In A Can */

Definition at line 321 of file bridge.h.

#define BRIDGE_ODD_RESP   0x00028C /* Odd Device Response Buf */

Definition at line 349 of file bridge.h.

#define BRIDGE_PCI_BUS_TIMEOUT   BRIDGE_BUS_TIMEOUT

Definition at line 324 of file bridge.h.

#define BRIDGE_PCI_CFG   0x0000CC /* PCI Type 1 Config reg */

Definition at line 325 of file bridge.h.

#define BRIDGE_PCI_ERR_LOWER   0x0000DC /* PCI error Lower Addr */

Definition at line 327 of file bridge.h.

#define BRIDGE_PCI_ERR_UPPER   0x0000D4 /* PCI error Upper Addr */

Definition at line 326 of file bridge.h.

#define BRIDGE_PCI_IACK   0x00030000 /* PCI Interrupt Ack */

Definition at line 369 of file bridge.h.

#define BRIDGE_PCI_IO_BASE   BRIDGE_PCIIO_XTALK_ALIAS_BASE

Definition at line 737 of file bridge.h.

#define BRIDGE_PCI_IO_LIMIT   BRIDGE_PCIIO_XTALK_ALIAS_LIMIT

Definition at line 738 of file bridge.h.

#define BRIDGE_PCI_MEM32_BASE   BRIDGE_PIO32_XTALK_ALIAS_BASE

Definition at line 733 of file bridge.h.

#define BRIDGE_PCI_MEM32_LIMIT   BRIDGE_PIO32_XTALK_ALIAS_LIMIT

Definition at line 734 of file bridge.h.

#define BRIDGE_PCI_MEM64_BASE   BRIDGE_PIO64_XTALK_ALIAS_BASE

Definition at line 735 of file bridge.h.

#define BRIDGE_PCI_MEM64_LIMIT   BRIDGE_PIO64_XTALK_ALIAS_LIMIT

Definition at line 736 of file bridge.h.

#define BRIDGE_PCIIO_XTALK_ALIAS_BASE   0x000100000000L

Definition at line 723 of file bridge.h.

#define BRIDGE_PCIIO_XTALK_ALIAS_LIMIT   0x0001FFFFFFFFL

Definition at line 724 of file bridge.h.

#define BRIDGE_PIO32_XTALK_ALIAS_BASE   0x000040000000L

Definition at line 719 of file bridge.h.

#define BRIDGE_PIO32_XTALK_ALIAS_LIMIT   0x00007FFFFFFFL

Definition at line 720 of file bridge.h.

#define BRIDGE_PIO64_XTALK_ALIAS_BASE   0x000080000000L

Definition at line 721 of file bridge.h.

#define BRIDGE_PIO64_XTALK_ALIAS_LIMIT   0x0000BFFFFFFFL

Definition at line 722 of file bridge.h.

#define BRIDGE_RAM_PERR   0x000094 /* SSRAM Parity Error */

Definition at line 317 of file bridge.h.

#define BRIDGE_RESP_CLEAR   0x00029C /* Read Response Clear reg */

Definition at line 352 of file bridge.h.

#define BRIDGE_RESP_ERRRUPPR_BUFMASK   (0xFFFF)

Definition at line 448 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_BUFNUM (   x)
Value:
BRIDGE_RESP_ERRUPPR_BUFNUM_SHFT)

Definition at line 450 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_BUFNUM_MASK   (0xF << BRIDGE_RESP_ERRUPPR_BUFNUM_SHFT)

Definition at line 447 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_BUFNUM_SHFT   (16)

Definition at line 446 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_DEVICE (   x)
Value:
BRIDGE_RESP_ERRUPPR_DEVNUM_SHFT)

Definition at line 454 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_DEVNUM_MASK   (0x7 << BRIDGE_RESP_ERRUPPR_DEVNUM_SHFT)

Definition at line 445 of file bridge.h.

#define BRIDGE_RESP_ERRUPPR_DEVNUM_SHFT   (20)

Definition at line 444 of file bridge.h.

#define BRIDGE_RESP_STATUS   0x000294 /* Read Response Status reg */

Definition at line 351 of file bridge.h.

#define BRIDGE_REV_A   0x1

Definition at line 400 of file bridge.h.

#define BRIDGE_REV_B   0x2

Definition at line 401 of file bridge.h.

#define BRIDGE_REV_C   0x3

Definition at line 402 of file bridge.h.

#define BRIDGE_REV_D   0x4

Definition at line 403 of file bridge.h.

#define BRIDGE_RRB_CLEAR (   r)    (0x00000001<<(r))

Definition at line 704 of file bridge.h.

#define BRIDGE_RRB_DEV   0x7 /* after shifting down */

Definition at line 695 of file bridge.h.

#define BRIDGE_RRB_EN   0x8 /* after shifting down */

Definition at line 694 of file bridge.h.

#define BRIDGE_RRB_INUSE (   r)    (0x00000001<<(r))

Definition at line 701 of file bridge.h.

#define BRIDGE_RRB_PDEV   0x3 /* after shifting down */

Definition at line 697 of file bridge.h.

#define BRIDGE_RRB_VALID (   r)    (0x00010000<<(r))

Definition at line 700 of file bridge.h.

#define BRIDGE_RRB_VDEV   0x4 /* after shifting down */

Definition at line 696 of file bridge.h.

#define BRIDGE_SSRAM_0K   0x00000000 /* 0kB */

Definition at line 40 of file bridge.h.

#define BRIDGE_SSRAM_128K   0x00020000 /* 128kB */

Definition at line 38 of file bridge.h.

#define BRIDGE_SSRAM_512K   0x00080000 /* 512kB */

Definition at line 37 of file bridge.h.

#define BRIDGE_SSRAM_64K   0x00010000 /* 64kB */

Definition at line 39 of file bridge.h.

#define BRIDGE_STAT_FLASH_SELECT   (0x1 << 6)

Definition at line 409 of file bridge.h.

#define BRIDGE_STAT_LLP_REC_CNT   (0xFFu << 24)

Definition at line 407 of file bridge.h.

#define BRIDGE_STAT_LLP_TX_CNT   (0xFF << 16)

Definition at line 408 of file bridge.h.

#define BRIDGE_STAT_PCI_GIO_N   (0x1 << 5)

Definition at line 410 of file bridge.h.

#define BRIDGE_STAT_PENDING   (0x1F << 0)

Definition at line 411 of file bridge.h.

#define BRIDGE_TMO_GIO_TIMEOUT_MASK   0x001000

Definition at line 626 of file bridge.h.

#define BRIDGE_TMO_PCI_RETRY_CNT_MASK   0x0003ff

Definition at line 627 of file bridge.h.

#define BRIDGE_TMO_PCI_RETRY_CNT_MAX   0x3ff

Definition at line 629 of file bridge.h.

#define BRIDGE_TMO_PCI_RETRY_HLD_MASK   0x1f0000

Definition at line 625 of file bridge.h.

#define BRIDGE_TYPE0_CFG_DEV (   s)
Value:

Definition at line 361 of file bridge.h.

#define BRIDGE_TYPE0_CFG_DEV0   0x00020000 /* Type 0 Cfg, Device 0 */

Definition at line 358 of file bridge.h.

#define BRIDGE_TYPE0_CFG_DEVF (   s,
  f 
)
#define BRIDGE_TYPE0_CFG_FUNC_OFF   0x00000100 /* Type 0 Cfg Func Offset (1..7) */

Definition at line 360 of file bridge.h.

#define BRIDGE_TYPE0_CFG_SLOT_OFF   0x00001000 /* Type 0 Cfg Slot Offset (1..7) */

Definition at line 359 of file bridge.h.

#define BRIDGE_TYPE1_CFG   0x00028000 /* Type 1 Cfg space */

Definition at line 367 of file bridge.h.

#define BRIDGE_WID_AUX_ERR   0x00005C /* Aux Error Command Word */

Definition at line 310 of file bridge.h.

#define BRIDGE_WID_CONTROL   WIDGET_CONTROL

Definition at line 302 of file bridge.h.

#define BRIDGE_WID_ERR_CMDWORD   WIDGET_ERR_CMD_WORD

Definition at line 306 of file bridge.h.

#define BRIDGE_WID_ERR_LOWER   WIDGET_ERR_LOWER_ADDR

Definition at line 301 of file bridge.h.

#define BRIDGE_WID_ERR_UPPER   WIDGET_ERR_UPPER_ADDR

Definition at line 300 of file bridge.h.

#define BRIDGE_WID_ID   WIDGET_ID

Definition at line 298 of file bridge.h.

#define BRIDGE_WID_INT_LOWER   WIDGET_INTDEST_LOWER_ADDR

Definition at line 305 of file bridge.h.

#define BRIDGE_WID_INT_UPPER   WIDGET_INTDEST_UPPER_ADDR

Definition at line 304 of file bridge.h.

#define BRIDGE_WID_LLP   WIDGET_LLP_CFG

Definition at line 307 of file bridge.h.

#define BRIDGE_WID_REQ_TIMEOUT   WIDGET_REQ_TIMEOUT

Definition at line 303 of file bridge.h.

#define BRIDGE_WID_RESP_LOWER   0x00006C /* Response Buf Lower Addr */

Definition at line 312 of file bridge.h.

#define BRIDGE_WID_RESP_UPPER   0x000064 /* Response Buf Upper Addr */

Definition at line 311 of file bridge.h.

#define BRIDGE_WID_STAT   WIDGET_STATUS

Definition at line 299 of file bridge.h.

#define BRIDGE_WID_TFLUSH   WIDGET_TFLUSH

Definition at line 308 of file bridge.h.

#define BRIDGE_WID_TST_PIN_CTRL   0x000074 /* Test pin control */

Definition at line 313 of file bridge.h.

#define BRIDGE_WIDGET_MFGR_NUM   0x036

Definition at line 396 of file bridge.h.

#define BRIDGE_WIDGET_PART_NUM   0xc002

Definition at line 392 of file bridge.h.

#define BRIDGE_WR_REQ_BUF (   x)    (BRIDGE_WR_REQ_BUF0+(x)*BRIDGE_WR_REQ_BUF_OFF)

Definition at line 346 of file bridge.h.

#define BRIDGE_WR_REQ_BUF0   0x000244 /* Write Request Buffer 0 */

Definition at line 344 of file bridge.h.

#define BRIDGE_WR_REQ_BUF_OFF   0x000008 /* Buffer Offset (1..7) */

Definition at line 345 of file bridge.h.

#define FLASH_PROM1_BASE   0xE00000 /* To read the xbox sysctlr status */

Definition at line 708 of file bridge.h.

#define GIO_DIRECT_BASE   BRIDGE_DMA_DIRECT_BASE

Definition at line 773 of file bridge.h.

#define GIO_LOCAL_BASE   BRIDGE_LOCAL_BASE

Definition at line 769 of file bridge.h.

#define GIO_MAPPED_BASE   BRIDGE_DMA_MAPPED_BASE

Definition at line 772 of file bridge.h.

#define IOPFNSHIFT   12 /* 4K per mapped page */

Definition at line 22 of file bridge.h.

#define IOPG (   x)    ((x) >> IOPFNSHIFT)

Definition at line 25 of file bridge.h.

#define IOPGOFF (   x)    ((x) & (IOPGSIZE-1))

Definition at line 26 of file bridge.h.

#define IOPGSIZE   (1 << IOPFNSHIFT)

Definition at line 24 of file bridge.h.

#define IS_GIO_DIRECT (   x)    ((ulong_t)(x) >= GIO_MAPPED_BASE)

Definition at line 778 of file bridge.h.

#define IS_GIO_LOCAL (   x)    ((ulong_t)(x) < GIO_MAPPED_BASE)

Definition at line 775 of file bridge.h.

#define IS_GIO_MAPPED (   x)
Value:
((ulong_t)(x) < GIO_DIRECT_BASE && \
(ulong_t)(x) >= GIO_MAPPED_BASE)

Definition at line 776 of file bridge.h.

#define IS_PCI32_DIRECT (   x)    ((ulong_t)(x) >= PCI32_MAPPED_BASE)

Definition at line 759 of file bridge.h.

#define IS_PCI32_LOCAL (   x)    ((ulong_t)(x) < PCI32_MAPPED_BASE)

Definition at line 756 of file bridge.h.

#define IS_PCI32_MAPPED (   x)
Value:
((ulong_t)(x) < PCI32_DIRECT_BASE && \
(ulong_t)(x) >= PCI32_MAPPED_BASE)

Definition at line 757 of file bridge.h.

#define IS_PCI64 (   x)    ((ulong_t)(x) >= PCI64_BASE)

Definition at line 760 of file bridge.h.

#define mkate (   xaddr,
  xid,
  attr 
)
Value:
((xaddr) & 0x0000fffffffff000ULL) | \
((xid)<<ATE_TIDSHIFT) | \
(attr)

Definition at line 828 of file bridge.h.

#define PCI32_DIRECT_BASE   BRIDGE_DMA_DIRECT_BASE

Definition at line 754 of file bridge.h.

#define PCI32_LOCAL_BASE   BRIDGE_LOCAL_BASE

Definition at line 750 of file bridge.h.

#define PCI32_MAPPED_BASE   BRIDGE_DMA_MAPPED_BASE

Definition at line 753 of file bridge.h.

#define PCI64_ATTR_BAR   0x0100000000000000

Definition at line 796 of file bridge.h.

#define PCI64_ATTR_PREC   0x0400000000000000

Definition at line 794 of file bridge.h.

#define PCI64_ATTR_PREF   0x0800000000000000

Definition at line 793 of file bridge.h.

#define PCI64_ATTR_RMF_MASK   0x00ff000000000000

Definition at line 797 of file bridge.h.

#define PCI64_ATTR_RMF_SHFT   48

Definition at line 798 of file bridge.h.

#define PCI64_ATTR_TARG_MASK   0xf000000000000000

Definition at line 791 of file bridge.h.

#define PCI64_ATTR_TARG_SHFT   60

Definition at line 792 of file bridge.h.

#define PCI64_ATTR_VIRTUAL   0x0200000000000000

Definition at line 795 of file bridge.h.

#define XBOX_BRIDGE_WID   8

Definition at line 707 of file bridge.h.

#define XBOX_RPS_EXISTS   1 << 6 /* RPS bit in status register */

Definition at line 709 of file bridge.h.

#define XBOX_RPS_FAIL   1 << 4 /* RPS status bit in register */

Definition at line 710 of file bridge.h.

#define XBRIDGE_WIDGET_MFGR_NUM   0x024

Definition at line 397 of file bridge.h.

#define XBRIDGE_WIDGET_PART_NUM   0xd002

Definition at line 393 of file bridge.h.

Typedef Documentation

typedef union ate_u ate_t
typedef volatile bridge_ate_t* bridge_ate_p

Definition at line 59 of file bridge.h.

typedef u64 bridge_ate_t

Definition at line 54 of file bridge.h.

typedef u32 bridgereg_t

Definition at line 52 of file bridge.h.

Function Documentation

void register_bridge_irq ( unsigned int  irq)

Definition at line 339 of file ip27-irq.c.

int request_bridge_irq ( struct bridge_controller bc)

Definition at line 344 of file ip27-irq.c.

Variable Documentation

struct pci_ops bridge_pci_ops

Definition at line 319 of file ops-bridge.c.