pci.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2004 Benjamin Herrenschmuidt ([email protected]),
  4. * IBM Corp.
  5. */
  6. #undef DEBUG
  7. #include <linux/kernel.h>
  8. #include <linux/pci.h>
  9. #include <linux/delay.h>
  10. #include <linux/string.h>
  11. #include <linux/init.h>
  12. #include <linux/irq.h>
  13. #include <linux/of_irq.h>
  14. #include <asm/sections.h>
  15. #include <asm/io.h>
  16. #include <asm/pci-bridge.h>
  17. #include <asm/machdep.h>
  18. #include <asm/iommu.h>
  19. #include <asm/ppc-pci.h>
  20. #include <asm/isa-bridge.h>
  21. #include "maple.h"
  22. #ifdef DEBUG
  23. #define DBG(x...) printk(x)
  24. #else
  25. #define DBG(x...)
  26. #endif
  27. static struct pci_controller *u3_agp, *u3_ht, *u4_pcie;
  28. static int __init fixup_one_level_bus_range(struct device_node *node, int higher)
  29. {
  30. for (; node; node = node->sibling) {
  31. const int *bus_range;
  32. const unsigned int *class_code;
  33. int len;
  34. /* For PCI<->PCI bridges or CardBus bridges, we go down */
  35. class_code = of_get_property(node, "class-code", NULL);
  36. if (!class_code || ((*class_code >> 8) != PCI_CLASS_BRIDGE_PCI &&
  37. (*class_code >> 8) != PCI_CLASS_BRIDGE_CARDBUS))
  38. continue;
  39. bus_range = of_get_property(node, "bus-range", &len);
  40. if (bus_range != NULL && len > 2 * sizeof(int)) {
  41. if (bus_range[1] > higher)
  42. higher = bus_range[1];
  43. }
  44. higher = fixup_one_level_bus_range(node->child, higher);
  45. }
  46. return higher;
  47. }
  48. /* This routine fixes the "bus-range" property of all bridges in the
  49. * system since they tend to have their "last" member wrong on macs
  50. *
  51. * Note that the bus numbers manipulated here are OF bus numbers, they
  52. * are not Linux bus numbers.
  53. */
  54. static void __init fixup_bus_range(struct device_node *bridge)
  55. {
  56. int *bus_range;
  57. struct property *prop;
  58. int len;
  59. /* Lookup the "bus-range" property for the hose */
  60. prop = of_find_property(bridge, "bus-range", &len);
  61. if (prop == NULL || prop->value == NULL || len < 2 * sizeof(int)) {
  62. printk(KERN_WARNING "Can't get bus-range for %pOF\n",
  63. bridge);
  64. return;
  65. }
  66. bus_range = prop->value;
  67. bus_range[1] = fixup_one_level_bus_range(bridge->child, bus_range[1]);
  68. }
  69. static unsigned long u3_agp_cfa0(u8 devfn, u8 off)
  70. {
  71. return (1 << (unsigned long)PCI_SLOT(devfn)) |
  72. ((unsigned long)PCI_FUNC(devfn) << 8) |
  73. ((unsigned long)off & 0xFCUL);
  74. }
  75. static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off)
  76. {
  77. return ((unsigned long)bus << 16) |
  78. ((unsigned long)devfn << 8) |
  79. ((unsigned long)off & 0xFCUL) |
  80. 1UL;
  81. }
  82. static volatile void __iomem *u3_agp_cfg_access(struct pci_controller* hose,
  83. u8 bus, u8 dev_fn, u8 offset)
  84. {
  85. unsigned int caddr;
  86. if (bus == hose->first_busno) {
  87. if (dev_fn < (11 << 3))
  88. return NULL;
  89. caddr = u3_agp_cfa0(dev_fn, offset);
  90. } else
  91. caddr = u3_agp_cfa1(bus, dev_fn, offset);
  92. /* Uninorth will return garbage if we don't read back the value ! */
  93. do {
  94. out_le32(hose->cfg_addr, caddr);
  95. } while (in_le32(hose->cfg_addr) != caddr);
  96. offset &= 0x07;
  97. return hose->cfg_data + offset;
  98. }
  99. static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn,
  100. int offset, int len, u32 *val)
  101. {
  102. struct pci_controller *hose;
  103. volatile void __iomem *addr;
  104. hose = pci_bus_to_host(bus);
  105. if (hose == NULL)
  106. return PCIBIOS_DEVICE_NOT_FOUND;
  107. addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
  108. if (!addr)
  109. return PCIBIOS_DEVICE_NOT_FOUND;
  110. /*
  111. * Note: the caller has already checked that offset is
  112. * suitably aligned and that len is 1, 2 or 4.
  113. */
  114. switch (len) {
  115. case 1:
  116. *val = in_8(addr);
  117. break;
  118. case 2:
  119. *val = in_le16(addr);
  120. break;
  121. default:
  122. *val = in_le32(addr);
  123. break;
  124. }
  125. return PCIBIOS_SUCCESSFUL;
  126. }
  127. static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn,
  128. int offset, int len, u32 val)
  129. {
  130. struct pci_controller *hose;
  131. volatile void __iomem *addr;
  132. hose = pci_bus_to_host(bus);
  133. if (hose == NULL)
  134. return PCIBIOS_DEVICE_NOT_FOUND;
  135. addr = u3_agp_cfg_access(hose, bus->number, devfn, offset);
  136. if (!addr)
  137. return PCIBIOS_DEVICE_NOT_FOUND;
  138. /*
  139. * Note: the caller has already checked that offset is
  140. * suitably aligned and that len is 1, 2 or 4.
  141. */
  142. switch (len) {
  143. case 1:
  144. out_8(addr, val);
  145. break;
  146. case 2:
  147. out_le16(addr, val);
  148. break;
  149. default:
  150. out_le32(addr, val);
  151. break;
  152. }
  153. return PCIBIOS_SUCCESSFUL;
  154. }
  155. static struct pci_ops u3_agp_pci_ops =
  156. {
  157. .read = u3_agp_read_config,
  158. .write = u3_agp_write_config,
  159. };
  160. static unsigned long u3_ht_cfa0(u8 devfn, u8 off)
  161. {
  162. return (devfn << 8) | off;
  163. }
  164. static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off)
  165. {
  166. return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL;
  167. }
  168. static volatile void __iomem *u3_ht_cfg_access(struct pci_controller* hose,
  169. u8 bus, u8 devfn, u8 offset)
  170. {
  171. if (bus == hose->first_busno) {
  172. if (PCI_SLOT(devfn) == 0)
  173. return NULL;
  174. return hose->cfg_data + u3_ht_cfa0(devfn, offset);
  175. } else
  176. return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset);
  177. }
  178. static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset,
  179. int len, u32 *val)
  180. {
  181. volatile void __iomem *addr;
  182. addr = hose->cfg_addr;
  183. addr += ((offset & ~3) << 2) + (4 - len - (offset & 3));
  184. switch (len) {
  185. case 1:
  186. *val = in_8(addr);
  187. break;
  188. case 2:
  189. *val = in_be16(addr);
  190. break;
  191. default:
  192. *val = in_be32(addr);
  193. break;
  194. }
  195. return PCIBIOS_SUCCESSFUL;
  196. }
  197. static int u3_ht_root_write_config(struct pci_controller *hose, u8 offset,
  198. int len, u32 val)
  199. {
  200. volatile void __iomem *addr;
  201. addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3));
  202. if (offset >= PCI_BASE_ADDRESS_0 && offset < PCI_CAPABILITY_LIST)
  203. return PCIBIOS_SUCCESSFUL;
  204. switch (len) {
  205. case 1:
  206. out_8(addr, val);
  207. break;
  208. case 2:
  209. out_be16(addr, val);
  210. break;
  211. default:
  212. out_be32(addr, val);
  213. break;
  214. }
  215. return PCIBIOS_SUCCESSFUL;
  216. }
  217. static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn,
  218. int offset, int len, u32 *val)
  219. {
  220. struct pci_controller *hose;
  221. volatile void __iomem *addr;
  222. hose = pci_bus_to_host(bus);
  223. if (hose == NULL)
  224. return PCIBIOS_DEVICE_NOT_FOUND;
  225. if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
  226. return u3_ht_root_read_config(hose, offset, len, val);
  227. if (offset > 0xff)
  228. return PCIBIOS_BAD_REGISTER_NUMBER;
  229. addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
  230. if (!addr)
  231. return PCIBIOS_DEVICE_NOT_FOUND;
  232. /*
  233. * Note: the caller has already checked that offset is
  234. * suitably aligned and that len is 1, 2 or 4.
  235. */
  236. switch (len) {
  237. case 1:
  238. *val = in_8(addr);
  239. break;
  240. case 2:
  241. *val = in_le16(addr);
  242. break;
  243. default:
  244. *val = in_le32(addr);
  245. break;
  246. }
  247. return PCIBIOS_SUCCESSFUL;
  248. }
  249. static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn,
  250. int offset, int len, u32 val)
  251. {
  252. struct pci_controller *hose;
  253. volatile void __iomem *addr;
  254. hose = pci_bus_to_host(bus);
  255. if (hose == NULL)
  256. return PCIBIOS_DEVICE_NOT_FOUND;
  257. if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0))
  258. return u3_ht_root_write_config(hose, offset, len, val);
  259. if (offset > 0xff)
  260. return PCIBIOS_BAD_REGISTER_NUMBER;
  261. addr = u3_ht_cfg_access(hose, bus->number, devfn, offset);
  262. if (!addr)
  263. return PCIBIOS_DEVICE_NOT_FOUND;
  264. /*
  265. * Note: the caller has already checked that offset is
  266. * suitably aligned and that len is 1, 2 or 4.
  267. */
  268. switch (len) {
  269. case 1:
  270. out_8(addr, val);
  271. break;
  272. case 2:
  273. out_le16(addr, val);
  274. break;
  275. default:
  276. out_le32(addr, val);
  277. break;
  278. }
  279. return PCIBIOS_SUCCESSFUL;
  280. }
  281. static struct pci_ops u3_ht_pci_ops =
  282. {
  283. .read = u3_ht_read_config,
  284. .write = u3_ht_write_config,
  285. };
  286. static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off)
  287. {
  288. return (1 << PCI_SLOT(devfn)) |
  289. (PCI_FUNC(devfn) << 8) |
  290. ((off >> 8) << 28) |
  291. (off & 0xfcu);
  292. }
  293. static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn,
  294. unsigned int off)
  295. {
  296. return (bus << 16) |
  297. (devfn << 8) |
  298. ((off >> 8) << 28) |
  299. (off & 0xfcu) | 1u;
  300. }
  301. static volatile void __iomem *u4_pcie_cfg_access(struct pci_controller* hose,
  302. u8 bus, u8 dev_fn, int offset)
  303. {
  304. unsigned int caddr;
  305. if (bus == hose->first_busno)
  306. caddr = u4_pcie_cfa0(dev_fn, offset);
  307. else
  308. caddr = u4_pcie_cfa1(bus, dev_fn, offset);
  309. /* Uninorth will return garbage if we don't read back the value ! */
  310. do {
  311. out_le32(hose->cfg_addr, caddr);
  312. } while (in_le32(hose->cfg_addr) != caddr);
  313. offset &= 0x03;
  314. return hose->cfg_data + offset;
  315. }
  316. static int u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn,
  317. int offset, int len, u32 *val)
  318. {
  319. struct pci_controller *hose;
  320. volatile void __iomem *addr;
  321. hose = pci_bus_to_host(bus);
  322. if (hose == NULL)
  323. return PCIBIOS_DEVICE_NOT_FOUND;
  324. if (offset >= 0x1000)
  325. return PCIBIOS_BAD_REGISTER_NUMBER;
  326. addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
  327. if (!addr)
  328. return PCIBIOS_DEVICE_NOT_FOUND;
  329. /*
  330. * Note: the caller has already checked that offset is
  331. * suitably aligned and that len is 1, 2 or 4.
  332. */
  333. switch (len) {
  334. case 1:
  335. *val = in_8(addr);
  336. break;
  337. case 2:
  338. *val = in_le16(addr);
  339. break;
  340. default:
  341. *val = in_le32(addr);
  342. break;
  343. }
  344. return PCIBIOS_SUCCESSFUL;
  345. }
  346. static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn,
  347. int offset, int len, u32 val)
  348. {
  349. struct pci_controller *hose;
  350. volatile void __iomem *addr;
  351. hose = pci_bus_to_host(bus);
  352. if (hose == NULL)
  353. return PCIBIOS_DEVICE_NOT_FOUND;
  354. if (offset >= 0x1000)
  355. return PCIBIOS_BAD_REGISTER_NUMBER;
  356. addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset);
  357. if (!addr)
  358. return PCIBIOS_DEVICE_NOT_FOUND;
  359. /*
  360. * Note: the caller has already checked that offset is
  361. * suitably aligned and that len is 1, 2 or 4.
  362. */
  363. switch (len) {
  364. case 1:
  365. out_8(addr, val);
  366. break;
  367. case 2:
  368. out_le16(addr, val);
  369. break;
  370. default:
  371. out_le32(addr, val);
  372. break;
  373. }
  374. return PCIBIOS_SUCCESSFUL;
  375. }
  376. static struct pci_ops u4_pcie_pci_ops =
  377. {
  378. .read = u4_pcie_read_config,
  379. .write = u4_pcie_write_config,
  380. };
  381. static void __init setup_u3_agp(struct pci_controller* hose)
  382. {
  383. /* On G5, we move AGP up to high bus number so we don't need
  384. * to reassign bus numbers for HT. If we ever have P2P bridges
  385. * on AGP, we'll have to move pci_assign_all_buses to the
  386. * pci_controller structure so we enable it for AGP and not for
  387. * HT childs.
  388. * We hard code the address because of the different size of
  389. * the reg address cell, we shall fix that by killing struct
  390. * reg_property and using some accessor functions instead
  391. */
  392. hose->first_busno = 0xf0;
  393. hose->last_busno = 0xff;
  394. hose->ops = &u3_agp_pci_ops;
  395. hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000);
  396. hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000);
  397. u3_agp = hose;
  398. }
  399. static void __init setup_u4_pcie(struct pci_controller* hose)
  400. {
  401. /* We currently only implement the "non-atomic" config space, to
  402. * be optimised later.
  403. */
  404. hose->ops = &u4_pcie_pci_ops;
  405. hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000);
  406. hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000);
  407. u4_pcie = hose;
  408. }
  409. static void __init setup_u3_ht(struct pci_controller* hose)
  410. {
  411. hose->ops = &u3_ht_pci_ops;
  412. /* We hard code the address because of the different size of
  413. * the reg address cell, we shall fix that by killing struct
  414. * reg_property and using some accessor functions instead
  415. */
  416. hose->cfg_data = ioremap(0xf2000000, 0x02000000);
  417. hose->cfg_addr = ioremap(0xf8070000, 0x1000);
  418. hose->first_busno = 0;
  419. hose->last_busno = 0xef;
  420. u3_ht = hose;
  421. }
  422. static int __init maple_add_bridge(struct device_node *dev)
  423. {
  424. int len;
  425. struct pci_controller *hose;
  426. char* disp_name;
  427. const int *bus_range;
  428. int primary = 1;
  429. DBG("Adding PCI host bridge %pOF\n", dev);
  430. bus_range = of_get_property(dev, "bus-range", &len);
  431. if (bus_range == NULL || len < 2 * sizeof(int)) {
  432. printk(KERN_WARNING "Can't get bus-range for %pOF, assume bus 0\n",
  433. dev);
  434. }
  435. hose = pcibios_alloc_controller(dev);
  436. if (hose == NULL)
  437. return -ENOMEM;
  438. hose->first_busno = bus_range ? bus_range[0] : 0;
  439. hose->last_busno = bus_range ? bus_range[1] : 0xff;
  440. hose->controller_ops = maple_pci_controller_ops;
  441. disp_name = NULL;
  442. if (of_device_is_compatible(dev, "u3-agp")) {
  443. setup_u3_agp(hose);
  444. disp_name = "U3-AGP";
  445. primary = 0;
  446. } else if (of_device_is_compatible(dev, "u3-ht")) {
  447. setup_u3_ht(hose);
  448. disp_name = "U3-HT";
  449. primary = 1;
  450. } else if (of_device_is_compatible(dev, "u4-pcie")) {
  451. setup_u4_pcie(hose);
  452. disp_name = "U4-PCIE";
  453. primary = 0;
  454. }
  455. printk(KERN_INFO "Found %s PCI host bridge. Firmware bus number: %d->%d\n",
  456. disp_name, hose->first_busno, hose->last_busno);
  457. /* Interpret the "ranges" property */
  458. /* This also maps the I/O region and sets isa_io/mem_base */
  459. pci_process_bridge_OF_ranges(hose, dev, primary);
  460. /* Fixup "bus-range" OF property */
  461. fixup_bus_range(dev);
  462. /* Check for legacy IOs */
  463. isa_bridge_find_early(hose);
  464. /* create pci_dn's for DT nodes under this PHB */
  465. pci_devs_phb_init_dynamic(hose);
  466. return 0;
  467. }
  468. void maple_pci_irq_fixup(struct pci_dev *dev)
  469. {
  470. DBG(" -> maple_pci_irq_fixup\n");
  471. /* Fixup IRQ for PCIe host */
  472. if (u4_pcie != NULL && dev->bus->number == 0 &&
  473. pci_bus_to_host(dev->bus) == u4_pcie) {
  474. printk(KERN_DEBUG "Fixup U4 PCIe IRQ\n");
  475. dev->irq = irq_create_mapping(NULL, 1);
  476. if (dev->irq)
  477. irq_set_irq_type(dev->irq, IRQ_TYPE_LEVEL_LOW);
  478. }
  479. /* Hide AMD8111 IDE interrupt when in legacy mode so
  480. * the driver calls pci_get_legacy_ide_irq()
  481. */
  482. if (dev->vendor == PCI_VENDOR_ID_AMD &&
  483. dev->device == PCI_DEVICE_ID_AMD_8111_IDE &&
  484. (dev->class & 5) != 5) {
  485. dev->irq = 0;
  486. }
  487. DBG(" <- maple_pci_irq_fixup\n");
  488. }
  489. static int maple_pci_root_bridge_prepare(struct pci_host_bridge *bridge)
  490. {
  491. struct pci_controller *hose = pci_bus_to_host(bridge->bus);
  492. struct device_node *np, *child;
  493. if (hose != u3_agp)
  494. return 0;
  495. /* Fixup the PCI<->OF mapping for U3 AGP due to bus renumbering. We
  496. * assume there is no P2P bridge on the AGP bus, which should be a
  497. * safe assumptions hopefully.
  498. */
  499. np = hose->dn;
  500. PCI_DN(np)->busno = 0xf0;
  501. for_each_child_of_node(np, child)
  502. PCI_DN(child)->busno = 0xf0;
  503. return 0;
  504. }
  505. void __init maple_pci_init(void)
  506. {
  507. struct device_node *np, *root;
  508. struct device_node *ht = NULL;
  509. /* Probe root PCI hosts, that is on U3 the AGP host and the
  510. * HyperTransport host. That one is actually "kept" around
  511. * and actually added last as it's resource management relies
  512. * on the AGP resources to have been setup first
  513. */
  514. root = of_find_node_by_path("/");
  515. if (root == NULL) {
  516. printk(KERN_CRIT "maple_find_bridges: can't find root of device tree\n");
  517. return;
  518. }
  519. for_each_child_of_node(root, np) {
  520. if (!of_node_is_type(np, "pci") && !of_node_is_type(np, "ht"))
  521. continue;
  522. if ((of_device_is_compatible(np, "u4-pcie") ||
  523. of_device_is_compatible(np, "u3-agp")) &&
  524. maple_add_bridge(np) == 0)
  525. of_node_get(np);
  526. if (of_device_is_compatible(np, "u3-ht")) {
  527. of_node_get(np);
  528. ht = np;
  529. }
  530. }
  531. of_node_put(root);
  532. /* Now setup the HyperTransport host if we found any
  533. */
  534. if (ht && maple_add_bridge(ht) != 0)
  535. of_node_put(ht);
  536. ppc_md.pcibios_root_bridge_prepare = maple_pci_root_bridge_prepare;
  537. /* Tell pci.c to not change any resource allocations. */
  538. pci_add_flags(PCI_PROBE_ONLY);
  539. }
  540. int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel)
  541. {
  542. struct device_node *np;
  543. unsigned int defirq = channel ? 15 : 14;
  544. unsigned int irq;
  545. if (pdev->vendor != PCI_VENDOR_ID_AMD ||
  546. pdev->device != PCI_DEVICE_ID_AMD_8111_IDE)
  547. return defirq;
  548. np = pci_device_to_OF_node(pdev);
  549. if (np == NULL) {
  550. printk("Failed to locate OF node for IDE %s\n",
  551. pci_name(pdev));
  552. return defirq;
  553. }
  554. irq = irq_of_parse_and_map(np, channel & 0x1);
  555. if (!irq) {
  556. printk("Failed to map onboard IDE interrupt for channel %d\n",
  557. channel);
  558. return defirq;
  559. }
  560. return irq;
  561. }
  562. static void quirk_ipr_msi(struct pci_dev *dev)
  563. {
  564. /* Something prevents MSIs from the IPR from working on Bimini,
  565. * and the driver has no smarts to recover. So disable MSI
  566. * on it for now. */
  567. if (machine_is(maple)) {
  568. dev->no_msi = 1;
  569. dev_info(&dev->dev, "Quirk disabled MSI\n");
  570. }
  571. }
  572. DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_OBSIDIAN,
  573. quirk_ipr_msi);
  574. struct pci_controller_ops maple_pci_controller_ops = {
  575. };