aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/mkioconf.c
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>1999-11-22 14:31:55 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>1999-11-22 14:31:55 +0000
commit4c6aa17cdcaf4c808adb7a6f6ede0313dffa5b8a (patch)
tree6ee315dfdb1c44359dbf2ac57c9deb04c8315557 /usr.sbin/config/mkioconf.c
parent0e7e521cf3e4bbadaba4a1efdbc98102010fd051 (diff)
downloadsrc-4c6aa17cdcaf4c808adb7a6f6ede0313dffa5b8a.tar.gz
src-4c6aa17cdcaf4c808adb7a6f6ede0313dffa5b8a.zip
Allow config to generate proper ioconf.c files when devices request DMA
channel 0. Submitted by: dfr
Notes
Notes: svn path=/head/; revision=53586
Diffstat (limited to 'usr.sbin/config/mkioconf.c')
-rw-r--r--usr.sbin/config/mkioconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/config/mkioconf.c b/usr.sbin/config/mkioconf.c
index c5c63776888e..db08c434e414 100644
--- a/usr.sbin/config/mkioconf.c
+++ b/usr.sbin/config/mkioconf.c
@@ -117,7 +117,7 @@ write_device_resources(FILE *fp, struct device *dp)
fprintf(fp, "\t{ \"msize\",\tRES_INT,\t{ 0x%x }},\n", dp->d_msize);
count++;
}
- if (dp->d_drq > 0) {
+ if (dp->d_drq >= 0) {
fprintf(fp, "\t{ \"drq\",\tRES_INT,\t{ %d }},\n", dp->d_drq);
count++;
}