hplance.h 1.3 KB

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Random defines and structures for the HP Lance driver.
  3. * Copyright (C) 05/1998 Peter Maydell <[email protected]>
  4. * Based on the Sun Lance driver and the NetBSD HP Lance driver
  5. */
  6. /* Registers */
  7. #define HPLANCE_ID 0x01 /* DIO register: ID byte */
  8. #define HPLANCE_STATUS 0x03 /* DIO register: interrupt enable/status */
  9. /* Control and status bits for the status register */
  10. #define LE_IE 0x80 /* interrupt enable */
  11. #define LE_IR 0x40 /* interrupt requested */
  12. #define LE_LOCK 0x08 /* lock status register */
  13. #define LE_ACK 0x04 /* ack of lock */
  14. #define LE_JAB 0x02 /* loss of tx clock (???) */
  15. /* We can also extract the IPL from the status register with the standard
  16. * DIO_IPL(hplance) macro, or using dio_scodetoipl()
  17. */
  18. /* These are the offsets for the DIO regs (hplance_reg), lance_ioreg,
  19. * memory and NVRAM:
  20. */
  21. #define HPLANCE_IDOFF 0 /* board baseaddr */
  22. #define HPLANCE_REGOFF 0x4000 /* lance registers */
  23. #define HPLANCE_MEMOFF 0x8000 /* struct lance_init_block */
  24. #define HPLANCE_NVRAMOFF 0xC008 /* etheraddress as one *nibble* per byte */