summaryrefslogtreecommitdiff
path: root/com32/modules/ethersel.c
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-09 16:23:11 +0000
committerhpa <hpa>2005-08-09 16:23:11 +0000
commit577c89106a80c6110366c0376358c3bb9d3fcc62 (patch)
tree6e4479314134128db2d1461dfe24aad1e7d4c1a3 /com32/modules/ethersel.c
parent84f1cbf5b7bc9fb58240372fbf96fd29caaef055 (diff)
downloadsyslinux-577c89106a80c6110366c0376358c3bb9d3fcc62.tar.gz
Add debugging code, if necessary
Diffstat (limited to 'com32/modules/ethersel.c')
-rw-r--r--com32/modules/ethersel.c15
1 files changed, 14 insertions, 1 deletions
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++ ) {