From c7fc24dc4420057f103afe8fc64524ebc25c5d37 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Aug 1998 09:12:35 +0000 Subject: o Merge with Linux 2.1.116. o New Newport console code. o New G364 console code. --- drivers/net/hplance.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 drivers/net/hplance.h (limited to 'drivers/net/hplance.h') diff --git a/drivers/net/hplance.h b/drivers/net/hplance.h new file mode 100644 index 000000000..3af4c4d1f --- /dev/null +++ b/drivers/net/hplance.h @@ -0,0 +1,31 @@ +/* Random defines and structures for the HP Lance driver. + * Copyright (C) 05/1998 Peter Maydell + * Based on the Sun Lance driver and the NetBSD HP Lance driver + */ + +/* Registers */ +struct hplance_reg +{ + u_char pad0; + volatile u_char id; /* DIO register: ID byte */ + u_char pad1; + volatile u_char status; /* DIO register: interrupt enable */ +}; + +/* Control and status bits for the hplance->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, struct hplance_reg */ +#define HPLANCE_REGOFF 0x4000 /* struct lance_regs */ +#define HPLANCE_MEMOFF 0x8000 /* struct lance_init_block */ +#define HPLANCE_NVRAMOFF 0xC008 /* etheraddress as one *nibble* per byte */ -- cgit v1.2.3