rp_pci.c (119418) | rp_pci.c (127135) |
---|---|
1/*- 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * PCI-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 --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION) 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#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) Comtrol Corporation <support@comtrol.com> 3 * All rights reserved. 4 * 5 * PCI-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 --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION) 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#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/dev/rp/rp_pci.c 119418 2003-08-24 17:55:58Z obrien $"); | 37__FBSDID("$FreeBSD: head/sys/dev/rp/rp_pci.c 127135 2004-03-17 17:50:55Z njl $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/fcntl.h> 42#include <sys/malloc.h> 43#include <sys/tty.h> 44#include <sys/conf.h> 45#include <sys/kernel.h> --- 126 unchanged lines hidden (view full) --- 172 device_printf(dev, "rp_pciattach: Out of memory.\n"); 173 retval = ENOMEM; 174 goto nogo; 175 } 176 177 ctlp->bus_ctlp = NULL; 178 179 ctlp->io_rid[0] = 0x10; | 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/fcntl.h> 42#include <sys/malloc.h> 43#include <sys/tty.h> 44#include <sys/conf.h> 45#include <sys/kernel.h> --- 126 unchanged lines hidden (view full) --- 172 device_printf(dev, "rp_pciattach: Out of memory.\n"); 173 retval = ENOMEM; 174 goto nogo; 175 } 176 177 ctlp->bus_ctlp = NULL; 178 179 ctlp->io_rid[0] = 0x10; |
180 ctlp->io[0] = bus_alloc_resource(dev, SYS_RES_IOPORT, &ctlp->io_rid[0], 0, ~0, 1, RF_ACTIVE); | 180 ctlp->io[0] = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 181 &ctlp->io_rid[0], RF_ACTIVE); |
181 if(ctlp->io[0] == NULL) { 182 device_printf(dev, "ioaddr mapping failed for RocketPort(PCI).\n"); 183 retval = ENXIO; 184 goto nogo; 185 } 186 187 num_aiops = sPCIInitController(ctlp, 188 MAX_AIOPS_PER_BOARD, 0, --- 181 unchanged lines hidden --- | 182 if(ctlp->io[0] == NULL) { 183 device_printf(dev, "ioaddr mapping failed for RocketPort(PCI).\n"); 184 retval = ENXIO; 185 goto nogo; 186 } 187 188 num_aiops = sPCIInitController(ctlp, 189 MAX_AIOPS_PER_BOARD, 0, --- 181 unchanged lines hidden --- |