From 048bdff41c996b7ebd1b376dcb8e59063c10d506 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 4 Nov 2000 15:03:34 +0000 Subject: Added used include of -- don't depend on evil namespace pollution in . This was half fixed in rev.1.3 of midwayreg.h. The pollution exposed the bug that this driver was using toy versions of the bus space macros under FreeBSD. Disabling the toy versions made this driver compile but dependent on the pollution. There was still a toy version of bus_space_read_1() in unreachable code. --- sys/dev/en/if_en_pci.c | 3 ++- 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 #include +#include #include @@ -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 #include +#include #include @@ -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 -- cgit v1.1