search for: lastbus

Displaying 1 result from an estimated 1 matches for "lastbus".

Did you mean: last_us
2005 Apr 21
2
ethersel.c32 issues
...5746584 -0400 @@ -43,6 +43,8 @@ # define dprintf(...) ((void)0) #endif +extern enum pci_config_type __pci_cfg_type; + struct match { struct match *next; uint32_t did; @@ -64,6 +66,35 @@ return MK_PTR(r.es, r.ebx.w[0]); } +static int +get_bios(void) +{ + static com32sys_t r; + int lastbus = -1; + uint8_t bioscfg; + + r.eax.w[0] = 0xb101; + __intcall(0x1a, &r, &r); + + if (r.eax.b[1] == 0x00) { + lastbus = r.ecx.b[0]; + + if(__pci_cfg_type == PCI_CFG_AUTO) { + bioscfg = r.eax.b[0] & 0x03; + if (bioscfg & 0x01) { + dprintf("detected PCI...