2 * PCI Frontend - arch-dependendent declarations
4 * Author: Ryan Wilson <hap9@epoch.ncsc.mil>
6 #ifndef __XEN_ASM_PCIFRONT_H__
7 #define __XEN_ASM_PCIFRONT_H__
9 #include <linux/spinlock.h>
17 struct pcifront_device;
19 #define pcifront_sd pci_sysdata
21 static inline struct pcifront_device *
22 pcifront_get_pdev(struct pcifront_sd *sd)
27 static inline void pcifront_setup_root_resources(struct pci_bus *bus,
28 struct pcifront_sd *sd)
34 #include <linux/acpi.h>
36 #define pcifront_sd pci_controller
38 extern void xen_add_resource(struct pci_controller *, unsigned int,
39 unsigned int, struct acpi_resource *);
40 extern void xen_pcibios_setup_root_windows(struct pci_bus *,
41 struct pci_controller *);
43 static inline struct pcifront_device *
44 pcifront_get_pdev(struct pcifront_sd *sd)
46 return (struct pcifront_device *)sd->platform_data;
49 static inline void pcifront_setup_root_resources(struct pci_bus *bus,
50 struct pcifront_sd *sd)
52 xen_pcibios_setup_root_windows(bus, sd);
57 extern struct rw_semaphore pci_bus_sem;
59 #endif /* __KERNEL__ */
61 #endif /* __XEN_ASM_PCIFRONT_H__ */