aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1994-12-04 08:51:58 +0000
committerBruce Evans <bde@FreeBSD.org>1994-12-04 08:51:58 +0000
commit21e880de5d336b94c2d1471194a20acbb17cc114 (patch)
tree64186bc5598ceeb9afd1ff0d423ab226ac14cce9 /sys
parent9cdd2c1f8cbac1e8dcb5a1ef2361027f2145326e (diff)
downloadsrc-21e880de5d336b94c2d1471194a20acbb17cc114.tar.gz
src-21e880de5d336b94c2d1471194a20acbb17cc114.zip
Fix bogus and broken include paths:
<string.h> isn't supposed to be used by the kernel. cronix.h is <machine/cronix.h>, not "cronyx.h" (ambiguous) or <sys/cronyx.h> (nonexistent; caused compile to fail). cxreg.h is <i386/isa/cxreg.h>, not "cxreg.h". <i386/isa/cpufunc.h> shouldn't be included directly; it is always included by <sys/systm.h>. <i386/include/*.h> is <machine/*.h> <systm.h> is <sys/systm.h>. <kernel.h> is <sys/kernel.h>. <bpfilter.h> is "bpfilter.h". It really is in the current directory.
Notes
Notes: svn path=/head/; revision=4951
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/cronyx.c15
-rw-r--r--sys/i386/isa/cx.c11
-rw-r--r--sys/i386/isa/if_cx.c13
3 files changed, 18 insertions, 21 deletions
diff --git a/sys/i386/isa/cronyx.c b/sys/i386/isa/cronyx.c
index 4cee6b848270..941daf972fb1 100644
--- a/sys/i386/isa/cronyx.c
+++ b/sys/i386/isa/cronyx.c
@@ -13,8 +13,8 @@
*
* Version 1.2, Mon Nov 28 16:12:18 MSK 1994
*/
-#include <string.h>
#if defined (MSDOS) || defined (__MSDOS__)
+# include <string.h>
# include <dos.h>
# define inb(port) inportb(port)
# define inw(port) inport(port)
@@ -22,6 +22,8 @@
# define outw(port,w) outport(port,w)
# define vtophys(a) (((unsigned long)(a)>>12 & 0xffff0) +\
((unsigned)(a) & 0xffff))
+# include "cronyx.h"
+# include "cxreg.h"
#else
# include <sys/param.h>
# include <sys/socket.h>
@@ -29,18 +31,15 @@
# include <vm/vm.h>
# ifdef __FreeBSD__
# if __FreeBSD__ < 2
-# include <i386/include/pio.h>
-# else
-# include <i386/include/cpufunc.h>
+# include <machine/pio.h>
# endif
# else
-# include <i386/include/inline.h>
+# include <machine/inline.h>
# endif
+# include <machine/cronyx.h>
+# include <i386/isa/cxreg.h>
#endif
-#include "cronyx.h"
-#include "cxreg.h"
-
#define DMA_MASK 0xd4 /* DMA mask register */
#define DMA_MASK_CLEAR 0x04 /* DMA clear mask */
#define DMA_MODE 0xd6 /* DMA mode register */
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c
index 80ecaa76002c..f1729b6f7e4c 100644
--- a/sys/i386/isa/cx.c
+++ b/sys/i386/isa/cx.c
@@ -21,8 +21,8 @@
#if NCX > 0
#include <sys/param.h>
-#include <systm.h>
-#include <kernel.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/ioctl.h>
#include <sys/file.h>
@@ -36,17 +36,16 @@
#ifdef __FreeBSD__
# if __FreeBSD__ < 2
-# include <i386/include/pio.h>
+# include <machine/pio.h>
# define RB_GETC(q) getc(q)
# else /* BSD 4.4 Lite */
-# include <i386/include/cpufunc.h>
# include <sys/devconf.h>
# endif
# define oproc_func_t void(*)(struct tty*)
#endif
#ifdef __bsdi__
# include <sys/ttystats.h>
-# include <i386/include/inline.h>
+# include <machine/inline.h>
# define tsleep(tp,pri,msg,x) ((tp)->t_state |= TS_WOPEN,\
ttysleep (tp, (caddr_t)&tp->t_rawq, pri, msg, x))
# define oproc_func_t int(*)()
@@ -60,7 +59,7 @@
# define TSA_OLOWAT(q) ((caddr_t)&(q)->t_out)
#endif
-#include <sys/cronyx.h>
+#include <machine/cronyx.h>
#include <i386/isa/cxreg.h>
#ifdef DEBUG
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index d6c0367d9ca9..81bc7a37d758 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -20,11 +20,11 @@
#include "cx.h"
#if NCX > 0
-#include <bpfilter.h>
+#include "bpfilter.h"
#include <sys/param.h>
-#include <systm.h>
-#include <kernel.h>
+#include <sys/systm.h>
+#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
@@ -42,9 +42,8 @@
#ifdef __FreeBSD__
# include <i386/isa/isa_device.h>
# if __FreeBSD__ < 2
-# include <i386/include/pio.h>
+# include <machine/pio.h>
# else
-# include <i386/include/cpufunc.h>
# include <sys/devconf.h>
# endif
# define init_func_t void(*)(int)
@@ -61,7 +60,7 @@
# include <sys/device.h>
# include <i386/isa/isavar.h>
# include <i386/isa/icu.h>
-# include <i386/include/inline.h>
+# include <machine/inline.h>
# include <net/if_slvar.h>
# include <net/if_p2p.h>
# define timeout_func_t void(*)()
@@ -76,7 +75,7 @@ struct cxsoftc {
#endif
#include <net/if_sppp.h>
-#include <sys/cronyx.h>
+#include <machine/cronyx.h>
#include <i386/isa/cxreg.h>
#ifdef DEBUG