if_hme_pci.c (92046) | if_hme_pci.c (93043) |
---|---|
1/* 2 * Copyright (c) 2000 Matthew R. Green 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 --- 13 unchanged lines hidden (view full) --- 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from: NetBSD: if_hme_pci.c,v 1.4 2001/08/27 22:18:49 augustss Exp 29 * | 1/* 2 * Copyright (c) 2000 Matthew R. Green 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 --- 13 unchanged lines hidden (view full) --- 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * from: NetBSD: if_hme_pci.c,v 1.4 2001/08/27 22:18:49 augustss Exp 29 * |
30 * $FreeBSD: head/sys/dev/hme/if_hme_pci.c 92046 2002-03-11 02:37:19Z tmm $ | 30 * $FreeBSD: head/sys/dev/hme/if_hme_pci.c 93043 2002-03-23 19:37:11Z tmm $ |
31 */ 32 33/* 34 * PCI front-end device driver for the HME ethernet device. 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> --- 107 unchanged lines hidden (view full) --- 146 hsc->hsc_sres = bus_alloc_resource(dev, SYS_RES_MEMORY, &hsc->hsc_srid, 147 0, ~0, 1, RF_ACTIVE); 148 if (hsc->hsc_sres == NULL) { 149 device_printf(dev, "could not map device registers\n"); 150 return (ENXIO); 151 } 152 hsc->hsc_irid = 0; 153 hsc->hsc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &hsc->hsc_irid, 0, | 31 */ 32 33/* 34 * PCI front-end device driver for the HME ethernet device. 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> --- 107 unchanged lines hidden (view full) --- 146 hsc->hsc_sres = bus_alloc_resource(dev, SYS_RES_MEMORY, &hsc->hsc_srid, 147 0, ~0, 1, RF_ACTIVE); 148 if (hsc->hsc_sres == NULL) { 149 device_printf(dev, "could not map device registers\n"); 150 return (ENXIO); 151 } 152 hsc->hsc_irid = 0; 153 hsc->hsc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &hsc->hsc_irid, 0, |
154 ~0, 1, RF_ACTIVE); | 154 ~0, 1, RF_SHAREABLE | RF_ACTIVE); |
155 if (hsc->hsc_ires == NULL) { 156 device_printf(dev, "could not allocate interrupt\n"); 157 error = ENXIO; 158 goto fail_sres; 159 } 160 sc->sc_sebt = sc->sc_etxt = sc->sc_erxt = sc->sc_mact = sc->sc_mift = 161 rman_get_bustag(hsc->hsc_sres); 162 sc->sc_sebh = sc->sc_etxh = sc->sc_erxh = sc->sc_mach = sc->sc_mifh = --- 32 unchanged lines hidden --- | 155 if (hsc->hsc_ires == NULL) { 156 device_printf(dev, "could not allocate interrupt\n"); 157 error = ENXIO; 158 goto fail_sres; 159 } 160 sc->sc_sebt = sc->sc_etxt = sc->sc_erxt = sc->sc_mact = sc->sc_mift = 161 rman_get_bustag(hsc->hsc_sres); 162 sc->sc_sebh = sc->sc_etxh = sc->sc_erxh = sc->sc_mach = sc->sc_mifh = --- 32 unchanged lines hidden --- |