diff options
author | ache <ache@FreeBSD.org> | 1997-03-26 15:19:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-26 15:19:55 +0000 |
commit | e27bac84c505d7a1b656909477bf094d65e7096b (patch) | |
tree | 5521706a357a2ce41f886f0afbd9ab09b0c11619 /usr.sbin/config/mkioconf.c | |
parent | 9e4ff703f5c19f141c6b5645ada102c9d24e0838 (diff) | |
download | FreeBSD-src-e27bac84c505d7a1b656909477bf094d65e7096b.zip FreeBSD-src-e27bac84c505d7a1b656909477bf094d65e7096b.tar.gz |
Add #define's for port "none" and "auto"
Now port ommiting is equal to port "none" not to port 0
Diffstat (limited to 'usr.sbin/config/mkioconf.c')
-rw-r--r-- | usr.sbin/config/mkioconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c index ac55546..03eb77f 100644 --- a/usr.sbin/config/mkioconf.c +++ b/usr.sbin/config/mkioconf.c @@ -757,8 +757,8 @@ isa_devtab(fp, table, dev_idp) fprintf(fp, "{ %2d, &%3sdriver,", (*dev_idp)++, dp->d_name); if (dp->d_port) fprintf(fp, " %8s,", dp->d_port); - else if (dp->d_portn == -1 || dp->d_portn == -2) - fprintf(fp, " %2d,", dp->d_portn); + else if (dp->d_portn == PORT_AUTO || dp->d_portn == PORT_NONE) + fprintf(fp, " %d,", dp->d_portn); else fprintf(fp, " 0x%04x,", dp->d_portn); fprintf(fp, "%6s, %2d, C 0x%05X, %5d, %8s, %3d, 0x%04X, 0, 0, 0, 0, %6d, %8d, 0 },\n", |