aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hplance.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/hplance.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/net/hplance.h')
-rw-r--r--drivers/net/hplance.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/net/hplance.h b/drivers/net/hplance.h
new file mode 100644
index 000000000000..04aee9e0376a
--- /dev/null
+++ b/drivers/net/hplance.h
@@ -0,0 +1,26 @@
1/* Random defines and structures for the HP Lance driver.
2 * Copyright (C) 05/1998 Peter Maydell <pmaydell@chiark.greenend.org.uk>
3 * Based on the Sun Lance driver and the NetBSD HP Lance driver
4 */
5
6/* Registers */
7#define HPLANCE_ID 0x01 /* DIO register: ID byte */
8#define HPLANCE_STATUS 0x03 /* DIO register: interrupt enable/status */
9
10/* Control and status bits for the status register */
11#define LE_IE 0x80 /* interrupt enable */
12#define LE_IR 0x40 /* interrupt requested */
13#define LE_LOCK 0x08 /* lock status register */
14#define LE_ACK 0x04 /* ack of lock */
15#define LE_JAB 0x02 /* loss of tx clock (???) */
16/* We can also extract the IPL from the status register with the standard
17 * DIO_IPL(hplance) macro, or using dio_scodetoipl()
18 */
19
20/* These are the offsets for the DIO regs (hplance_reg), lance_ioreg,
21 * memory and NVRAM:
22 */
23#define HPLANCE_IDOFF 0 /* board baseaddr */
24#define HPLANCE_REGOFF 0x4000 /* lance registers */
25#define HPLANCE_MEMOFF 0x8000 /* struct lance_init_block */
26#define HPLANCE_NVRAMOFF 0xC008 /* etheraddress as one *nibble* per byte */