if_ed.c (44829) | if_ed.c (45720) |
---|---|
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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 * | 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 * $Id: if_ed.c,v 1.149 1999/01/28 01:59:53 dillon Exp $ | 27 * $Id: if_ed.c,v 1.150 1999/03/17 16:44:51 luigi Exp $ |
28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 3447 unchanged lines hidden (view full) --- 3483 3484 return (s); 3485} 3486 3487static void 3488edpnp_attach(u_long csn, u_long vend_id, char *name, struct isa_device *dev) 3489{ 3490 struct pnp_cinfo d; | 28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 3447 unchanged lines hidden (view full) --- 3483 3484 return (s); 3485} 3486 3487static void 3488edpnp_attach(u_long csn, u_long vend_id, char *name, struct isa_device *dev) 3489{ 3490 struct pnp_cinfo d; |
3491 struct isa_device *dvp; | |
3492 3493 if (dev->id_unit >= NEDTOT) 3494 return; 3495 3496 if (read_pnp_parms(&d, 0) == 0) { 3497 printf("failed to read pnp parms\n"); 3498 return; 3499 } --- 4 unchanged lines hidden (view full) --- 3504 3505 dev->id_iobase = d.port[0]; 3506 dev->id_irq = (1 << d.irq[0]); 3507 dev->id_ointr = edintr; 3508 dev->id_drq = -1; 3509 3510 if (dev->id_driver == NULL) { 3511 dev->id_driver = &eddriver; | 3491 3492 if (dev->id_unit >= NEDTOT) 3493 return; 3494 3495 if (read_pnp_parms(&d, 0) == 0) { 3496 printf("failed to read pnp parms\n"); 3497 return; 3498 } --- 4 unchanged lines hidden (view full) --- 3503 3504 dev->id_iobase = d.port[0]; 3505 dev->id_irq = (1 << d.irq[0]); 3506 dev->id_ointr = edintr; 3507 dev->id_drq = -1; 3508 3509 if (dev->id_driver == NULL) { 3510 dev->id_driver = &eddriver; |
3512 dvp = find_isadev(isa_devtab_net, &eddriver, 0); 3513 if (dvp != NULL) 3514 dev->id_id = dvp->id_id; | 3511 dev->id_id = isa_compat_nextid(); |
3515 } 3516 3517 if ((dev->id_alive = ed_probe(dev)) != 0) 3518 ed_attach_isa(dev); 3519 else 3520 printf("ed%d: probe failed\n", dev->id_unit); 3521} 3522#endif | 3512 } 3513 3514 if ((dev->id_alive = ed_probe(dev)) != 0) 3515 ed_attach_isa(dev); 3516 else 3517 printf("ed%d: probe failed\n", dev->id_unit); 3518} 3519#endif |