diff options
author | nyan <nyan@FreeBSD.org> | 2001-04-01 06:37:59 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2001-04-01 06:37:59 +0000 |
commit | c69012d9c4ec037b4f96383fb5ff854cc4e757ce (patch) | |
tree | 9b4f9d6773c098845696f80438f0b0444ed4632d /sys/dev/aic | |
parent | 0aa5742239dbb3f97501cb9dec90ef1c0fb72aab (diff) | |
download | FreeBSD-src-c69012d9c4ec037b4f96383fb5ff854cc4e757ce.zip FreeBSD-src-c69012d9c4ec037b4f96383fb5ff854cc4e757ce.tar.gz |
Merged from sys/dev/aic/aic_isa.c revision 1.7.
Diffstat (limited to 'sys/dev/aic')
-rw-r--r-- | sys/dev/aic/aic_cbus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/aic/aic_cbus.c b/sys/dev/aic/aic_cbus.c index ac36830..44f958b 100644 --- a/sys/dev/aic/aic_cbus.c +++ b/sys/dev/aic/aic_cbus.c @@ -110,8 +110,10 @@ aic_isa_alloc_resources(device_t dev) sc->sc_port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, AIC_ISA_PORTSIZE, RF_ACTIVE); #endif - if (!sc->sc_port) + if (!sc->sc_port) { + device_printf(dev, "I/O port allocation failed\n"); return (ENOMEM); + } #ifdef PC98 isa_load_resourcev(sc->sc_port, bs_iat, AIC_ISA_PORTSIZE); #endif @@ -121,6 +123,7 @@ aic_isa_alloc_resources(device_t dev) sc->sc_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0ul, ~0ul, 1, RF_ACTIVE); if (!sc->sc_irq) { + device_printf(dev, "IRQ allocation failed\n"); aic_isa_release_resources(dev); return (ENOMEM); } @@ -131,6 +134,7 @@ aic_isa_alloc_resources(device_t dev) sc->sc_drq = bus_alloc_resource(dev, SYS_RES_DRQ, &rid, 0ul, ~0ul, 1, RF_ACTIVE); if (!sc->sc_drq) { + device_printf(dev, "DRQ allocation failed\n"); aic_isa_release_resources(dev); return (ENOMEM); } |