7 #define __EXTERN_INLINE inline
10 #undef __EXTERN_INLINE
12 #include <linux/types.h>
13 #include <linux/pci.h>
14 #include <linux/sched.h>
17 #include <asm/ptrace.h>
26 #define DEBUG_CONFIG 0
29 # define DBG_CFG(args) printk args
31 # define DBG_CFG(args)
66 mk_conf_addr(
struct pci_bus *pbus,
unsigned int device_fn,
int where,
71 *type1 = (bus == 0) ? 0 : 1;
72 *pci_addr = (bus << 16) | (device_fn << 8) | (where) |
75 DBG_CFG((
"mk_conf_addr(bus=%d ,device_fn=0x%x, where=0x%x,"
76 " returning address 0x%p\n"
77 bus, device_fn, where, *pci_addr));
89 if (mk_conf_addr(bus, devfn, where, &addr, &type1))
100 *value = *(
vuip)addr;
109 polaris_write_config(
struct pci_bus *bus,
unsigned int devfn,
int where,
115 if (mk_conf_addr(bus, devfn, where, &addr, &type1))
141 .read = polaris_read_config,
142 .write = polaris_write_config,
155 printk(
"polaris_init_arch(): trusting firmware for setup\n");
167 hose->sparse_mem_base = 0;
169 hose->sparse_io_base = 0;
172 hose->sg_isa = hose->sg_pci =
NULL;
180 polaris_pci_clr_err(
void)
196 polaris_pci_clr_err();