Go to the documentation of this file.
10 #define DBG(fmt, ...) printk(fmt, ##__VA_ARGS__)
12 #define DBG(fmt, ...) \
15 printk(fmt, ##__VA_ARGS__); \
19 #define PCI_PROBE_BIOS 0x0001
20 #define PCI_PROBE_CONF1 0x0002
21 #define PCI_PROBE_CONF2 0x0004
22 #define PCI_PROBE_MMCONF 0x0008
23 #define PCI_PROBE_MASK 0x000f
24 #define PCI_PROBE_NOEARLY 0x0010
26 #define PCI_NO_CHECKS 0x0400
27 #define PCI_USE_PIRQ_MASK 0x0800
28 #define PCI_ASSIGN_ROMS 0x1000
29 #define PCI_BIOS_IRQ_SCAN 0x2000
30 #define PCI_ASSIGN_ALL_BUSSES 0x4000
31 #define PCI_CAN_SKIP_ISA_ALIGN 0x8000
32 #define PCI_USE__CRS 0x10000
33 #define PCI_CHECK_ENABLE_AMD_MMCONF 0x20000
34 #define PCI_HAS_IO_ECS 0x40000
35 #define PCI_NOASSIGN_ROMS 0x80000
36 #define PCI_ROOT_NO_CRS 0x100000
37 #define PCI_NOASSIGN_BARS 0x200000
128 #define PCI_MMCFG_RESOURCE_NAME_LEN (22 + 4 + 2 + 2)
153 #define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20)
162 static inline unsigned char mmio_config_readb(
void __iomem *
pos)
165 asm volatile(
"movb (%1),%%al" :
"=a" (
val) :
"r" (pos));
169 static inline unsigned short mmio_config_readw(
void __iomem *
pos)
172 asm volatile(
"movw (%1),%%ax" :
"=a" (
val) :
"r" (pos));
176 static inline unsigned int mmio_config_readl(
void __iomem *pos)
179 asm volatile(
"movl (%1),%%eax" :
"=a" (
val) :
"r" (pos));
183 static inline void mmio_config_writeb(
void __iomem *pos,
u8 val)
185 asm volatile(
"movb %%al,(%1)" : :
"a" (
val),
"r" (pos) :
"memory");
188 static inline void mmio_config_writew(
void __iomem *pos,
u16 val)
190 asm volatile(
"movw %%ax,(%1)" : :
"a" (
val),
"r" (pos) :
"memory");
193 static inline void mmio_config_writel(
void __iomem *pos,
u32 val)
195 asm volatile(
"movl %%eax,(%1)" : :
"a" (
val),
"r" (pos) :
"memory");
200 # define x86_default_pci_init pci_acpi_init
202 # define x86_default_pci_init pci_legacy_init
204 # define x86_default_pci_init_irq pcibios_irq_init
205 # define x86_default_pci_fixup_irqs pcibios_fixup_irqs
207 # define x86_default_pci_init NULL
208 # define x86_default_pci_init_irq NULL
209 # define x86_default_pci_fixup_irqs NULL