diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/tokenring/abyss.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/tokenring/abyss.h')
-rw-r--r-- | drivers/net/tokenring/abyss.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/drivers/net/tokenring/abyss.h b/drivers/net/tokenring/abyss.h new file mode 100644 index 000000000000..0ee6e4f085b1 --- /dev/null +++ b/drivers/net/tokenring/abyss.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | * abyss.h: Header for the abyss tms380tr module | ||
3 | * | ||
4 | * Authors: | ||
5 | * - Adam Fritzler <mid@auk.cx> | ||
6 | */ | ||
7 | |||
8 | #ifndef __LINUX_MADGETR_H | ||
9 | #define __LINUX_MADGETR_H | ||
10 | |||
11 | #ifdef __KERNEL__ | ||
12 | |||
13 | /* | ||
14 | * For Madge Smart 16/4 PCI Mk2. Since we increment the base address | ||
15 | * to get everything correct for the TMS SIF, we do these as negatives | ||
16 | * as they fall below the SIF in addressing. | ||
17 | */ | ||
18 | #define PCIBM2_INT_STATUS_REG ((short)-15)/* 0x01 */ | ||
19 | #define PCIBM2_INT_CONTROL_REG ((short)-14)/* 0x02 */ | ||
20 | #define PCIBM2_RESET_REG ((short)-12)/* 0x04 */ | ||
21 | #define PCIBM2_SEEPROM_REG ((short)-9) /* 0x07 */ | ||
22 | |||
23 | #define PCIBM2_INT_CONTROL_REG_SINTEN 0x02 | ||
24 | #define PCIBM2_INT_CONTROL_REG_PCI_ERR_ENABLE 0x80 | ||
25 | #define PCIBM2_INT_STATUS_REG_PCI_ERR 0x80 | ||
26 | |||
27 | #define PCIBM2_RESET_REG_CHIP_NRES 0x01 | ||
28 | #define PCIBM2_RESET_REG_FIFO_NRES 0x02 | ||
29 | #define PCIBM2_RESET_REG_SIF_NRES 0x04 | ||
30 | |||
31 | #define PCIBM2_FIFO_THRESHOLD 0x21 | ||
32 | #define PCIBM2_BURST_LENGTH 0x22 | ||
33 | |||
34 | /* | ||
35 | * Bits in PCIBM2_SEEPROM_REG. | ||
36 | */ | ||
37 | #define AT24_ENABLE 0x04 | ||
38 | #define AT24_DATA 0x02 | ||
39 | #define AT24_CLOCK 0x01 | ||
40 | |||
41 | /* | ||
42 | * AT24 Commands. | ||
43 | */ | ||
44 | #define AT24_WRITE 0xA0 | ||
45 | #define AT24_READ 0xA1 | ||
46 | |||
47 | /* | ||
48 | * Addresses in AT24 SEEPROM. | ||
49 | */ | ||
50 | #define PCIBM2_SEEPROM_BIA 0x12 | ||
51 | #define PCIBM2_SEEPROM_RING_SPEED 0x18 | ||
52 | #define PCIBM2_SEEPROM_RAM_SIZE 0x1A | ||
53 | #define PCIBM2_SEEPROM_HWF1 0x1C | ||
54 | #define PCIBM2_SEEPROM_HWF2 0x1E | ||
55 | |||
56 | |||
57 | #endif /* __KERNEL__ */ | ||
58 | #endif /* __LINUX_MADGETR_H */ | ||