pci_64.c (131208c5bb51b794ee73013aeb3396bd015fb79e) pci_64.c (5516b540e98de6f7474a4e7149470ad6a0bbc54a)
1/*
2 * Port for PPC64 David Engebretsen, IBM Corp.
3 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands.
4 *
5 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
6 * Rework, based on alpha PCI code.
7 *
8 * This program is free software; you can redistribute it and/or

--- 622 unchanged lines hidden (view full) ---

631 printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n",
632 pci_name(dev), cmd);
633 /* Enable the appropriate bits in the PCI command register. */
634 pci_write_config_word(dev, PCI_COMMAND, cmd);
635 }
636 return 0;
637}
638
1/*
2 * Port for PPC64 David Engebretsen, IBM Corp.
3 * Contains common pci routines for ppc64 platform, pSeries and iSeries brands.
4 *
5 * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM
6 * Rework, based on alpha PCI code.
7 *
8 * This program is free software; you can redistribute it and/or

--- 622 unchanged lines hidden (view full) ---

631 printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n",
632 pci_name(dev), cmd);
633 /* Enable the appropriate bits in the PCI command register. */
634 pci_write_config_word(dev, PCI_COMMAND, cmd);
635 }
636 return 0;
637}
638
639/*
640 * Return the domain number for this bus.
641 */
642int pci_domain_nr(struct pci_bus *bus)
643{
644 if (firmware_has_feature(FW_FEATURE_ISERIES))
645 return 0;
646 else {
647 struct pci_controller *hose = pci_bus_to_host(bus);
648
649 return hose->global_number;
650 }
651}
652
653EXPORT_SYMBOL(pci_domain_nr);
654
655/* Decide whether to display the domain number in /proc */
656int pci_proc_domain(struct pci_bus *bus)
657{
658 if (firmware_has_feature(FW_FEATURE_ISERIES))
659 return 0;
660 else {
661 struct pci_controller *hose = pci_bus_to_host(bus);
662 return hose->buid;

--- 716 unchanged lines hidden ---
639/* Decide whether to display the domain number in /proc */
640int pci_proc_domain(struct pci_bus *bus)
641{
642 if (firmware_has_feature(FW_FEATURE_ISERIES))
643 return 0;
644 else {
645 struct pci_controller *hose = pci_bus_to_host(bus);
646 return hose->buid;

--- 716 unchanged lines hidden ---