summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/kget.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-03-24 22:24:09 +0000
committerjhb <jhb@FreeBSD.org>2000-03-24 22:24:09 +0000
commit8c16543d9445bfdfdf39ec01f272921f5e88cde6 (patch)
tree82258ff99de9d670403b2228c717c4ffb80cb5ed /usr.sbin/sysinstall/kget.c
parentbe6d92e8bf9eb4c46cca7d7ed3ff422e572a410c (diff)
downloadFreeBSD-src-8c16543d9445bfdfdf39ec01f272921f5e88cde6.zip
FreeBSD-src-8c16543d9445bfdfdf39ec01f272921f5e88cde6.tar.gz
Update sysinstall to use struct uc_device instead of struct isa_device
for generating /boot/kernel.conf. Since this structure is shared, move its definition out to a header file, just as struct isa_device was defined in a header file. This fixes the sysinstall breakage in -current.
Diffstat (limited to 'usr.sbin/sysinstall/kget.c')
-rw-r--r--usr.sbin/sysinstall/kget.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/sysinstall/kget.c b/usr.sbin/sysinstall/kget.c
index 20bf4b5..907a151 100644
--- a/usr.sbin/sysinstall/kget.c
+++ b/usr.sbin/sysinstall/kget.c
@@ -37,7 +37,7 @@ kget(char *out)
#include "sysinstall.h"
#include <sys/sysctl.h>
-#include <i386/isa/isa_device.h>
+#include <machine/uc_device.h>
int
kget(char *out)
@@ -47,7 +47,7 @@ kget(char *out)
char *mib1 = "machdep.uc_devlist";
char name[9];
FILE *fout = NULL;
- struct isa_device *id;
+ struct uc_device *id;
char *p;
/* create the output file; if we end up not writing to it, we'll
@@ -79,8 +79,8 @@ kget(char *out)
i = 0;
while (i < len) {
- id = (struct isa_device *)(buf + i);
- p = (buf + i + sizeof(struct isa_device));
+ id = (struct uc_device *)(buf + i);
+ p = (buf + i + sizeof(struct uc_device));
strncpy(name, p, 8);
if (!id->id_enabled) {
bytes_written += fprintf(fout, "di %s%d\n", name, id->id_unit);
@@ -110,7 +110,7 @@ kget(char *out)
bytes_written += fprintf(fout, "f %s%d %#x\n", name,
id->id_unit, id->id_flags);
}
- i += sizeof(struct isa_device) + 8;
+ i += sizeof(struct uc_device) + 8;
}
bail:
OpenPOWER on IntegriCloud