Go to the documentation of this file.
8 #ifndef _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H
9 #define _ASM_IA64_SN_PCI_PCIBR_PROVIDER_H
11 #include <asm/sn/intr.h>
15 #define PV907516 (1 << 1)
17 #define BUSTYPE_MASK 0x1
20 #define IS_PCIX(ps) ((ps)->pbi_bridge_mode & BUSTYPE_MASK)
21 #define IS_PCI_BRIDGE_ASIC(asic) (asic == PCIIO_ASIC_TYPE_PIC || \
22 asic == PCIIO_ASIC_TYPE_TIOCP)
23 #define IS_PIC_SOFT(ps) (ps->pbi_bridge_type == PCIBR_BRIDGETYPE_PIC)
24 #define IS_TIOCP_SOFT(ps) (ps->pbi_bridge_type == PCIBR_BRIDGETYPE_TIOCP)
30 #define PCIBR_BRIDGETYPE_UNKNOWN -1
31 #define PCIBR_BRIDGETYPE_PIC 2
32 #define PCIBR_BRIDGETYPE_TIOCP 3
37 #define PCI64_ATTR_PREF (1ull << 59)
38 #define PCI64_ATTR_PREC (1ull << 58)
39 #define PCI64_ATTR_VIRTUAL (1ull << 57)
40 #define PCI64_ATTR_BAR (1ull << 56)
41 #define PCI64_ATTR_SWAP (1ull << 55)
42 #define PCI64_ATTR_VIRTUAL1 (1ull << 54)
44 #define PCI32_LOCAL_BASE 0
45 #define PCI32_MAPPED_BASE 0x40000000
46 #define PCI32_DIRECT_BASE 0x80000000
48 #define IS_PCI32_MAPPED(x) ((u64)(x) < PCI32_DIRECT_BASE && \
49 (u64)(x) >= PCI32_MAPPED_BASE)
50 #define IS_PCI32_DIRECT(x) ((u64)(x) >= PCI32_MAPPED_BASE)
56 #define PCI32_ATE_V (0x1 << 0)
57 #define PCI32_ATE_CO (0x1 << 1)
58 #define PCI32_ATE_PIO (0x1 << 1)
59 #define PCI32_ATE_MSI (0x1 << 2)
60 #define PCI32_ATE_PREF (0x1 << 3)
61 #define PCI32_ATE_BAR (0x1 << 4)
62 #define PCI32_ATE_ADDR_SHFT 12
64 #define MINIMAL_ATES_REQUIRED(addr, size) \
65 (IOPG(IOPGOFF(addr) + (size) - 1) == IOPG((size) - 1))
67 #define MINIMAL_ATE_FLAG(addr, size) \
68 (MINIMAL_ATES_REQUIRED((u64)addr, size) ? 1 : 0)
71 #define ATE_SWAPSHIFT 29
72 #define ATE_SWAP_ON(x) ((x) |= (1 << ATE_SWAPSHIFT))
73 #define ATE_SWAP_OFF(x) ((x) &= ~(1 << ATE_SWAPSHIFT))
84 #define IOPGSIZE (1 << IOPFNSHIFT)
85 #define IOPG(x) ((x) >> IOPFNSHIFT)
86 #define IOPGOFF(x) ((x) & (IOPGSIZE-1))
88 #define PCIBR_DEV_SWAP_DIR (1ull << 19)
89 #define PCIBR_CTRL_PAGE_SIZE (0x1 << 21)
146 void *
resp,
char **ssdt);