Deleted Added
full compact
ahc_eisa.c (71717) ahc_eisa.c (74094)
1/*
2 * FreeBSD, EISA product support functions
3 *
4 *
5 * Copyright (c) 1994-1998, 2000, 2001 Justin T. Gibbs.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id$
30 *
1/*
2 * FreeBSD, EISA product support functions
3 *
4 *
5 * Copyright (c) 1994-1998, 2000, 2001 Justin T. Gibbs.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $Id$
30 *
31 * $FreeBSD: head/sys/dev/aic7xxx/ahc_eisa.c 71717 2001-01-27 20:54:24Z gibbs $
31 * $FreeBSD: head/sys/dev/aic7xxx/ahc_eisa.c 74094 2001-03-11 06:34:17Z gibbs $
32 */
33
34#include <dev/aic7xxx/aic7xxx_freebsd.h>
35
36#include <dev/eisa/eisaconf.h>
37
38static int
39aic7770_probe(device_t dev)

--- 135 unchanged lines hidden (view full) ---

175 ahc->platform_data->regs_res_id = rid,
176 ahc->platform_data->regs = regs;
177 ahc->tag = rman_get_bustag(regs);
178 ahc->bsh = rman_get_bushandle(regs);
179 return (0);
180}
181
182int
32 */
33
34#include <dev/aic7xxx/aic7xxx_freebsd.h>
35
36#include <dev/eisa/eisaconf.h>
37
38static int
39aic7770_probe(device_t dev)

--- 135 unchanged lines hidden (view full) ---

175 ahc->platform_data->regs_res_id = rid,
176 ahc->platform_data->regs = regs;
177 ahc->tag = rman_get_bustag(regs);
178 ahc->bsh = rman_get_bushandle(regs);
179 return (0);
180}
181
182int
183aic7770_map_int(struct ahc_softc *ahc)
183aic7770_map_int(struct ahc_softc *ahc, int irq)
184{
185 int zero;
186
187 zero = 0;
188 ahc->platform_data->irq =
189 bus_alloc_resource(ahc->dev_softc, SYS_RES_IRQ, &zero,
190 0, ~0, 1, RF_ACTIVE);
191 if (ahc->platform_data->irq == NULL)

--- 22 unchanged lines hidden ---
184{
185 int zero;
186
187 zero = 0;
188 ahc->platform_data->irq =
189 bus_alloc_resource(ahc->dev_softc, SYS_RES_IRQ, &zero,
190 0, ~0, 1, RF_ACTIVE);
191 if (ahc->platform_data->irq == NULL)

--- 22 unchanged lines hidden ---