pccbb_isa.c (151308) | pccbb_isa.c (151457) |
---|---|
1/*- 2 * Copyright (c) 2002-2004 M. Warner Losh. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * Driver for ISA to PCMCIA bridges compliant with the Intel ExCA 29 * specification. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002-2004 M. Warner Losh. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 */ 26 27/* 28 * Driver for ISA to PCMCIA bridges compliant with the Intel ExCA 29 * specification. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/pccbb/pccbb_isa.c 151308 2005-10-14 04:47:18Z imp $"); | 33__FBSDID("$FreeBSD: head/sys/dev/pccbb/pccbb_isa.c 151457 2005-10-19 00:18:11Z imp $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/proc.h> 38#include <sys/condvar.h> 39#include <sys/errno.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> --- 109 unchanged lines hidden (view full) --- 151 rid = 0; 152 res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 153 if (res == NULL) { 154 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); 155 sc->irq_res = NULL; 156 device_printf(dev, "Cannot allocate I/O\n"); 157 return (ENOMEM); 158 } | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/proc.h> 38#include <sys/condvar.h> 39#include <sys/errno.h> 40#include <sys/kernel.h> 41#include <sys/lock.h> --- 109 unchanged lines hidden (view full) --- 151 rid = 0; 152 res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); 153 if (res == NULL) { 154 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); 155 sc->irq_res = NULL; 156 device_printf(dev, "Cannot allocate I/O\n"); 157 return (ENOMEM); 158 } |
159 sc->bst = rman_get_bustag(res); 160 sc->bsh = rman_get_bushandle(res); |
|
159 sc->base_res = res; 160 return (0); 161} 162 163static void 164cbb_isa_deactivate(device_t dev) 165{ 166 struct cbb_softc *sc = device_get_softc(dev); --- 78 unchanged lines hidden --- | 161 sc->base_res = res; 162 return (0); 163} 164 165static void 166cbb_isa_deactivate(device_t dev) 167{ 168 struct cbb_softc *sc = device_get_softc(dev); --- 78 unchanged lines hidden --- |