summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1996-12-18 11:41:28 +0000
committerse <se@FreeBSD.org>1996-12-18 11:41:28 +0000
commit673fe0873434d5f2c9bd1f28b7f861807aa42270 (patch)
treef2f7e38f1910580a4d022b3234414711e4a542c4 /sys
parent402f4a15ddceffd07d7b37a9fecc0a233a2dc495 (diff)
downloadFreeBSD-src-673fe0873434d5f2c9bd1f28b7f861807aa42270.zip
FreeBSD-src-673fe0873434d5f2c9bd1f28b7f861807aa42270.tar.gz
Add include of <vm/pmap.h> to make this driver compile under -current.
Cleanup to make it compile cleanly in LINT. Submitted by: bde
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/tek390.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/pci/tek390.c b/sys/pci/tek390.c
index 54dfaac..0dac523 100644
--- a/sys/pci/tek390.c
+++ b/sys/pci/tek390.c
@@ -51,39 +51,30 @@
#define DC390_DEBUG
-#include <stddef.h>
-
-#include <sys/types.h>
#include <sys/param.h>
-#include <sys/time.h>
-#include <sys/proc.h>
+/* XXX this doesn't actually compile unless KERNEL is defined. */
#ifdef KERNEL
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/buf.h>
#include <sys/kernel.h>
-#include <machine/clock.h>
-#include <machine/cpu.h> /* bootverbose */
-
#include <vm/vm.h>
-#include <vm/vm_extern.h>
+#include <vm/pmap.h>
#endif /* KERNEL */
#include <pci/pcivar.h>
#include <pci/pcireg.h>
-#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
#include <machine/clock.h>
-#include "pci/tek390.h"
+#include <pci/tek390.h>
#define INT32 int32
#define U_INT32 u_int32
-#define TIMEOUT (timeout_func_t)
#define OutB(val, port) outb(port, val)
@@ -998,7 +989,7 @@ DC390_timeout( void *arg1)
}
-#include "pci/scsiiom.c"
+#include <pci/scsiiom.c>
/***********************************************************************
OpenPOWER on IntegriCloud