Anyone object to me fixing the wb driver so kernel builds on
the Alpha don't fall over anymore?  The patch was gleened from
the similar changes to the al driver.  Thanks.

-steve

Index: if_wb.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/if_wb.c,v
retrieving revision 1.11
diff -u -r1.11 if_wb.c
--- if_wb.c     1999/07/02 04:17:16     1.11
+++ if_wb.c     1999/07/05 05:29:15
@@ -1096,7 +1096,12 @@
                printf ("wb%d: couldn't map ports\n", unit);
                goto fail;
        }
+#ifdef __i386__
        sc->wb_btag = I386_BUS_SPACE_IO;
+#endif
+#ifdef __alpha__
+       sc->wb_btag = ALPHA_BUS_SPACE_IO;
+#endif
 #else
        if (!(command & PCIM_CMD_MEMEN)) {
                printf("wb%d: failed to enable memory mapping!\n", unit);
@@ -1107,7 +1112,12 @@
                printf ("wb%d: couldn't map memory\n", unit);
                goto fail;
        }
+#ifdef __i386__
        sc->wb_btag = I386_BUS_SPACE_MEM;
+#endif
+#ifdef __alpha__
+       sc->wb_btag = ALPHA_BUS_SPACE_MEM;
+#endif
        sc->wb_bhandle = vbase;
 #endif
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to