Go to the documentation of this file.
29 #define MSP_HAS_PCI(ID) (((u32)(ID) <= 0x4236) && ((u32)(ID) >= 0x4220))
58 #define MSP_PCI_OATRAN 0xB8000000UL
60 #define MSP_PCI_SPACE_BASE (MSP_PCI_OATRAN + 0x1002000UL)
61 #define MSP_PCI_SPACE_SIZE (0x3000000UL - 0x2000)
62 #define MSP_PCI_SPACE_END \
63 (MSP_PCI_SPACE_BASE + MSP_PCI_SPACE_SIZE - 1)
64 #define MSP_PCI_IOSPACE_BASE (MSP_PCI_OATRAN + 0x1001000UL)
65 #define MSP_PCI_IOSPACE_SIZE 0x1000
66 #define MSP_PCI_IOSPACE_END \
67 (MSP_PCI_IOSPACE_BASE + MSP_PCI_IOSPACE_SIZE - 1)
70 #define PCI_STAT_IRQ 20
72 #define QFLUSH_REG_1 0xB7F40000
74 typedef volatile unsigned int pcireg;
160 #define BPCI_CFGADDR_BUSNUM_SHF 16
161 #define BPCI_CFGADDR_FUNCTNUM_SHF 8
162 #define BPCI_CFGADDR_REGNUM_SHF 2
163 #define BPCI_CFGADDR_ENABLE (1<<31)
165 #define BPCI_IFCONTROL_RTO (1<<20)
166 #define BPCI_IFCONTROL_HCE (1<<16)
167 #define BPCI_IFCONTROL_CTO_SHF 12
168 #define BPCI_IFCONTROL_SE (1<<5)
169 #define BPCI_IFCONTROL_BIST (1<<4)
170 #define BPCI_IFCONTROL_CAP (1<<3)
171 #define BPCI_IFCONTROL_MMC_SHF 0
173 #define BPCI_IFSTATUS_MGT (1<<8)
174 #define BPCI_IFSTATUS_MTT (1<<9)
175 #define BPCI_IFSTATUS_MRT (1<<10)
176 #define BPCI_IFSTATUS_BC0F (1<<13)
177 #define BPCI_IFSTATUS_BC1F (1<<14)
178 #define BPCI_IFSTATUS_PCIU (1<<15)
179 #define BPCI_IFSTATUS_BSIZ (1<<16)
180 #define BPCI_IFSTATUS_BADD (1<<17)
181 #define BPCI_IFSTATUS_RTO (1<<18)
182 #define BPCI_IFSTATUS_SER (1<<19)
183 #define BPCI_IFSTATUS_PER (1<<20)
184 #define BPCI_IFSTATUS_LCA (1<<21)
185 #define BPCI_IFSTATUS_MEM (1<<22)
186 #define BPCI_IFSTATUS_ARB (1<<23)
187 #define BPCI_IFSTATUS_STA (1<<27)
188 #define BPCI_IFSTATUS_TA (1<<28)
189 #define BPCI_IFSTATUS_MA (1<<29)
190 #define BPCI_IFSTATUS_PEI (1<<30)
191 #define BPCI_IFSTATUS_PET (1<<31)
193 #define BPCI_RESETCTL_PR (1<<0)
194 #define BPCI_RESETCTL_RT (1<<4)
195 #define BPCI_RESETCTL_CT (1<<8)
196 #define BPCI_RESETCTL_PE (1<<12)
197 #define BPCI_RESETCTL_HM (1<<13)
198 #define BPCI_RESETCTL_RI (1<<14)
202 extern unsigned long msp_pci_config_space