Deleted Added
full compact
if_hme_sbus.c (91396) if_hme_sbus.c (93043)
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * from: NetBSD: if_hme_sbus.c,v 1.9 2001/11/13 06:58:17 lukem Exp
37 *
1/*-
2 * Copyright (c) 1999 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 *
36 * from: NetBSD: if_hme_sbus.c,v 1.9 2001/11/13 06:58:17 lukem Exp
37 *
38 * $FreeBSD: head/sys/dev/hme/if_hme_sbus.c 91396 2002-02-27 17:35:48Z tmm $
38 * $FreeBSD: head/sys/dev/hme/if_hme_sbus.c 93043 2002-03-23 19:37:11Z tmm $
39 */
40
41/*
42 * SBus front-end device driver for the HME ethernet device.
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

217 rman_get_start(hsc->hsc_mac_res);
218 } else {
219 sc->sc_mift = rman_get_bustag(hsc->hsc_mif_res);
220 sc->sc_mifh = rman_get_bushandle(hsc->hsc_mif_res);
221 }
222
223 hsc->hsc_irid = 0;
224 hsc->hsc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &hsc->hsc_irid, 0,
39 */
40
41/*
42 * SBus front-end device driver for the HME ethernet device.
43 */
44
45#include <sys/param.h>
46#include <sys/systm.h>

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

217 rman_get_start(hsc->hsc_mac_res);
218 } else {
219 sc->sc_mift = rman_get_bustag(hsc->hsc_mif_res);
220 sc->sc_mifh = rman_get_bushandle(hsc->hsc_mif_res);
221 }
222
223 hsc->hsc_irid = 0;
224 hsc->hsc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &hsc->hsc_irid, 0,
225 ~0, 1, RF_ACTIVE);
225 ~0, 1, RF_SHAREABLE | RF_ACTIVE);
226 if (hsc->hsc_ires == NULL) {
227 device_printf(dev, "could not allocate interrupt\n");
228 error = ENXIO;
229 goto fail_mif_res;
230 }
231
232
233 OF_getetheraddr(dev, sc->sc_arpcom.ac_enaddr);

--- 43 unchanged lines hidden ---
226 if (hsc->hsc_ires == NULL) {
227 device_printf(dev, "could not allocate interrupt\n");
228 error = ENXIO;
229 goto fail_mif_res;
230 }
231
232
233 OF_getetheraddr(dev, sc->sc_arpcom.ac_enaddr);

--- 43 unchanged lines hidden ---