5 uint32_t __pci_read_write_bios(uint32_t call
, uint32_t v
, pciaddr_t a
)
8 memset(&rs
, 0, sizeof rs
);
10 rs
.ebx
.w
[0] = a
>> 8; /* bus:device:function */
11 rs
.edi
.b
[0] = a
; /* address:reg */
13 rs
.eflags
.l
= EFLAGS_CF
;
14 __intcall(0x1a, &rs
, &rs
);
16 return (rs
.eflags
.l
& EFLAGS_CF
) ? ~(uint32_t) 0 : rs
.ecx
.l
;