if_sbni_isa.c (121816) | if_sbni_isa.c (127135) |
---|---|
1/* 2 * Copyright (c) 1997-2001 Granch, Ltd. All rights reserved. 3 * Author: Denis I.Timofeev <timofeev@granch.ru> 4 * 5 * Redistributon 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 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1997-2001 Granch, Ltd. All rights reserved. 3 * Author: Denis I.Timofeev <timofeev@granch.ru> 4 * 5 * Redistributon 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 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/sbni/if_sbni_isa.c 121816 2003-10-31 18:32:15Z brooks $"); | 30__FBSDID("$FreeBSD: head/sys/dev/sbni/if_sbni_isa.c 127135 2004-03-17 17:50:55Z njl $"); |
31 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/socket.h> 36 37#include <sys/bus.h> 38#include <sys/kernel.h> --- 72 unchanged lines hidden (view full) --- 111 struct sbni_softc *sc; 112 struct sbni_flags flags; 113 int error; 114 115 sc = device_get_softc(dev); 116 117 printf("sbni%d: <Granch SBNI12/ISA adapter> port 0x%lx", 118 next_sbni_unit, rman_get_start(sc->io_res)); | 31 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/socket.h> 36 37#include <sys/bus.h> 38#include <sys/kernel.h> --- 72 unchanged lines hidden (view full) --- 111 struct sbni_softc *sc; 112 struct sbni_flags flags; 113 int error; 114 115 sc = device_get_softc(dev); 116 117 printf("sbni%d: <Granch SBNI12/ISA adapter> port 0x%lx", 118 next_sbni_unit, rman_get_start(sc->io_res)); |
119 sc->irq_res = bus_alloc_resource( 120 dev, SYS_RES_IRQ, &sc->irq_rid, 0ul, ~0ul, 1, RF_ACTIVE); | 119 sc->irq_res = bus_alloc_resource_any( 120 dev, SYS_RES_IRQ, &sc->irq_rid, RF_ACTIVE); |
121 122 if (sc->irq_res) { 123 printf(" irq %ld\n", rman_get_start(sc->irq_res)); 124 error = bus_setup_intr( 125 dev, sc->irq_res, INTR_TYPE_NET, 126 sbni_intr, sc, &sc->irq_handle); 127 if (error) { 128 printf("sbni%d: bus_setup_intr\n", next_sbni_unit); --- 41 unchanged lines hidden --- | 121 122 if (sc->irq_res) { 123 printf(" irq %ld\n", rman_get_start(sc->irq_res)); 124 error = bus_setup_intr( 125 dev, sc->irq_res, INTR_TYPE_NET, 126 sbni_intr, sc, &sc->irq_handle); 127 if (error) { 128 printf("sbni%d: bus_setup_intr\n", next_sbni_unit); --- 41 unchanged lines hidden --- |