// SPDX-License-Identifier: GPL-1.0+ /* lasi_82596.c -- driver for the intel 82596 ethernet controller, as munged into HPPA boxen .
This driver is based upon 82596.c, original credits are below... but there were too many hoops which HP wants jumped through to keep this code in there in a sane manner.
3 primary sources of the mess -- 1) hppa needs *lots* of cacheline flushing to keep this kind of MMIO running.
2) The 82596 needs to see all of its pointers as their physical address. Thus virt_to_bus/bus_to_virt are *everywhere*.
3) The implementation HP is using seems to be significantly pickier about when and how the command and RX units are started. some command ordering was changed.
Examination of the mach driver leads one to believe that there might be a saner way to pull this off... anyone who feels like a full rewrite can be my guest.
Split 02/13/2000 Sam Creasey (sammy@oh.verio.com)
02/01/2000 Initial modifications for parisc by Helge Deller (deller@gmx.de) 03/02/2000 changes for better/correct(?) cache-flushing (deller)
*/
/* 82596.c: A generic 82596 ethernet driver for linux. */ /* Based on Apricot.c Written 1994 by Mark Evans. This driver is for the Apricot 82596 bus-master interface
Modularised 12/94 Mark Evans
Modified to support the 82596 ethernet chips on 680x0 VME boards. by Richard Hirst <richard@sleepie.demon.co.uk> Renamed to be 82596.c
980825: Changed to receive directly in to sk_buffs which are allocated at open() time. Eliminates copy on incoming frames (small ones are still copied). Shared data now held in a non-cached page, so we can run on 68060 in copyback mode.
TBD: * look at deferring rx frames rather than discarding (as per tulip) * handle tx ring full as per tulip * performance test to tune rx_copybreak
Most of my modifications relate to the braindead big-endian implementation by Intel. When the i596 is operating in 'big-endian' mode, it thinks a 32 bit value of 0x12345678 should be stored as 0x56781234. This is a real pain, when you have linked lists which are shared by the 680x0 and the i596.
Driver skeleton Written 1993 by Donald Becker. Copyright 1993 United States Government as represented by the Director, National Security Agency.
The author may be reached as becker@scyld.com, or C/O Scyld Computing Corporation, 410 Severn Ave., Suite 210, Annapolis MD 21403
if (pdc_lan_station_id(addr, netdevice->base_addr)) { for (i = 0; i < 6; i++) {
addr[i] = gsc_readb(LAN_PROM_ADDR + i);
}
printk(KERN_INFO "%s: MAC of HP700 LAN read from EEPROM\n", __FILE__);
}
eth_hw_addr_set(netdevice, addr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.