diff options
author | nsouch <nsouch@FreeBSD.org> | 1998-09-03 21:03:43 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 1998-09-03 21:03:43 +0000 |
commit | 67419707bb113e648564665cf96af2ecfa99fab8 (patch) | |
tree | 4800a87fc708f7f22684c02ef39cfcaa1329d8d2 /usr.sbin/config/mkioconf.c | |
parent | 18263a16482fe59a0e50eb751b95c2f8fa815041 (diff) | |
download | FreeBSD-src-67419707bb113e648564665cf96af2ecfa99fab8.zip FreeBSD-src-67419707bb113e648564665cf96af2ecfa99fab8.tar.gz |
Reviewed by: Doug Rabson
Submitted by: nsouch
'local' token added to support new bus architecture .c files generated
by .m files.
Diffstat (limited to 'usr.sbin/config/mkioconf.c')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index e27253b..1faa36f 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mkioconf.c 8.2 (Berkeley) 1/21/94"; #endif static const char rcsid[] = - "$Id: mkioconf.c,v 1.37 1998/06/17 15:16:53 bde Exp $"; + "$Id: mkioconf.c,v 1.38 1998/07/21 21:47:51 dfr Exp $"; #endif /* not lint */ #include <err.h> @@ -618,6 +618,7 @@ i386_ioconf() int dev_id; FILE *fp, *fp1; static char *old_d_name; + int count; fp = fopen(path("ioconf.c.new"), "w"); if (fp == 0) @@ -695,6 +696,21 @@ i386_ioconf() if (seen_scbus) scbus_devtab(fp, fp1, &dev_id); + fprintf(fp, "\n"); + fprintf(fp, "/*\n"); + fprintf(fp, " * New bus architecture devices.\n"); + fprintf(fp, " */\n"); + fprintf(fp, "\n"); + fprintf(fp, "#include <sys/bus_private.h>\n"); + fprintf(fp, "\n"); + count = 0; + fprintf(fp, "struct config_device devtab[] = {\n"); + fprintf(fp, "/* name, unit, resource count, resources */\n"); + fprintf(fp, "{ 0, 0, 0, 0 }\n"); + fprintf(fp, "};\n"); + fprintf(fp, "\n"); + fprintf(fp, "int devtab_count = %d;\n", count); + /* XXX David did this differently!!! */ /* pseudo_ioconf(fp); */ (void) fclose(fp); |