diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2001-04-01 06:37:59 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2001-04-01 06:37:59 +0000 |
| commit | fb8a224ea1160fb37f0b725b277df7a9ccce10e0 (patch) | |
| tree | b1cb960919b8fbdc8cc43544230f478c88e7e655 /sys/dev/aic | |
| parent | 21c8cdfb96ccc1af74b2cdaf4e99467446346bfc (diff) | |
Notes
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 ac36830301f0..44f958bf8bee 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); } |
