3 TYPE
BWL(pci_read
) (pciaddr_t a
)
8 switch (__pci_cfg_type
) {
10 pci_set_config_type(PCI_CFG_AUTO
);
11 break; /* Try again */
19 r
= BWL(in
) (0xcfc + (a
& 3));
27 uint8_t oldcf8
, oldcfa
;
30 return (TYPE
) ~ 0; /* Device 16-31 not supported */
35 outb(0xf0 + ((a
>> (8 - 1)) & 0x0e), 0xcf8);
37 r
= BWL(in
) (0xc000 + ((a
>> (11 - 8)) & 0xf00) + (a
& 0xff));
45 return (TYPE
) __pci_read_write_bios(BIOSCALL
, 0, a
);