pci.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. /*
  2. * This program is free software; you can redistribute it and/or modify it
  3. * under the terms of the GNU General Public License as published by the
  4. * Free Software Foundation; either version 2 of the License, or (at your
  5. * option) any later version.
  6. *
  7. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  8. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  10. * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  11. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  12. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  13. * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  14. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  15. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  16. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 675 Mass Ave, Cambridge, MA 02139, USA.
  21. *
  22. * Copyright 2004 IDT Inc. (rischelp@idt.com)
  23. *
  24. * Initial Release
  25. */
  26. #ifndef _ASM_RC32434_PCI_H_
  27. #define _ASM_RC32434_PCI_H_
  28. #define epld_mask ((volatile unsigned char *)0xB900000d)
  29. #define PCI0_BASE_ADDR 0x18080000
  30. #define PCI_LBA_COUNT 4
  31. struct pci_map {
  32. u32 address; /* Address. */
  33. u32 control; /* Control. */
  34. u32 mapping; /* mapping. */
  35. };
  36. struct pci_reg {
  37. u32 pcic;
  38. u32 pcis;
  39. u32 pcism;
  40. u32 pcicfga;
  41. u32 pcicfgd;
  42. volatile struct pci_map pcilba[PCI_LBA_COUNT];
  43. u32 pcidac;
  44. u32 pcidas;
  45. u32 pcidasm;
  46. u32 pcidad;
  47. u32 pcidma8c;
  48. u32 pcidma9c;
  49. u32 pcitc;
  50. };
  51. #define PCI_MSU_COUNT 2
  52. struct pci_msu {
  53. u32 pciim[PCI_MSU_COUNT];
  54. u32 pciom[PCI_MSU_COUNT];
  55. u32 pciid;
  56. u32 pciiic;
  57. u32 pciiim;
  58. u32 pciiod;
  59. u32 pciioic;
  60. u32 pciioim;
  61. };
  62. /*
  63. * PCI Control Register
  64. */
  65. #define PCI_CTL_EN (1 << 0)
  66. #define PCI_CTL_TNR (1 << 1)
  67. #define PCI_CTL_SCE (1 << 2)
  68. #define PCI_CTL_IEN (1 << 3)
  69. #define PCI_CTL_AAA (1 << 4)
  70. #define PCI_CTL_EAP (1 << 5)
  71. #define PCI_CTL_PCIM_BIT 6
  72. #define PCI_CTL_PCIM 0x000001c0
  73. #define PCI_CTL_PCIM_DIS 0
  74. #define PCI_CTL_PCIM_TNR 1 /* Satellite - target not ready */
  75. #define PCI_CTL_PCIM_SUS 2 /* Satellite - suspended CPU. */
  76. #define PCI_CTL_PCIM_EXT 3 /* Host - external arbiter. */
  77. #define PCI_CTL PCIM_PRIO 4 /* Host - fixed priority arb. */
  78. #define PCI_CTL_PCIM_RR 5 /* Host - round robin priority. */
  79. #define PCI_CTL_PCIM_RSVD6 6
  80. #define PCI_CTL_PCIM_RSVD7 7
  81. #define PCI_CTL_IGM (1 << 9)
  82. /*
  83. * PCI Status Register
  84. */
  85. #define PCI_STAT_EED (1 << 0)
  86. #define PCI_STAT_WR (1 << 1)
  87. #define PCI_STAT_NMI (1 << 2)
  88. #define PCI_STAT_II (1 << 3)
  89. #define PCI_STAT_CWE (1 << 4)
  90. #define PCI_STAT_CRE (1 << 5)
  91. #define PCI_STAT_MDPE (1 << 6)
  92. #define PCI_STAT_STA (1 << 7)
  93. #define PCI_STAT_RTA (1 << 8)
  94. #define PCI_STAT_RMA (1 << 9)
  95. #define PCI_STAT_SSE (1 << 10)
  96. #define PCI_STAT_OSE (1 << 11)
  97. #define PCI_STAT_PE (1 << 12)
  98. #define PCI_STAT_TAE (1 << 13)
  99. #define PCI_STAT_RLE (1 << 14)
  100. #define PCI_STAT_BME (1 << 15)
  101. #define PCI_STAT_PRD (1 << 16)
  102. #define PCI_STAT_RIP (1 << 17)
  103. /*
  104. * PCI Status Mask Register
  105. */
  106. #define PCI_STATM_EED PCI_STAT_EED
  107. #define PCI_STATM_WR PCI_STAT_WR
  108. #define PCI_STATM_NMI PCI_STAT_NMI
  109. #define PCI_STATM_II PCI_STAT_II
  110. #define PCI_STATM_CWE PCI_STAT_CWE
  111. #define PCI_STATM_CRE PCI_STAT_CRE
  112. #define PCI_STATM_MDPE PCI_STAT_MDPE
  113. #define PCI_STATM_STA PCI_STAT_STA
  114. #define PCI_STATM_RTA PCI_STAT_RTA
  115. #define PCI_STATM_RMA PCI_STAT_RMA
  116. #define PCI_STATM_SSE PCI_STAT_SSE
  117. #define PCI_STATM_OSE PCI_STAT_OSE
  118. #define PCI_STATM_PE PCI_STAT_PE
  119. #define PCI_STATM_TAE PCI_STAT_TAE
  120. #define PCI_STATM_RLE PCI_STAT_RLE
  121. #define PCI_STATM_BME PCI_STAT_BME
  122. #define PCI_STATM_PRD PCI_STAT_PRD
  123. #define PCI_STATM_RIP PCI_STAT_RIP
  124. /*
  125. * PCI Configuration Address Register
  126. */
  127. #define PCI_CFGA_REG_BIT 2
  128. #define PCI_CFGA_REG 0x000000fc
  129. #define PCI_CFGA_REG_ID (0x00 >> 2) /* use PCFGID */
  130. #define PCI_CFGA_REG_04 (0x04 >> 2) /* use PCFG04_ */
  131. #define PCI_CFGA_REG_08 (0x08 >> 2) /* use PCFG08_ */
  132. #define PCI_CFGA_REG_0C (0x0C >> 2) /* use PCFG0C_ */
  133. #define PCI_CFGA_REG_PBA0 (0x10 >> 2) /* use PCIPBA_ */
  134. #define PCI_CFGA_REG_PBA1 (0x14 >> 2) /* use PCIPBA_ */
  135. #define PCI_CFGA_REG_PBA2 (0x18 >> 2) /* use PCIPBA_ */
  136. #define PCI_CFGA_REG_PBA3 (0x1c >> 2) /* use PCIPBA_ */
  137. #define PCI_CFGA_REG_SUBSYS (0x2c >> 2) /* use PCFGSS_ */
  138. #define PCI_CFGA_REG_3C (0x3C >> 2) /* use PCFG3C_ */
  139. #define PCI_CFGA_REG_PBBA0C (0x44 >> 2) /* use PCIPBAC_ */
  140. #define PCI_CFGA_REG_PBA0M (0x48 >> 2)
  141. #define PCI_CFGA_REG_PBA1C (0x4c >> 2) /* use PCIPBAC_ */
  142. #define PCI_CFGA_REG_PBA1M (0x50 >> 2)
  143. #define PCI_CFGA_REG_PBA2C (0x54 >> 2) /* use PCIPBAC_ */
  144. #define PCI_CFGA_REG_PBA2M (0x58 >> 2)
  145. #define PCI_CFGA_REG_PBA3C (0x5c >> 2) /* use PCIPBAC_ */
  146. #define PCI_CFGA_REG_PBA3M (0x60 >> 2)
  147. #define PCI_CFGA_REG_PMGT (0x64 >> 2)
  148. #define PCI_CFGA_FUNC_BIT 8
  149. #define PCI_CFGA_FUNC 0x00000700
  150. #define PCI_CFGA_DEV_BIT 11
  151. #define PCI_CFGA_DEV 0x0000f800
  152. #define PCI_CFGA_DEV_INTERN 0
  153. #define PCI_CFGA_BUS_BIT 16
  154. #define PCI CFGA_BUS 0x00ff0000
  155. #define PCI_CFGA_BUS_TYPE0 0
  156. #define PCI_CFGA_EN (1 << 31)
  157. /* PCI CFG04 commands */
  158. #define PCI_CFG04_CMD_IO_ENA (1 << 0)
  159. #define PCI_CFG04_CMD_MEM_ENA (1 << 1)
  160. #define PCI_CFG04_CMD_BM_ENA (1 << 2)
  161. #define PCI_CFG04_CMD_MW_INV (1 << 4)
  162. #define PCI_CFG04_CMD_PAR_ENA (1 << 6)
  163. #define PCI_CFG04_CMD_SER_ENA (1 << 8)
  164. #define PCI_CFG04_CMD_FAST_ENA (1 << 9)
  165. /* PCI CFG04 status fields */
  166. #define PCI_CFG04_STAT_BIT 16
  167. #define PCI_CFG04_STAT 0xffff0000
  168. #define PCI_CFG04_STAT_66_MHZ (1 << 21)
  169. #define PCI_CFG04_STAT_FBB (1 << 23)
  170. #define PCI_CFG04_STAT_MDPE (1 << 24)
  171. #define PCI_CFG04_STAT_DST (1 << 25)
  172. #define PCI_CFG04_STAT_STA (1 << 27)
  173. #define PCI_CFG04_STAT_RTA (1 << 28)
  174. #define PCI_CFG04_STAT_RMA (1 << 29)
  175. #define PCI_CFG04_STAT_SSE (1 << 30)
  176. #define PCI_CFG04_STAT_PE (1 << 31)
  177. #define PCI_PBA_MSI (1 << 0)
  178. #define PCI_PBA_P (1 << 2)
  179. /* PCI PBAC registers */
  180. #define PCI_PBAC_MSI (1 << 0)
  181. #define PCI_PBAC_P (1 << 1)
  182. #define PCI_PBAC_SIZE_BIT 2
  183. #define PCI_PBAC_SIZE 0x0000007c
  184. #define PCI_PBAC_SB (1 << 7)
  185. #define PCI_PBAC_PP (1 << 8)
  186. #define PCI_PBAC_MR_BIT 9
  187. #define PCI_PBAC_MR 0x00000600
  188. #define PCI_PBAC_MR_RD 0
  189. #define PCI_PBAC_MR_RD_LINE 1
  190. #define PCI_PBAC_MR_RD_MULT 2
  191. #define PCI_PBAC_MRL (1 << 11)
  192. #define PCI_PBAC_MRM (1 << 12)
  193. #define PCI_PBAC_TRP (1 << 13)
  194. #define PCI_CFG40_TRDY_TIM 0x000000ff
  195. #define PCI_CFG40_RET_LIM 0x0000ff00
  196. /*
  197. * PCI Local Base Address [0|1|2|3] Register
  198. */
  199. #define PCI_LBA_BADDR_BIT 0
  200. #define PCI_LBA_BADDR 0xffffff00
  201. /*
  202. * PCI Local Base Address Control Register
  203. */
  204. #define PCI_LBAC_MSI (1 << 0)
  205. #define PCI_LBAC_MSI_MEM 0
  206. #define PCI_LBAC_MSI_IO 1
  207. #define PCI_LBAC_SIZE_BIT 2
  208. #define PCI_LBAC_SIZE 0x0000007c
  209. #define PCI_LBAC_SB (1 << 7)
  210. #define PCI_LBAC_RT (1 << 8)
  211. #define PCI_LBAC_RT_NO_PREF 0
  212. #define PCI_LBAC_RT_PREF 1
  213. /*
  214. * PCI Local Base Address [0|1|2|3] Mapping Register
  215. */
  216. #define PCI_LBAM_MADDR_BIT 8
  217. #define PCI_LBAM_MADDR 0xffffff00
  218. /*
  219. * PCI Decoupled Access Control Register
  220. */
  221. #define PCI_DAC_DEN (1 << 0)
  222. /*
  223. * PCI Decoupled Access Status Register
  224. */
  225. #define PCI_DAS_D (1 << 0)
  226. #define PCI_DAS_B (1 << 1)
  227. #define PCI_DAS_E (1 << 2)
  228. #define PCI_DAS_OFE (1 << 3)
  229. #define PCI_DAS_OFF (1 << 4)
  230. #define PCI_DAS_IFE (1 << 5)
  231. #define PCI_DAS_IFF (1 << 6)
  232. /*
  233. * PCI DMA Channel 8 Configuration Register
  234. */
  235. #define PCI_DMA8C_MBS_BIT 0
  236. #define PCI_DMA8C_MBS 0x00000fff /* Maximum Burst Size. */
  237. #define PCI_DMA8C_OUR (1 << 12)
  238. /*
  239. * PCI DMA Channel 9 Configuration Register
  240. */
  241. #define PCI_DMA9C_MBS_BIT 0 /* Maximum Burst Size. */
  242. #define PCI_DMA9C_MBS 0x00000fff
  243. /*
  244. * PCI to Memory(DMA Channel 8) AND Memory to PCI DMA(DMA Channel 9)Descriptors
  245. */
  246. #define PCI_DMAD_PT_BIT 22 /* in DEVCMD field (descriptor) */
  247. #define PCI_DMAD_PT 0x00c00000 /* preferred transaction field */
  248. /* These are for reads (DMA channel 8) */
  249. #define PCI_DMAD_DEVCMD_MR 0 /* memory read */
  250. #define PCI_DMAD_DEVCMD_MRL 1 /* memory read line */
  251. #define PCI_DMAD_DEVCMD_MRM 2 /* memory read multiple */
  252. #define PCI_DMAD_DEVCMD_IOR 3 /* I/O read */
  253. /* These are for writes (DMA channel 9) */
  254. #define PCI_DMAD_DEVCMD_MW 0 /* memory write */
  255. #define PCI_DMAD_DEVCMD_MWI 1 /* memory write invalidate */
  256. #define PCI_DMAD_DEVCMD_IOW 3 /* I/O write */
  257. /* Swap byte field applies to both DMA channel 8 and 9 */
  258. #define PCI_DMAD_SB (1 << 24) /* swap byte field */
  259. /*
  260. * PCI Target Control Register
  261. */
  262. #define PCI_TC_RTIMER_BIT 0
  263. #define PCI_TC_RTIMER 0x000000ff
  264. #define PCI_TC_DTIMER_BIT 8
  265. #define PCI_TC_DTIMER 0x0000ff00
  266. #define PCI_TC_RDR (1 << 18)
  267. #define PCI_TC_DDT (1 << 19)
  268. /*
  269. * PCI messaging unit [applies to both inbound and outbound registers ]
  270. */
  271. #define PCI_MSU_M0 (1 << 0)
  272. #define PCI_MSU_M1 (1 << 1)
  273. #define PCI_MSU_DB (1 << 2)
  274. #define PCI_MSG_ADDR 0xB8088010
  275. #define PCI0_ADDR 0xB8080000
  276. #define rc32434_pci ((struct pci_reg *) PCI0_ADDR)
  277. #define rc32434_pci_msg ((struct pci_msu *) PCI_MSG_ADDR)
  278. #define PCIM_SHFT 0x6
  279. #define PCIM_BIT_LEN 0x7
  280. #define PCIM_H_EA 0x3
  281. #define PCIM_H_IA_FIX 0x4
  282. #define PCIM_H_IA_RR 0x5
  283. #if 0
  284. #define PCI_ADDR_START 0x13000000
  285. #endif
  286. #define PCI_ADDR_START 0x50000000
  287. #define CPUTOPCI_MEM_WIN 0x02000000
  288. #define CPUTOPCI_IO_WIN 0x00100000
  289. #define PCILBA_SIZE_SHFT 2
  290. #define PCILBA_SIZE_MASK 0x1F
  291. #define SIZE_256MB 0x1C
  292. #define SIZE_128MB 0x1B
  293. #define SIZE_64MB 0x1A
  294. #define SIZE_32MB 0x19
  295. #define SIZE_16MB 0x18
  296. #define SIZE_4MB 0x16
  297. #define SIZE_2MB 0x15
  298. #define SIZE_1MB 0x14
  299. #define KORINA_CONFIG0_ADDR 0x80000000
  300. #define KORINA_CONFIG1_ADDR 0x80000004
  301. #define KORINA_CONFIG2_ADDR 0x80000008
  302. #define KORINA_CONFIG3_ADDR 0x8000000C
  303. #define KORINA_CONFIG4_ADDR 0x80000010
  304. #define KORINA_CONFIG5_ADDR 0x80000014
  305. #define KORINA_CONFIG6_ADDR 0x80000018
  306. #define KORINA_CONFIG7_ADDR 0x8000001C
  307. #define KORINA_CONFIG8_ADDR 0x80000020
  308. #define KORINA_CONFIG9_ADDR 0x80000024
  309. #define KORINA_CONFIG10_ADDR 0x80000028
  310. #define KORINA_CONFIG11_ADDR 0x8000002C
  311. #define KORINA_CONFIG12_ADDR 0x80000030
  312. #define KORINA_CONFIG13_ADDR 0x80000034
  313. #define KORINA_CONFIG14_ADDR 0x80000038
  314. #define KORINA_CONFIG15_ADDR 0x8000003C
  315. #define KORINA_CONFIG16_ADDR 0x80000040
  316. #define KORINA_CONFIG17_ADDR 0x80000044
  317. #define KORINA_CONFIG18_ADDR 0x80000048
  318. #define KORINA_CONFIG19_ADDR 0x8000004C
  319. #define KORINA_CONFIG20_ADDR 0x80000050
  320. #define KORINA_CONFIG21_ADDR 0x80000054
  321. #define KORINA_CONFIG22_ADDR 0x80000058
  322. #define KORINA_CONFIG23_ADDR 0x8000005C
  323. #define KORINA_CONFIG24_ADDR 0x80000060
  324. #define KORINA_CONFIG25_ADDR 0x80000064
  325. #define KORINA_CMD (PCI_CFG04_CMD_IO_ENA | \
  326. PCI_CFG04_CMD_MEM_ENA | \
  327. PCI_CFG04_CMD_BM_ENA | \
  328. PCI_CFG04_CMD_MW_INV | \
  329. PCI_CFG04_CMD_PAR_ENA | \
  330. PCI_CFG04_CMD_SER_ENA)
  331. #define KORINA_STAT (PCI_CFG04_STAT_MDPE | \
  332. PCI_CFG04_STAT_STA | \
  333. PCI_CFG04_STAT_RTA | \
  334. PCI_CFG04_STAT_RMA | \
  335. PCI_CFG04_STAT_SSE | \
  336. PCI_CFG04_STAT_PE)
  337. #define KORINA_CNFG1 ((KORINA_STAT<<16)|KORINA_CMD)
  338. #define KORINA_REVID 0
  339. #define KORINA_CLASS_CODE 0
  340. #define KORINA_CNFG2 ((KORINA_CLASS_CODE<<8) | \
  341. KORINA_REVID)
  342. #define KORINA_CACHE_LINE_SIZE 4
  343. #define KORINA_MASTER_LAT 0x3c
  344. #define KORINA_HEADER_TYPE 0
  345. #define KORINA_BIST 0
  346. #define KORINA_CNFG3 ((KORINA_BIST << 24) | \
  347. (KORINA_HEADER_TYPE<<16) | \
  348. (KORINA_MASTER_LAT<<8) | \
  349. KORINA_CACHE_LINE_SIZE)
  350. #define KORINA_BAR0 0x00000008 /* 128 MB Memory */
  351. #define KORINA_BAR1 0x18800001 /* 1 MB IO */
  352. #define KORINA_BAR2 0x18000001 /* 2 MB IO window for Korina
  353. internal Registers */
  354. #define KORINA_BAR3 0x48000008 /* Spare 128 MB Memory */
  355. #define KORINA_CNFG4 KORINA_BAR0
  356. #define KORINA_CNFG5 KORINA_BAR1
  357. #define KORINA_CNFG6 KORINA_BAR2
  358. #define KORINA_CNFG7 KORINA_BAR3
  359. #define KORINA_SUBSYS_VENDOR_ID 0x011d
  360. #define KORINA_SUBSYSTEM_ID 0x0214
  361. #define KORINA_CNFG8 0
  362. #define KORINA_CNFG9 0
  363. #define KORINA_CNFG10 0
  364. #define KORINA_CNFG11 ((KORINA_SUBSYS_VENDOR_ID<<16) | \
  365. KORINA_SUBSYSTEM_ID)
  366. #define KORINA_INT_LINE 1
  367. #define KORINA_INT_PIN 1
  368. #define KORINA_MIN_GNT 8
  369. #define KORINA_MAX_LAT 0x38
  370. #define KORINA_CNFG12 0
  371. #define KORINA_CNFG13 0
  372. #define KORINA_CNFG14 0
  373. #define KORINA_CNFG15 ((KORINA_MAX_LAT<<24) | \
  374. (KORINA_MIN_GNT<<16) | \
  375. (KORINA_INT_PIN<<8) | \
  376. KORINA_INT_LINE)
  377. #define KORINA_RETRY_LIMIT 0x80
  378. #define KORINA_TRDY_LIMIT 0x80
  379. #define KORINA_CNFG16 ((KORINA_RETRY_LIMIT<<8) | \
  380. KORINA_TRDY_LIMIT)
  381. #define PCI_PBAxC_R 0x0
  382. #define PCI_PBAxC_RL 0x1
  383. #define PCI_PBAxC_RM 0x2
  384. #define SIZE_SHFT 2
  385. #if defined(__MIPSEB__)
  386. #define KORINA_PBA0C (PCI_PBAC_MRL | PCI_PBAC_SB | \
  387. ((PCI_PBAxC_RM & 0x3) << PCI_PBAC_MR_BIT) | \
  388. PCI_PBAC_PP | \
  389. (SIZE_128MB<<SIZE_SHFT) | \
  390. PCI_PBAC_P)
  391. #else
  392. #define KORINA_PBA0C (PCI_PBAC_MRL | \
  393. ((PCI_PBAxC_RM & 0x3) << PCI_PBAC_MR_BIT) | \
  394. PCI_PBAC_PP | \
  395. (SIZE_128MB<<SIZE_SHFT) | \
  396. PCI_PBAC_P)
  397. #endif
  398. #define KORINA_CNFG17 KORINA_PBA0C
  399. #define KORINA_PBA0M 0x0
  400. #define KORINA_CNFG18 KORINA_PBA0M
  401. #if defined(__MIPSEB__)
  402. #define KORINA_PBA1C ((SIZE_1MB<<SIZE_SHFT) | PCI_PBAC_SB | \
  403. PCI_PBAC_MSI)
  404. #else
  405. #define KORINA_PBA1C ((SIZE_1MB<<SIZE_SHFT) | \
  406. PCI_PBAC_MSI)
  407. #endif
  408. #define KORINA_CNFG19 KORINA_PBA1C
  409. #define KORINA_PBA1M 0x0
  410. #define KORINA_CNFG20 KORINA_PBA1M
  411. #if defined(__MIPSEB__)
  412. #define KORINA_PBA2C ((SIZE_2MB<<SIZE_SHFT) | PCI_PBAC_SB | \
  413. PCI_PBAC_MSI)
  414. #else
  415. #define KORINA_PBA2C ((SIZE_2MB<<SIZE_SHFT) | \
  416. PCI_PBAC_MSI)
  417. #endif
  418. #define KORINA_CNFG21 KORINA_PBA2C
  419. #define KORINA_PBA2M 0x18000000
  420. #define KORINA_CNFG22 KORINA_PBA2M
  421. #define KORINA_PBA3C 0
  422. #define KORINA_CNFG23 KORINA_PBA3C
  423. #define KORINA_PBA3M 0
  424. #define KORINA_CNFG24 KORINA_PBA3M
  425. #define PCITC_DTIMER_VAL 8
  426. #define PCITC_RTIMER_VAL 0x10
  427. #endif /* __ASM_RC32434_PCI_H */