Go to the documentation of this file.
8 #ifndef _ASM_IA64_SN_PCI_PCIDEV_H
9 #define _ASM_IA64_SN_PCI_PCIDEV_H
11 #include <linux/pci.h>
23 #define SN_PLATFORM_DATA(busdev) \
24 ((struct sn_platform_data *)(PCI_CONTROLLER(busdev)->platform_data))
26 #define SN_PCIDEV_INFO(dev) sn_pcidev_info_get(dev)
33 #define SN_PCIBUS_BUSSOFT(pci_bus) \
34 ((struct pcibus_bussoft *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))
36 #define SN_PCIBUS_BUSSOFT_INFO(pci_bus) \
37 ((struct pcibus_info *)(SN_PLATFORM_DATA(pci_bus)->provider_soft))
44 #define SN_PCIDEV_BUSSOFT(pci_dev) \
45 (SN_PCIDEV_INFO(pci_dev)->pdi_host_pcidev_info->pdi_pcibus_info)
47 #define SN_PCIDEV_BUSPROVIDER(pci_dev) \
48 (SN_PCIDEV_INFO(pci_dev)->pdi_provider)
50 #define PCIIO_BUS_NONE 255
51 #define PCIIO_SLOT_NONE 255
52 #define PCIIO_FUNC_NONE 255
53 #define PCIIO_VENDOR_ID_NONE (-1)