From 577c89106a80c6110366c0376358c3bb9d3fcc62 Mon Sep 17 00:00:00 2001 From: hpa Date: Tue, 9 Aug 2005 16:23:11 +0000 Subject: Add debugging code, if necessary --- com32/modules/ethersel.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'com32/modules/ethersel.c') diff --git a/com32/modules/ethersel.c b/com32/modules/ethersel.c index 732e7a84..39f71852 100644 --- a/com32/modules/ethersel.c +++ b/com32/modules/ethersel.c @@ -210,10 +210,23 @@ pciscan(struct match *list) uint8_t hdrtype, rid; pciaddr_t a; struct match *m; + int cfgtype; - pci_set_config_type(PCI_CFG_AUTO); +#ifdef DEBUG + outl(~0, 0xcf8); + printf("Poking at port CF8 = %#08x\n", inl(0xcf8)); + outl(0, 0xcf8); +#endif + + cfgtype = pci_set_config_type(PCI_CFG_AUTO); + (void)cfgtype; + + dprintf("PCI configuration type %d\n", cfgtype); for ( bus = 0 ; bus <= 0xff ; bus++ ) { + + dprintf("Probing bus 0x%02x... \n", bus); + for ( dev = 0 ; dev <= 0x1f ; dev++ ) { maxfunc = 0; for ( func = 0 ; func <= maxfunc ; func++ ) { -- cgit v1.2.1