From 6fba12f206cd18d7ae4524ac2845cf94571bca40 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 4 Jul 2004 23:16:04 +0000 Subject: [PATCH] Mark our interrupt shareable and don't insist on DMA. This gets us closer to working with a secondary floppy controller on a PC. --- sys/dev/fdc/fdc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index f61b11fbf98e..78839273f5d8 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -770,7 +770,7 @@ fdc_alloc_resources(struct fdc_data *fdc) } fdc->res_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, - &fdc->rid_irq, RF_ACTIVE); + &fdc->rid_irq, RF_ACTIVE | RF_SHAREABLE); if (fdc->res_irq == 0) { device_printf(dev, "cannot reserve interrupt line\n"); return ENXIO; @@ -782,9 +782,9 @@ fdc_alloc_resources(struct fdc_data *fdc) RF_ACTIVE); if (fdc->res_drq == 0) { device_printf(dev, "cannot reserve DMA request line\n"); - return ENXIO; - } - fdc->dmachan = rman_get_start(fdc->res_drq); + fdc->flags |= FDC_NODMA; + } else + fdc->dmachan = rman_get_start(fdc->res_drq); } return 0;