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/atm/zeprom.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/atm/zeprom.h')
-rw-r--r-- | drivers/atm/zeprom.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/atm/zeprom.h b/drivers/atm/zeprom.h new file mode 100644 index 000000000000..019bb82490e9 --- /dev/null +++ b/drivers/atm/zeprom.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* drivers/atm/zeprom.h - ZeitNet ZN122x EEPROM (NM93C46) declarations */ | ||
2 | |||
3 | /* Written 1995,1996 by Werner Almesberger, EPFL LRC */ | ||
4 | |||
5 | |||
6 | #ifndef DRIVER_ATM_ZEPROM_H | ||
7 | #define DRIVER_ATM_ZEPROM_H | ||
8 | |||
9 | /* Different versions use different control registers */ | ||
10 | |||
11 | #define ZEPROM_V1_REG PCI_VENDOR_ID /* PCI register */ | ||
12 | #define ZEPROM_V2_REG 0x40 | ||
13 | |||
14 | /* Bits in contol register */ | ||
15 | |||
16 | #define ZEPROM_SK 0x80000000 /* strobe (probably on raising edge) */ | ||
17 | #define ZEPROM_CS 0x40000000 /* Chip Select */ | ||
18 | #define ZEPROM_DI 0x20000000 /* Data Input */ | ||
19 | #define ZEPROM_DO 0x10000000 /* Data Output */ | ||
20 | |||
21 | #define ZEPROM_SIZE 32 /* 32 bytes */ | ||
22 | #define ZEPROM_V1_ESI_OFF 24 /* ESI offset in EEPROM (V1) */ | ||
23 | #define ZEPROM_V2_ESI_OFF 4 /* ESI offset in EEPROM (V2) */ | ||
24 | |||
25 | #define ZEPROM_CMD_LEN 3 /* commands are three bits */ | ||
26 | #define ZEPROM_ADDR_LEN 6 /* addresses are six bits */ | ||
27 | |||
28 | /* Commands (3 bits) */ | ||
29 | |||
30 | #define ZEPROM_CMD_READ 6 | ||
31 | |||
32 | /* No other commands are needed. */ | ||
33 | |||
34 | #endif | ||