|
#define | IBCT_NOTIFY (0x1UL << 4) |
|
#define | IBCT_ZFIL_MODE (0x1UL << 0) |
|
#define | BTE_PRINTK(x) |
|
#define | BTE_PRINTKV(x) |
|
#define | BTE_LEN_BITS (16) |
|
#define | BTE_LEN_MASK ((1 << BTE_LEN_BITS) - 1) |
|
#define | BTE_MAX_XFER (BTE_LEN_MASK << L1_CACHE_SHIFT) |
|
#define | BTES_PER_NODE (is_shub2() ? 4 : 2) |
|
#define | MAX_BTES_PER_NODE 4 |
|
#define | BTE2OFF_CTRL 0 |
|
#define | BTE2OFF_SRC (SH2_BT_ENG_SRC_ADDR_0 - SH2_BT_ENG_CSR_0) |
|
#define | BTE2OFF_DEST (SH2_BT_ENG_DEST_ADDR_0 - SH2_BT_ENG_CSR_0) |
|
#define | BTE2OFF_NOTIFY (SH2_BT_ENG_NOTIF_ADDR_0 - SH2_BT_ENG_CSR_0) |
|
#define | BTE_BASE_ADDR(interface) |
|
#define | BTE_SOURCE_ADDR(base) |
|
#define | BTE_DEST_ADDR(base) |
|
#define | BTE_CTRL_ADDR(base) |
|
#define | BTE_NOTIF_ADDR(base) |
|
#define | BTE_NOTIFY IBCT_NOTIFY |
|
#define | BTE_NORMAL BTE_NOTIFY |
|
#define | BTE_ZERO_FILL (BTE_NOTIFY | IBCT_ZFIL_MODE) |
|
#define | BTE_WACQUIRE 0x4000 |
|
#define | BTE_USE_DEST (BTE_WACQUIRE << 1) |
|
#define | BTE_USE_ANY (BTE_USE_DEST << 1) |
|
#define | BTE_VALID_MODE(x) ((x) & (IBCT_NOTIFY | IBCT_ZFIL_MODE)) |
|
#define | BTE_ACTIVE (IBLS_BUSY | IBLS_ERROR) |
|
#define | BTE_WORD_AVAILABLE (IBLS_BUSY << 1) |
|
#define | BTE_WORD_BUSY (~BTE_WORD_AVAILABLE) |
|
#define | BTE_LNSTAT_LOAD(_bte) HUB_L(_bte->bte_base_addr) |
|
#define | BTE_LNSTAT_STORE(_bte, _x) HUB_S(_bte->bte_base_addr, (_x)) |
|
#define | BTE_SRC_STORE(_bte, _x) |
|
#define | BTE_DEST_STORE(_bte, _x) |
|
#define | BTE_CTRL_STORE(_bte, _x) HUB_S(_bte->bte_control_addr, (_x)) |
|
#define | BTE_NOTIF_STORE(_bte, _x) |
|
#define | BTE_START_TRANSFER(_bte, _len, _mode) |
|
#define | BTEFAIL_OFFSET 1 |
|
#define | BTEFAIL_SH2_RESP_SHORT 0x1 /* bit 000001 */ |
|
#define | BTEFAIL_SH2_RESP_LONG 0x2 /* bit 000010 */ |
|
#define | BTEFAIL_SH2_RESP_DSP 0x4 /* bit 000100 */ |
|
#define | BTEFAIL_SH2_RESP_ACCESS 0x8 /* bit 001000 */ |
|
#define | BTEFAIL_SH2_CRB_TO 0x10 /* bit 010000 */ |
|
#define | BTEFAIL_SH2_NACK_LIMIT 0x20 /* bit 100000 */ |
|
#define | BTEFAIL_SH2_ALL 0x3F /* bit 111111 */ |
|
#define | BTE_ERR_BITS 0x3FUL |
|
#define | BTE_ERR_SHIFT 36 |
|
#define | BTE_ERR_MASK (BTE_ERR_BITS << BTE_ERR_SHIFT) |
|
#define | BTE_ERROR_RETRY(value) |
|
#define | BTE_SHUB2_ERROR(_status) |
|
#define | BTE_GET_ERROR_STATUS(_status) (BTE_SHUB2_ERROR(_status) & ~IBLS_ERROR) |
|
#define | BTE_VALID_SH2_ERROR(value) ((value >= BTEFAIL_SH2_RESP_SHORT) && (value <= BTEFAIL_SH2_ALL)) |
|
#define | bte_zero(dest, len, mode, notification) bte_copy(0, dest, len, ((mode) | BTE_ZERO_FILL), notification) |
|
#define | BTE_UNALIGNED_COPY(src, dest, len, mode) |
|