Displaying 1 result from an estimated 1 matches for "bios_maxbus".
2005 Apr 21
2
ethersel.c32 issues
...+}
+
static char *
skipspace(char *p)
{
@@ -205,13 +236,23 @@
static struct match *
pciscan(struct match *list)
{
- unsigned int bus, dev, func, maxfunc;
+ unsigned int bus, dev, func, maxfunc, maxbus;
uint32_t did, sid;
uint8_t hdrtype, rid;
pciaddr_t a;
struct match *m;
+ int bios_maxbus;
+
+
+ if ((bios_maxbus = get_bios()) < 0) {
+ dprintf("PCI bios not detected.\n");
+ maxbus = 0xff;
+ } else {
+ maxbus = bios_maxbus + 1;
+ dprintf("PCI bios reports %u buses, scanning...\n", maxbus);
+ }
- for ( bus = 0 ; bus <= 0xff ; bus++ ) {
+ for...