search for: pci_cfg_auto

Displaying 2 results from an estimated 2 matches for "pci_cfg_auto".

2009 Mar 22
2
[PATCH 1/3] pci: remove (void)cfgtype;
...ci/scan.c =================================================================== --- syslinux-3.74-pre11-2-g4fc8259.orig/com32/lib/pci/scan.c +++ syslinux-3.74-pre11-2-g4fc8259/com32/lib/pci/scan.c @@ -441,7 +441,6 @@ struct pci_domain *pci_scan(void) int cfgtype; cfgtype = pci_set_config_type(PCI_CFG_AUTO); - (void)cfgtype; dprintf("PCI configuration type %d\n", cfgtype); dprintf("Scanning PCI Buses\n"); @@ -521,7 +520,6 @@ void gather_additional_pci_config(struct pciaddr_t a; int cfgtype; cfgtype = pci_set_config_type(PCI_CFG_AUTO); - (void)cfgtype; for (...
2005 Apr 21
2
ethersel.c32 issues
...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 bios cfg mechanism 1\n"); + __pci_cfg_type = PCI_CFG_TYPE1; + } else if (bioscfg & 0x02) { + dprintf("detected PCI bios cfg mechanism 2\n"); +...