Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
1.3 KiB
C
28 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Random defines and structures for the HP Lance driver.
|
|
* Copyright (C) 05/1998 Peter Maydell <pmaydell@chiark.greenend.org.uk>
|
|
* 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 */
|