From 550f8550ec70dde086df88fb9d38b44410d299bc Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 26 Feb 1995 05:14:53 +0000 Subject: [PATCH] Replace all remaining instances of `i386/include' by `machine' and fix nearby #include inconsistencies. --- sys/amd64/amd64/pmap.c | 4 +-- sys/amd64/pci/pci_bus.c | 17 +++++------- sys/amd64/pci/pci_cfgreg.c | 17 +++++------- sys/dev/joy/joy.c | 14 +++++----- sys/i386/i386/pmap.c | 4 +-- sys/i386/isa/elink.c | 6 +++-- sys/i386/isa/gsc.c | 30 ++++++++++----------- sys/i386/isa/if_ze.c | 54 +++++++++++++++++++------------------- sys/i386/isa/if_zp.c | 16 +++++------ sys/i386/isa/joy.c | 14 +++++----- sys/i386/isa/lpt.c | 6 ++--- sys/i386/isa/pcibus.c | 17 +++++------- sys/i386/isa/psm.c | 32 +++++++++++----------- sys/i386/isa/spigot.c | 9 +++---- sys/i386/pci/pci_bus.c | 17 +++++------- sys/i386/pci/pci_cfgreg.c | 17 +++++------- sys/i386/pci/pci_pir.c | 17 +++++------- sys/isa/joy.c | 14 +++++----- 18 files changed, 141 insertions(+), 164 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 9ba6fc694eda..dfc3443eace4 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.48 1995/02/02 08:45:14 davidg Exp $ + * $Id: pmap.c,v 1.49 1995/02/15 04:36:31 davidg Exp $ */ /* @@ -95,7 +95,7 @@ #include #include -#include +#include #include diff --git a/sys/amd64/pci/pci_bus.c b/sys/amd64/pci/pci_bus.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/amd64/pci/pci_bus.c +++ b/sys/amd64/pci/pci_bus.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/amd64/pci/pci_cfgreg.c +++ b/sys/amd64/pci/pci_cfgreg.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index 77ef121941ed..5fae0d709238 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -31,13 +31,15 @@ #if NJOY > 0 #include -#include -#include -#include -#include -#include -#include +#include + +#include +#include + +#include +#include +#include /* The game port can manage 4 buttons and 4 variable resistors (usually 2 * joysticks, each with 2 buttons and 2 pots.) via the port at address 0x201. diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 9ba6fc694eda..dfc3443eace4 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.48 1995/02/02 08:45:14 davidg Exp $ + * $Id: pmap.c,v 1.49 1995/02/15 04:36:31 davidg Exp $ */ /* @@ -95,7 +95,7 @@ #include #include -#include +#include #include diff --git a/sys/i386/isa/elink.c b/sys/i386/isa/elink.c index 61516bf690a4..4bf0016a39fb 100644 --- a/sys/i386/isa/elink.c +++ b/sys/i386/isa/elink.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: elink.c,v 1.2 1994/09/16 13:33:35 davidg Exp $ + * $Id: elink.c,v 1.3 1994/09/17 16:51:47 se Exp $ */ /* @@ -35,8 +35,10 @@ #include #include + +#include + #include -#include /* * Issue a `global reset' to all cards. We have to be careful to do this only diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c index e6b019fb60c7..221571adf43c 100644 --- a/sys/i386/isa/gsc.c +++ b/sys/i386/isa/gsc.c @@ -35,23 +35,23 @@ #include "gsc.h" #if NGSC > 0 -#include "param.h" -#include "systm.h" -#include "proc.h" -#include "user.h" -#include "buf.h" -#include "malloc.h" -#include "kernel.h" -#include "ioctl.h" -#include "tty.h" -#include "uio.h" -#include "syslog.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include "i386/isa/isa.h" -#include "i386/isa/isa_device.h" -#include "i386/isa/gscreg.h" +#include -#include "i386/include/gsc.h" +#include +#include +#include /*********************************************************************** * diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index f447cc075569..408ffe426d94 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,53 +47,53 @@ */ /* - * $Id: if_ze.c,v 1.10 1995/01/23 18:02:32 phk Exp $ + * $Id: if_ze.c,v 1.11 1995/02/17 02:22:51 phk Exp $ */ #include "ze.h" #if NZE > 0 #include "bpfilter.h" -#include "param.h" -#include "systm.h" -#include "errno.h" -#include "ioctl.h" -#include "mbuf.h" -#include "socket.h" -#include "syslog.h" +#include +#include +#include +#include +#include +#include +#include -#include "net/if.h" -#include "net/if_dl.h" -#include "net/if_types.h" -#include "net/netisr.h" +#include +#include +#include +#include #ifdef INET -#include "netinet/in.h" -#include "netinet/in_systm.h" -#include "netinet/in_var.h" -#include "netinet/ip.h" -#include "netinet/if_ether.h" +#include +#include +#include +#include +#include #endif #ifdef NS -#include "netns/ns.h" -#include "netns/ns_if.h" +#include +#include #endif #if NBPFILTER > 0 -#include "net/bpf.h" -#include "net/bpfdesc.h" +#include +#include #endif -#include "i386/isa/isa.h" -#include "i386/isa/isa_device.h" -#include "i386/isa/icu.h" -#include "i386/isa/if_zereg.h" -#include "i386/isa/pcic.h" +#include +#include +#include +#include +#include #include "apm.h" #if NAPM > 0 -#include "i386/include/apm_bios.h" +#include #endif /* NAPM > 0 */ diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c index 27c7f3d3cc34..c8310fe4d214 100644 --- a/sys/i386/isa/if_zp.c +++ b/sys/i386/isa/if_zp.c @@ -35,7 +35,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $ - * $Id: if_ep.c,v 1.9 1994/05/02 22:27:33 ats Exp $ + * $Id: if_zp.c,v 1.1 1995/02/17 02:22:52 phk Exp $ */ /*- * TODO: @@ -183,7 +183,7 @@ enum memtype { COMMON, ATTRIBUTE }; #include "apm.h" #if NAPM > 0 -#include "i386/include/apm_bios.h" +#include #endif /* NAPM > 0 */ #endif /* MACH_KERNEL */ @@ -258,13 +258,13 @@ static unsigned char card_info[256]; int zpprobe __P((struct isa_device *)); int zpattach __P((struct isa_device *)); -int zpioctl __P((struct ifnet * ifp, int, caddr_t)); +static int zpioctl __P((struct ifnet * ifp, int, caddr_t)); static u_short read_eeprom_data __P((int, int)); void zpinit __P((int)); void zpintr __P((int)); -void zpmbuffill __P((caddr_t)); -void zpmbufempty __P((struct zp_softc *)); +void zpmbuffill __P((void *)); +static void zpmbufempty __P((struct zp_softc *)); void zpread __P((struct zp_softc *)); void zpreset __P((int)); void zpstart __P((struct ifnet *)); @@ -1106,7 +1106,7 @@ zpinit(unit) */ sc->last_mb = 0; sc->next_mb = 0; - zpmbuffill((caddr_t)sc); + zpmbuffill(sc); #endif /* MACH_KERNEL */ #ifdef MACH_KERNEL #if 0 /* seiji */ @@ -1767,7 +1767,7 @@ zpread(sc) if (m == 0) goto out; } else { - timeout(zpmbuffill, (caddr_t)sc, 0); + timeout(zpmbuffill, sc, 0); sc->next_mb = (sc->next_mb + 1) % MAX_MBS; } if (totlen >= MINCLSIZE) @@ -2217,7 +2217,7 @@ f_is_eeprom_busy(is) #ifndef MACH_KERNEL void zpmbuffill(sp) - caddr_t sp; + void *sp; { struct zp_softc *sc = (struct zp_softc *)sp; int s, i; diff --git a/sys/i386/isa/joy.c b/sys/i386/isa/joy.c index 77ef121941ed..5fae0d709238 100644 --- a/sys/i386/isa/joy.c +++ b/sys/i386/isa/joy.c @@ -31,13 +31,15 @@ #if NJOY > 0 #include -#include -#include -#include -#include -#include -#include +#include + +#include +#include + +#include +#include +#include /* The game port can manage 4 buttons and 4 variable resistors (usually 2 * joysticks, each with 2 buttons and 2 pots.) via the port at address 0x201. diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c index 863514406e96..2638b7487d56 100644 --- a/sys/i386/isa/lpt.c +++ b/sys/i386/isa/lpt.c @@ -46,7 +46,7 @@ * SUCH DAMAGE. * * from: unknown origin, 386BSD 0.1 - * $Id: lpt.c,v 1.23 1994/11/13 21:14:30 nate Exp $ + * $Id: lpt.c,v 1.24 1994/11/16 06:09:29 phk Exp $ */ /* @@ -114,12 +114,12 @@ #include #include +#include + #include #include #include -#include - #ifdef INET #include #include diff --git a/sys/i386/isa/pcibus.c b/sys/i386/isa/pcibus.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/i386/isa/pcibus.c +++ b/sys/i386/isa/pcibus.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/i386/isa/psm.c b/sys/i386/isa/psm.c index c4bb3b760dda..975e95f1d0c3 100644 --- a/sys/i386/isa/psm.c +++ b/sys/i386/isa/psm.c @@ -49,24 +49,24 @@ #if NPSM > 0 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -#ifdef 0 -#include "syslog.h" /* For debugging */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if 0 +#include /* For debugging */ #endif +#include + +#include + #define DATA 0 /* Offset for data port, read-write */ #define CNTRL 4 /* Offset for control port, write-only */ #define STATUS 4 /* Offset for status port, read-only */ diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c index 13f5bb2d94c4..7ef54ad87f35 100644 --- a/sys/i386/isa/spigot.c +++ b/sys/i386/isa/spigot.c @@ -48,24 +48,23 @@ error "Can only have 1 spigot configured." #include #include +#include #include #include #include #include #include -#include #include #include #include #include +#include +#include + #include #include -#include -#include - - struct spigot_softc { int flags; caddr_t maddr; diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index fd22e085a8c6..f1cdd1ec4610 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pcibus.c,v 1.2 1995/02/09 20:16:19 se Exp $ +** $Id: pcibus.c,v 1.3 1995/02/25 17:51:18 se Exp $ ** ** pci bus subroutines for i386 architecture. ** @@ -45,23 +45,18 @@ #define HAS_CPUFUNC_H #endif -#include -#include -#include +#include +#include +#include + +#include #include #include -#include - -#ifdef HAS_CPUFUNC_H -#include -#endif #include #include #include -extern int printf(); - static char pci_mode; /*----------------------------------------------------------------- diff --git a/sys/isa/joy.c b/sys/isa/joy.c index 77ef121941ed..5fae0d709238 100644 --- a/sys/isa/joy.c +++ b/sys/isa/joy.c @@ -31,13 +31,15 @@ #if NJOY > 0 #include -#include -#include -#include -#include -#include -#include +#include + +#include +#include + +#include +#include +#include /* The game port can manage 4 buttons and 4 variable resistors (usually 2 * joysticks, each with 2 buttons and 2 pots.) via the port at address 0x201.