Files
cubelinux-kernel/drivers/atm/zeprom.h
T
Greg Kroah-Hartman 598cf27219 Linux 6.19.3
Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com>
Tested-by: Peter Schneider <pschneider1968@googlemail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: Brett A C Sheffield <bacs@librecast.net>
Tested-by: Mark Brown <broonie@kernel.org>
Tested-by: Luna Jernberg <droidbittin@gmail.com>
Tested-by: Ronald Warsow <rwarsow@gmx.de>
Tested-by: Justin M. Forbes <jforbes@fedoraproject.org>
Tested-by: Ron Economos <re@w6rz.net>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-02-19 16:33:27 +01:00

36 lines
984 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/* 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 control 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