pci.c 17 KB

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