summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-03-24 21:39:09 +0000
committerjhb <jhb@FreeBSD.org>2000-03-24 21:39:09 +0000
commitbe6d92e8bf9eb4c46cca7d7ed3ff422e572a410c (patch)
treeddb02c907496d8f0162f8f28629c6cba340dd26a /sbin
parentefc73ae8d083dbe66442d5d8f77a96e1b594dd56 (diff)
downloadFreeBSD-src-be6d92e8bf9eb4c46cca7d7ed3ff422e572a410c.zip
FreeBSD-src-be6d92e8bf9eb4c46cca7d7ed3ff422e572a410c.tar.gz
Now that we have uc_device.h, use that instead of hard-coding struct
uc_device's definition into kget.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kget/Makefile1
-rw-r--r--sbin/kget/kget.c19
2 files changed, 1 insertions, 19 deletions
diff --git a/sbin/kget/Makefile b/sbin/kget/Makefile
index 2ce93e4..4032019 100644
--- a/sbin/kget/Makefile
+++ b/sbin/kget/Makefile
@@ -1,7 +1,6 @@
# $FreeBSD$
#
PROG= kget
-#CFLAGS+= -I${.CURDIR}/../../sys/i386
SRCS= kget.c
MAN8= kget.8
diff --git a/sbin/kget/kget.c b/sbin/kget/kget.c
index 1aebba4..a5572c8 100644
--- a/sbin/kget/kget.c
+++ b/sbin/kget/kget.c
@@ -30,28 +30,11 @@
#include <string.h>
#include <sys/types.h>
#include <sys/sysctl.h>
+#include <machine/uc_device.h>
#if 0
#include <isa/pnp.h>
#endif
-/*
- * Per device structure. This just happens to resemble the old isa_device
- * but that is by accident. It is NOT the same.
- */
-struct uc_device {
- int id_id; /* device id */
- char *id_name; /* device name */
- int id_iobase; /* base i/o address */
- u_int id_irq; /* interrupt request */
- int id_drq; /* DMA request */
- caddr_t id_maddr; /* physical i/o memory address on bus (if any)*/
- int id_msize; /* size of i/o memory */
- int id_unit; /* unit number */
- int id_flags; /* flags */
- int id_enabled; /* is device enabled */
- struct uc_device *id_next; /* used in uc_devlist in userconfig() */
-};
-
struct uc_device *id;
struct pnp_cinfo *c;
char *p;
OpenPOWER on IntegriCloud