Allow a DMA channel of 0. This gets the on-board mss audio device working

on Digital AlphaStations 200 and 500 machines (and probably others as well).

Submitted by: dfr
This commit is contained in:
Andrew Gallatin 1999-11-22 14:30:41 +00:00
parent 255717e065
commit 0e7e521cf3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53585

View File

@ -70,7 +70,7 @@ isahint_add_device(device_t parent, const char *name, int unit)
if (resource_int_value(name, unit, "irq", &start) == 0 && start > 0)
bus_set_resource(child, SYS_RES_IRQ, 0, start, 1);
if (resource_int_value(name, unit, "drq", &start) == 0 && start > 0)
if (resource_int_value(name, unit, "drq", &start) == 0 && start >= 0)
bus_set_resource(child, SYS_RES_DRQ, 0, start, 1);
if (resource_int_value(name, unit, "flags", &t) == 0)