diff options
-rw-r--r-- | sys/dev/en/if_en_pci.c | 3 | ||||
-rw-r--r-- | sys/pci/if_en_pci.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c index 8a17e65..e515fad 100644 --- a/sys/dev/en/if_en_pci.c +++ b/sys/dev/en/if_en_pci.c @@ -56,6 +56,7 @@ #include <sys/malloc.h> #include <sys/socket.h> +#include <machine/bus.h> #include <net/if.h> @@ -321,7 +322,7 @@ en_pci_shutdown( #if !defined(MIDWAY_ENIONLY) -#if defined(sparc) || defined(__FreeBSD__) +#if defined(sparc) #define bus_space_read_1(t, h, o) \ ((void)t, (*(volatile u_int8_t *)((h) + (o)))) #endif diff --git a/sys/pci/if_en_pci.c b/sys/pci/if_en_pci.c index 8a17e65..e515fad 100644 --- a/sys/pci/if_en_pci.c +++ b/sys/pci/if_en_pci.c @@ -56,6 +56,7 @@ #include <sys/malloc.h> #include <sys/socket.h> +#include <machine/bus.h> #include <net/if.h> @@ -321,7 +322,7 @@ en_pci_shutdown( #if !defined(MIDWAY_ENIONLY) -#if defined(sparc) || defined(__FreeBSD__) +#if defined(sparc) #define bus_space_read_1(t, h, o) \ ((void)t, (*(volatile u_int8_t *)((h) + (o)))) #endif |