|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /lib/modules/2.6.18-274.el5/source/include/xen/ |
Upload File : |
/*
* PCI Frontend - arch-dependendent declarations
*
* Author: Ryan Wilson <hap9@epoch.ncsc.mil>
*/
#ifndef __XEN_ASM_PCIFRONT_H__
#define __XEN_ASM_PCIFRONT_H__
#include <linux/spinlock.h>
#ifdef __KERNEL__
#ifndef __ia64__
struct pcifront_device;
struct pci_bus;
struct pcifront_sd {
int domain;
struct pcifront_device *pdev;
};
static inline struct pcifront_device *
pcifront_get_pdev(struct pcifront_sd *sd)
{
return sd->pdev;
}
static inline void pcifront_init_sd(struct pcifront_sd *sd, int domain,
struct pcifront_device *pdev)
{
sd->domain = domain;
sd->pdev = pdev;
}
#else /* __ia64__ */
#include <asm/pci.h>
#define pcifront_sd pci_controller
static inline struct pcifront_device *
pcifront_get_pdev(struct pcifront_sd *sd)
{
return (struct pcifront_device *)sd->platform_data;
}
static inline void pcifront_init_sd(struct pcifront_sd *sd, int domain,
struct pcifront_device *pdev)
{
sd->segment = domain;
sd->acpi_handle = NULL;
sd->iommu = NULL;
sd->windows = 0;
sd->window = NULL;
sd->platform_data = pdev;
}
#endif /* __ia64__ */
extern struct rw_semaphore pci_bus_sem;
#endif /* __KERNEL__ */
#endif /* __XEN_ASM_PCIFRONT_H__ */