24 #include <linux/kernel.h>
25 #include <linux/pci.h>
26 #include <linux/string.h>
29 #include <asm/pci-bridge.h>
41 dn = pci_device_to_OF_node(dev);
45 int loc_len =
strlen(loc_code);
46 if (loc_len <
sizeof(dev->
dev.name)) {
48 sizeof(dev->
dev.name)-loc_len-1);
50 dev->
dev.name[loc_len] =
' ';
51 dev->
dev.name[
sizeof(dev->
dev.name)-1] =
'\0';
59 static void __init pSeries_request_regions(
void)
74 pSeries_request_regions();
84 static void fixup_winbond_82c105(
struct pci_dev* dev)
89 if (!machine_is(pseries))
92 printk(
"Using INTC for W82c105 IDE controller.\n");
93 pci_read_config_dword(dev, 0x40, ®);
95 pci_write_config_dword(dev, 0x40, reg | (1<<11));
100 && dev->
bus->number == 0 && dev->
devfn == 0x81)
109 fixup_winbond_82c105);