android_kernel_xiaomi_sm8350/drivers/atm/zeprom.h
Linus Torvalds 1da177e4c3 Linux-2.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!
2005-04-16 15:20:36 -07:00

35 lines
944 B
C

/* drivers/atm/zeprom.h - ZeitNet ZN122x EEPROM (NM93C46) declarations */
/* Written 1995,1996 by Werner Almesberger, EPFL LRC */
#ifndef DRIVER_ATM_ZEPROM_H
#define DRIVER_ATM_ZEPROM_H
/* Different versions use different control registers */
#define ZEPROM_V1_REG PCI_VENDOR_ID /* PCI register */
#define ZEPROM_V2_REG 0x40
/* Bits in contol register */
#define ZEPROM_SK 0x80000000 /* strobe (probably on raising edge) */
#define ZEPROM_CS 0x40000000 /* Chip Select */
#define ZEPROM_DI 0x20000000 /* Data Input */
#define ZEPROM_DO 0x10000000 /* Data Output */
#define ZEPROM_SIZE 32 /* 32 bytes */
#define ZEPROM_V1_ESI_OFF 24 /* ESI offset in EEPROM (V1) */
#define ZEPROM_V2_ESI_OFF 4 /* ESI offset in EEPROM (V2) */
#define ZEPROM_CMD_LEN 3 /* commands are three bits */
#define ZEPROM_ADDR_LEN 6 /* addresses are six bits */
/* Commands (3 bits) */
#define ZEPROM_CMD_READ 6
/* No other commands are needed. */
#endif