Now that we have uc_device.h, use that instead of hard-coding struct

uc_device's definition into kget.
This commit is contained in:
John Baldwin 2000-03-24 21:39:09 +00:00
parent 53543772cb
commit c8693bccf4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58537
2 changed files with 1 additions and 19 deletions

View File

@ -1,7 +1,6 @@
# $FreeBSD$
#
PROG= kget
#CFLAGS+= -I${.CURDIR}/../../sys/i386
SRCS= kget.c
MAN8= kget.8

View File

@ -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;