rp_isa.c (153084) | rp_isa.c (296137) |
---|---|
1/*- 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * ISA-specific part separated from: 6 * sys/i386/isa/rp.c,v 1.33 1999/09/28 11:45:27 phk Exp 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * ISA-specific part separated from: 6 * sys/i386/isa/rp.c,v 1.33 1999/09/28 11:45:27 phk Exp 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/dev/rp/rp_isa.c 153084 2005-12-04 10:06:06Z ru $"); | 38__FBSDID("$FreeBSD: head/sys/dev/rp/rp_isa.c 296137 2016-02-27 03:38:01Z jhibbits $"); |
39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> 44#include <sys/tty.h> 45#include <sys/conf.h> 46#include <sys/kernel.h> --- 142 unchanged lines hidden (view full) --- 189 device_printf(dev, "rp_attach: Out of memory.\n"); 190 retval = ENOMEM; 191 goto nogo; 192 } 193 194 ctlp->io_rid[0] = 0; 195 if (rp_controller != NULL) { 196 controller = rp_controller; | 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/fcntl.h> 43#include <sys/malloc.h> 44#include <sys/tty.h> 45#include <sys/conf.h> 46#include <sys/kernel.h> --- 142 unchanged lines hidden (view full) --- 189 device_printf(dev, "rp_attach: Out of memory.\n"); 190 retval = ENOMEM; 191 goto nogo; 192 } 193 194 ctlp->io_rid[0] = 0; 195 if (rp_controller != NULL) { 196 controller = rp_controller; |
197 ctlp->io[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0, ~0, 0x40, RF_ACTIVE); | 197 ctlp->io[0] = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0x40, RF_ACTIVE); |
198 } else { 199 controller = rp_controller = ctlp; | 198 } else { 199 controller = rp_controller = ctlp; |
200 ctlp->io[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0, ~0, 0x44, RF_ACTIVE); | 200 ctlp->io[0] = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0x44, RF_ACTIVE); |
201 } 202 if (ctlp->io[0] == NULL) { 203 device_printf(dev, "rp_attach: Resource not available.\n"); 204 retval = ENXIO; 205 goto nogo; 206 } 207 208 num_aiops = sInitController(ctlp, --- 297 unchanged lines hidden --- | 201 } 202 if (ctlp->io[0] == NULL) { 203 device_printf(dev, "rp_attach: Resource not available.\n"); 204 retval = ENXIO; 205 goto nogo; 206 } 207 208 num_aiops = sInitController(ctlp, --- 297 unchanged lines hidden --- |