/* drivers/atm/zeprom.h - ZeitNet ZN122x EEPROM (NM93C46) declarations */12/* Written 1995,1996 by Werner Almesberger, EPFL LRC */345#ifndef DRIVER_ATM_ZEPROM_H6#define DRIVER_ATM_ZEPROM_H78/* Different versions use different control registers */910#define ZEPROM_V1_REG PCI_VENDOR_ID /* PCI register */11#define ZEPROM_V2_REG 0x401213/* Bits in contol register */1415#define ZEPROM_SK 0x80000000 /* strobe (probably on raising edge) */16#define ZEPROM_CS 0x40000000 /* Chip Select */17#define ZEPROM_DI 0x20000000 /* Data Input */18#define ZEPROM_DO 0x10000000 /* Data Output */1920#define ZEPROM_SIZE 32 /* 32 bytes */21#define ZEPROM_V1_ESI_OFF 24 /* ESI offset in EEPROM (V1) */22#define ZEPROM_V2_ESI_OFF 4 /* ESI offset in EEPROM (V2) */2324#define ZEPROM_CMD_LEN 3 /* commands are three bits */25#define ZEPROM_ADDR_LEN 6 /* addresses are six bits */2627/* Commands (3 bits) */2829#define ZEPROM_CMD_READ 63031/* No other commands are needed. */3233#endif343536