1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Allow config to generate proper ioconf.c files when devices request DMA

channel 0.

Submitted by: dfr
This commit is contained in:
Andrew Gallatin 1999-11-22 14:31:55 +00:00
parent 0e7e521cf3
commit 4c6aa17cdc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53586

View File

@ -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); fprintf(fp, "\t{ \"msize\",\tRES_INT,\t{ 0x%x }},\n", dp->d_msize);
count++; count++;
} }
if (dp->d_drq > 0) { if (dp->d_drq >= 0) {
fprintf(fp, "\t{ \"drq\",\tRES_INT,\t{ %d }},\n", dp->d_drq); fprintf(fp, "\t{ \"drq\",\tRES_INT,\t{ %d }},\n", dp->d_drq);
count++; count++;
} }