Deleted Added
full compact
smc90cx6.c (121816) smc90cx6.c (127135)
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2
3#include <sys/cdefs.h>
1/* $NetBSD: smc90cx6.c,v 1.38 2001/07/07 15:57:53 thorpej Exp $ */
2
3#include <sys/cdefs.h>
4__FBSDID("$FreeBSD: head/sys/dev/cm/smc90cx6.c 121816 2003-10-31 18:32:15Z brooks $");
4__FBSDID("$FreeBSD: head/sys/dev/cm/smc90cx6.c 127135 2004-03-17 17:50:55Z njl $");
5
6/*-
7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
8 * All rights reserved.
9 *
10 * This code is derived from software contributed to The NetBSD Foundation
11 * by Ignatios Souvatzis.
12 *

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

225int
226cm_alloc_irq(dev, rid)
227 device_t dev;
228 int rid;
229{
230 struct cm_softc *sc = device_get_softc(dev);
231 struct resource *res;
232
5
6/*-
7 * Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
8 * All rights reserved.
9 *
10 * This code is derived from software contributed to The NetBSD Foundation
11 * by Ignatios Souvatzis.
12 *

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

225int
226cm_alloc_irq(dev, rid)
227 device_t dev;
228 int rid;
229{
230 struct cm_softc *sc = device_get_softc(dev);
231 struct resource *res;
232
233 res = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
234 0ul, ~0ul, 1, RF_ACTIVE);
233 res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
235 if (res) {
236 sc->irq_rid = rid;
237 sc->irq_res = res;
238 return (0);
239 } else {
240 return (ENOENT);
241 }
242}

--- 809 unchanged lines hidden ---
234 if (res) {
235 sc->irq_rid = rid;
236 sc->irq_res = res;
237 return (0);
238 } else {
239 return (ENOENT);
240 }
241}

--- 809 unchanged lines hidden ---