> We can initialize that to something at compile time I suppose. Pick one

It is initialized to method 1, but it's zapped my pci_check_direct.

How is this? (attached)

Regards,
Andrew
diff -u -d -r1.24 newpci.c
--- newpci.c    17 Oct 2002 21:09:15 -0000      1.24
+++ newpci.c    21 Nov 2002 17:25:04 -0000
@@ -376,11 +376,15 @@
 }

 /** Set the method to be used for PCI, type I or type II
+ ** if no valid method found, default to conf1.
  */
 void pci_set_method()
 {
-       conf = &pci_direct_conf1;
        conf = pci_check_direct();
+
+       if(conf == NULL)
+               conf = &pci_direct_conf1;
+
 }

 /* allocating resources on PCI is a mess. The reason is that

Reply via email to