Deleted Added
full compact
if_ed.c (521) if_ed.c (522)
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

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

15 *
16 * Thanks to Charles Hannum for proving to me with example code that the
17 * NE1000/2000 support could be added with minimal impact. Without
18 * this, I wouldn't have proceeded in this direction.
19 *
20 */
21
22/*
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

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

15 *
16 * Thanks to Charles Hannum for proving to me with example code that the
17 * NE1000/2000 support could be added with minimal impact. Without
18 * this, I wouldn't have proceeded in this direction.
19 *
20 */
21
22/*
23 * $Id: if_ed.c,v 2.3 93/09/29 15:10:16 davidg Exp Locker: davidg $
23 * $Id: if_ed.c,v 2.4 93/09/29 21:24:30 davidg Exp Locker: davidg $
24 */
25
26/*
27 * Modification history
28 *
24 */
25
26/*
27 * Modification history
28 *
29 * Revision 2.4 93/09/29 21:24:30 davidg
30 * Added software NIC reset in NE probe to work around a problem
31 * with some NE boards where the 8390 doesn't reset properly on
32 * power-up. Remove initialization of IMR/ISR in the NE probe
33 * because this is inherent in the reset.
34 *
29 * Revision 2.3 93/09/29 15:10:16 davidg
30 * credit Charles Hannum
31 *
32 * Revision 2.2 93/09/29 13:23:25 davidg
33 * added no multi-buffer override for 3c503
34 *
35 * Revision 2.1 93/09/29 12:32:12 davidg
36 * changed multi-buffer count for 16bit 3c503's from 5 to 2 after

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

798 * I don't know if this is necessary; probably cruft leftover from
799 * Clarkson packet driver code. Doesn't do a thing on the boards
800 * I've tested. -DG
801 */
802 outb(sc->asic_addr + ED_NOVELL_RESET, tmp);
803 DELAY(5000);
804#endif
805
35 * Revision 2.3 93/09/29 15:10:16 davidg
36 * credit Charles Hannum
37 *
38 * Revision 2.2 93/09/29 13:23:25 davidg
39 * added no multi-buffer override for 3c503
40 *
41 * Revision 2.1 93/09/29 12:32:12 davidg
42 * changed multi-buffer count for 16bit 3c503's from 5 to 2 after

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

804 * I don't know if this is necessary; probably cruft leftover from
805 * Clarkson packet driver code. Doesn't do a thing on the boards
806 * I've tested. -DG
807 */
808 outb(sc->asic_addr + ED_NOVELL_RESET, tmp);
809 DELAY(5000);
810#endif
811
806 outb(sc->nic_addr + ED_P0_IMR, 0);
807 outb(sc->nic_addr + ED_P0_ISR, 0xff);
812 /*
813 * This is needed because some NE clones apparently don't reset the
814 * NIC properly (or the NIC chip doesn't reset fully on power-up)
815 */
816 outb(sc->nic_addr + ED_P0_CR, ED_CR_RD2|ED_CR_STP);
808
809 sc->vendor = ED_VENDOR_NOVELL;
810 sc->mem_shared = 0;
811 isa_dev->id_maddr = 0;
812
813 /*
814 * Test the ability to read and write to the NIC memory. This has
815 * the side affect of determining if this is an NE1000 or an NE2000.

--- 1506 unchanged lines hidden ---
817
818 sc->vendor = ED_VENDOR_NOVELL;
819 sc->mem_shared = 0;
820 isa_dev->id_maddr = 0;
821
822 /*
823 * Test the ability to read and write to the NIC memory. This has
824 * the side affect of determining if this is an NE1000 or an NE2000.

--- 1506 unchanged lines hidden ---