mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Moves the drivers for the AMD chipsets into drivers/net/ethernet/amd/ and the necessary Kconfig and Makfile changes. The au1000 (Alchemy) driver was also moved into the same directory even though it is not a "Lance" driver. CC: Peter Maydell <[email protected]> CC: Roman Hodek <[email protected]> CC: "Maciej W. Rozycki" <[email protected]> CC: Donald Becker <[email protected]> CC: Sam Creasey <[email protected]> CC: Miguel de Icaza <[email protected]> CC: Thomas Bogendoerfer <[email protected]> CC: Don Fry <[email protected]> CC: Geert Uytterhoeven <[email protected]> CC: Russell King <[email protected]> CC: David Davies <[email protected]> CC: "M.Hipp" <[email protected]> CC: Pete Popov <[email protected]> CC: David Hinds <[email protected]> CC: "Roger C. Pao" <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
27 lines
1.3 KiB
C
27 lines
1.3 KiB
C
/* Random defines and structures for the HP Lance driver.
|
|
* Copyright (C) 05/1998 Peter Maydell <[email protected]>
|
|
* Based on the Sun Lance driver and the NetBSD HP Lance driver
|
|
*/
|
|
|
|
/* Registers */
|
|
#define HPLANCE_ID 0x01 /* DIO register: ID byte */
|
|
#define HPLANCE_STATUS 0x03 /* DIO register: interrupt enable/status */
|
|
|
|
/* Control and status bits for the status register */
|
|
#define LE_IE 0x80 /* interrupt enable */
|
|
#define LE_IR 0x40 /* interrupt requested */
|
|
#define LE_LOCK 0x08 /* lock status register */
|
|
#define LE_ACK 0x04 /* ack of lock */
|
|
#define LE_JAB 0x02 /* loss of tx clock (???) */
|
|
/* We can also extract the IPL from the status register with the standard
|
|
* DIO_IPL(hplance) macro, or using dio_scodetoipl()
|
|
*/
|
|
|
|
/* These are the offsets for the DIO regs (hplance_reg), lance_ioreg,
|
|
* memory and NVRAM:
|
|
*/
|
|
#define HPLANCE_IDOFF 0 /* board baseaddr */
|
|
#define HPLANCE_REGOFF 0x4000 /* lance registers */
|
|
#define HPLANCE_MEMOFF 0x8000 /* struct lance_init_block */
|
|
#define HPLANCE_NVRAMOFF 0xC008 /* etheraddress as one *nibble* per byte */
|