diff options
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 30eedfc5a566..8247cff1cb3e 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -52,35 +52,6 @@ EXPORT_SYMBOL(pci_io_base); | |||
52 | 52 | ||
53 | LIST_HEAD(hose_list); | 53 | LIST_HEAD(hose_list); |
54 | 54 | ||
55 | static struct dma_mapping_ops *pci_dma_ops; | ||
56 | |||
57 | void set_pci_dma_ops(struct dma_mapping_ops *dma_ops) | ||
58 | { | ||
59 | pci_dma_ops = dma_ops; | ||
60 | } | ||
61 | |||
62 | struct dma_mapping_ops *get_pci_dma_ops(void) | ||
63 | { | ||
64 | return pci_dma_ops; | ||
65 | } | ||
66 | EXPORT_SYMBOL(get_pci_dma_ops); | ||
67 | |||
68 | |||
69 | int pci_set_dma_mask(struct pci_dev *dev, u64 mask) | ||
70 | { | ||
71 | return dma_set_mask(&dev->dev, mask); | ||
72 | } | ||
73 | |||
74 | int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) | ||
75 | { | ||
76 | int rc; | ||
77 | |||
78 | rc = dma_set_mask(&dev->dev, mask); | ||
79 | dev->dev.coherent_dma_mask = dev->dma_mask; | ||
80 | |||
81 | return rc; | ||
82 | } | ||
83 | |||
84 | static void fixup_broken_pcnet32(struct pci_dev* dev) | 55 | static void fixup_broken_pcnet32(struct pci_dev* dev) |
85 | { | 56 | { |
86 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { | 57 | if ((dev->class>>8 == PCI_CLASS_NETWORK_ETHERNET)) { |
@@ -548,26 +519,6 @@ int __devinit pcibios_map_io_space(struct pci_bus *bus) | |||
548 | } | 519 | } |
549 | EXPORT_SYMBOL_GPL(pcibios_map_io_space); | 520 | EXPORT_SYMBOL_GPL(pcibios_map_io_space); |
550 | 521 | ||
551 | void __devinit pcibios_setup_new_device(struct pci_dev *dev) | ||
552 | { | ||
553 | struct dev_archdata *sd = &dev->dev.archdata; | ||
554 | |||
555 | sd->of_node = pci_device_to_OF_node(dev); | ||
556 | |||
557 | DBG("PCI: device %s OF node: %s\n", pci_name(dev), | ||
558 | sd->of_node ? sd->of_node->full_name : "<none>"); | ||
559 | |||
560 | sd->dma_ops = pci_dma_ops; | ||
561 | #ifdef CONFIG_NUMA | ||
562 | sd->numa_node = pcibus_to_node(dev->bus); | ||
563 | #else | ||
564 | sd->numa_node = -1; | ||
565 | #endif | ||
566 | if (ppc_md.pci_dma_dev_setup) | ||
567 | ppc_md.pci_dma_dev_setup(dev); | ||
568 | } | ||
569 | EXPORT_SYMBOL(pcibios_setup_new_device); | ||
570 | |||
571 | void __devinit pcibios_do_bus_setup(struct pci_bus *bus) | 522 | void __devinit pcibios_do_bus_setup(struct pci_bus *bus) |
572 | { | 523 | { |
573 | struct pci_dev *dev; | 524 | struct pci_dev *dev; |