read_pci_config
read_pci_config = rtas_function_token(RTAS_FN_READ_PCI_CONFIG);
static int read_pci_config;
ret = rtas_call(read_pci_config, 2, 2, &returnval, addr, size);
extern u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset);
aper_low = read_pci_config(bus, slot, func, 0x10);
aper_hi = read_pci_config(bus, slot, func, 0x14);
class = read_pci_config(bus, slot, func,
if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00)))
ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL);
aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff;
if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00)))
ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL);
if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00)))
ctl = read_pci_config(bus, slot, 3,
aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff;
if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00)))
val = read_pci_config(0, 24, 0, 0x68);
d = read_pci_config(num, slot, func, 0x70);
d = read_pci_config(num, slot, func, 0x8);
d = read_pci_config(num, slot, func, 0x8);
d = read_pci_config(num, slot, func, 0x64);
bsm = read_pci_config(num, slot, func, INTEL_BSM);
bsm = read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW0);
bsm |= (u64)read_pci_config(num, slot, func, INTEL_GEN11_BSM_DW1) << 32;
htcfg = read_pci_config(num, slot, func, 0x68);
addr = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0);
addr |= (u64)read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_1) << 32;
cmdreg = read_pci_config(bus, slot, func, PCI_COMMAND);
classcode = read_pci_config(bus, slot, func, PCI_CLASS_REVISION);
bar0 = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0);
reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3));
reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3));
id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID);
cfg = read_pci_config(0, 0x1f, 0, PCI_BASE_ADDRESS_0);
cfg = read_pci_config(0, 0x1f, 0, PCI_BASE_ADDRESS_0);
if (read_pci_config(0, 0x1f, 0, PCI_VENDOR_ID) ==
header = read_pci_config(0, num, 0, 0x00);
header = read_pci_config(0, num, 1, 0x00);
reg = read_pci_config(0, nb, 0, 0x60);
base = read_pci_config(0, nb, 1, 0x40 + i*8);
limit = read_pci_config(0, nb, 1, 0x44 + i*8);
id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID);
reg = read_pci_config(bus, slot, 1,
reg = read_pci_config(bus, slot, 0, AMD_NB_F0_NODE_ID);
reg = read_pci_config(bus, slot, 0, AMD_NB_F0_UNIT_ID);
reg = read_pci_config(bus, slot, 1, 0xc0 + (i << 3));
reg = read_pci_config(bus, slot, 1, 0xc4 + (i << 3));
reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3));
reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3));
u32 val = read_pci_config(bus, slot, 3, 0);
val = read_pci_config(bus, slot, 3, 0x8c);
id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID);
ohci_base = read_pci_config(num, slot, func, PCI_BASE_ADDRESS_0+(0<<2))
class = read_pci_config(num, slot, func,
pci_id = read_pci_config(0, i, 0, 0);
class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION);
dword = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func,
vendorid = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func,
cap = read_pci_config(ehci_dev.bus, ehci_dev.slot,
cap = read_pci_config(ehci_dev.bus, ehci_dev.slot,
debug_port = read_pci_config(bus, slot, func, cap);
bar_val = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0);
class = read_pci_config(bus, dev, func, PCI_CLASS_REVISION);
val = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0);
sz = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0);
val = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4);
sz = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4);