1/*- 2 * Copyright (c) 1995, David Greenman 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 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE 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/ed/if_ed_isa.c 154924 2006-01-27 19:10:13Z imp $"); |
31 32#include "opt_ed.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/socket.h> 37#include <sys/kernel.h> 38 --- 38 unchanged lines hidden (view full) --- 77 78 err = ed_probe_Novell(dev, 0, flags); 79 if (err) 80 return err; 81 ed_Novell_read_mac(sc); 82 /* 83 * Final sanity check for Gateway Ethernet cards before 84 * believing that they really are Gateway AT. |
85 * XXX I think this is stale. |
86 */ 87 if ((ED_FLAGS_GETTYPE(flags) == ED_FLAGS_GWETHER) && 88 (sc->enaddr[2] == 0x86)) { 89 sc->type_str = "Gateway AT"; 90 } 91 92 return (0); 93} --- 77 unchanged lines hidden (view full) --- 171 172 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE, 173 edintr, sc, &sc->irq_handle); 174 if (error) { 175 ed_release_resources(dev); 176 return (error); 177 } 178 |
179 return ed_attach(dev); 180} 181 182static device_method_t ed_isa_methods[] = { 183 /* Device interface */ 184 DEVMETHOD(device_probe, ed_isa_probe), 185 DEVMETHOD(device_attach, ed_isa_attach), 186 DEVMETHOD(device_detach, ed_detach), --- 13 unchanged lines hidden --- |