Deleted Added
full compact
if_ed.c (11819) if_ed.c (11872)
1/*
2 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
3 * adapters. By David Greenman, 29-April-1993
4 *
5 * Copyright (C) 1993, David Greenman. This software may be used, modified,
6 * copied, distributed, and sold, in both source and binary form provided
7 * that the above copyright and these terms are retained. Under no
8 * circumstances is the author responsible for the proper functioning
9 * of this software, nor does the author assume any responsibility
10 * for damages incurred with its use.
11 *
12 * Currently supports the Western Digital/SMC 8003 and 8013 series,
13 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
14 * and a variety of similar clones.
15 *
1/*
2 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
3 * adapters. By David Greenman, 29-April-1993
4 *
5 * Copyright (C) 1993, David Greenman. This software may be used, modified,
6 * copied, distributed, and sold, in both source and binary form provided
7 * that the above copyright and these terms are retained. Under no
8 * circumstances is the author responsible for the proper functioning
9 * of this software, nor does the author assume any responsibility
10 * for damages incurred with its use.
11 *
12 * Currently supports the Western Digital/SMC 8003 and 8013 series,
13 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,
14 * and a variety of similar clones.
15 *
16 * $Id: if_ed.c,v 1.79 1995/10/21 00:55:23 phk Exp $
16 * $Id: if_ed.c,v 1.80 1995/10/26 20:29:27 julian Exp $
17 */
18
19#include "ed.h"
20#include "bpfilter.h"
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/errno.h>

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

302 "", /* description */
303 DC_CLS_NETIF /* class */
304};
305
306static inline void
307ed_registerdev(struct isa_device *id, const char *descr)
308{
309 struct kern_devconf *kdc = &ed_softc[id->id_unit].kdc;
17 */
18
19#include "ed.h"
20#include "bpfilter.h"
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/errno.h>

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

302 "", /* description */
303 DC_CLS_NETIF /* class */
304};
305
306static inline void
307ed_registerdev(struct isa_device *id, const char *descr)
308{
309 struct kern_devconf *kdc = &ed_softc[id->id_unit].kdc;
310 char *longdescr;
311 *kdc = kdc_ed_template;
312 kdc->kdc_unit = id->id_unit;
313 kdc->kdc_parentdata = id;
314 kdc->kdc_description = descr;
315 dev_attach(kdc);
316}
317
318/*

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

1284int
1285ed_probe_pccard(isa_dev, ether)
1286 struct isa_device *isa_dev;
1287 u_char *ether;
1288{
1289 struct ed_softc *sc = &ed_softc[isa_dev->id_unit];
1290 int i;
1291 u_int memsize;
310 *kdc = kdc_ed_template;
311 kdc->kdc_unit = id->id_unit;
312 kdc->kdc_parentdata = id;
313 kdc->kdc_description = descr;
314 dev_attach(kdc);
315}
316
317/*

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

1283int
1284ed_probe_pccard(isa_dev, ether)
1285 struct isa_device *isa_dev;
1286 u_char *ether;
1287{
1288 struct ed_softc *sc = &ed_softc[isa_dev->id_unit];
1289 int i;
1290 u_int memsize;
1292 u_char iptr, isa16bit, sum;
1291 u_char isa16bit;
1293
1294 sc->nic_addr = isa_dev->id_iobase;
1295 sc->gone = 0;
1296 sc->is790 = 0;
1297 sc->cr_proto = ED_CR_RD2;
1298 sc->vendor = ED_VENDOR_PCCARD;
1299 sc->type = 0;
1300 sc->type_str = "PCCARD";

--- 1549 unchanged lines hidden ---
1292
1293 sc->nic_addr = isa_dev->id_iobase;
1294 sc->gone = 0;
1295 sc->is790 = 0;
1296 sc->cr_proto = ED_CR_RD2;
1297 sc->vendor = ED_VENDOR_PCCARD;
1298 sc->type = 0;
1299 sc->type_str = "PCCARD";

--- 1549 unchanged lines hidden ---