#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/dmi.h>
#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/smp.h>
#include <asm/cpu_device_id.h>
#include <asm/segment.h>
#include <asm/pci_x86.h>
#include <asm/hw_irq.h>
#include <asm/io_apic.h>
#include <asm/intel-family.h>
#include <asm/intel-mid.h>
#include <asm/acpi.h>
#define PCIE_CAP_OFFSET …
#define PCI_DEVICE_ID_INTEL_MRFLD_MMC …
#define PCI_DEVICE_ID_INTEL_MRFLD_HSU …
#define PCIE_VNDR_CAP_ID_FIXED_BAR …
#define PCI_FIXED_BAR_0_SIZE …
#define PCI_FIXED_BAR_1_SIZE …
#define PCI_FIXED_BAR_2_SIZE …
#define PCI_FIXED_BAR_3_SIZE …
#define PCI_FIXED_BAR_4_SIZE …
#define PCI_FIXED_BAR_5_SIZE …
static int pci_soc_mode;
static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn)
{ … }
static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn,
int reg, int len, u32 val, int offset)
{ … }
static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg)
{ … }
static int pci_read(struct pci_bus *bus, unsigned int devfn, int where,
int size, u32 *value)
{ … }
static int pci_write(struct pci_bus *bus, unsigned int devfn, int where,
int size, u32 value)
{ … }
static const struct x86_cpu_id intel_mid_cpu_ids[] = …;
static int intel_mid_pci_irq_enable(struct pci_dev *dev)
{ … }
static void intel_mid_pci_irq_disable(struct pci_dev *dev)
{ … }
static const struct pci_ops intel_mid_pci_ops __initconst = …;
int __init intel_mid_pci_init(void)
{ … }
static void pci_d3delay_fixup(struct pci_dev *dev)
{ … }
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_d3delay_fixup);
static void mid_power_off_one_device(struct pci_dev *dev)
{ … }
static void mid_power_off_devices(struct pci_dev *dev)
{ … }
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, mid_power_off_devices);
static void pci_fixed_bar_fixup(struct pci_dev *dev)
{ … }
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, pci_fixed_bar_fixup);