Index: ich.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/pci/ich.c,v retrieving revision 1.3.2.6 diff -u -r1.3.2.6 ich.c --- ich.c 19 Feb 2002 01:04:20 -0000 1.3.2.6 +++ ich.c 29 Mar 2002 15:55:41 -0000 @@ -643,11 +643,25 @@ sc->nambarid = PCIR_NAMBAR; sc->nabmbarid = PCIR_NABMBAR; - sc->nambar = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->nambarid, 0, ~0, 1, RF_ACTIVE); - sc->nabmbar = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->nabmbarid, 0, ~0, 1, RF_ACTIVE); + device_printf(dev, "NAMBAR: start %lu count %ld\n", + bus_get_resource_start(dev, SYS_RES_IOPORT, + sc->nambarid), + bus_get_resource_count(dev, SYS_RES_IOPORT, + sc->nambarid)); + device_printf(dev, "NABMBAR: start %lu count %ld\n", + bus_get_resource_start(dev, SYS_RES_IOPORT, + sc->nabmbarid), + bus_get_resource_count(dev, SYS_RES_IOPORT, + sc->nabmbarid)); + + sc->nambar = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->nambarid, 0, ~0, 4, RF_ACTIVE); /* Count us supposed to be 32-bits not 8-bits, matters? */ + sc->nabmbar = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->nabmbarid, 0, ~0, 4, RF_ACTIVE); /* Ditto */ if (!sc->nambar || !sc->nabmbar) { - device_printf(dev, "unable to map IO port space\n"); + device_printf(dev, + "unable to map IO port space " + "(nambar %p, nabmbar %p)\n", + sc->nambar, sc->nabmbar); goto bad; }