/* SPDX-License-Identifier: GPL-2.0 */ /****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * ******************************************************************************/ #ifndef __RTW_EEPROM_H__ #define __RTW_EEPROM_H__ #define RTL8712_EEPROM_ID … /* define EEPROM_MAX_SIZE 256 */ #define HWSET_MAX_SIZE_128 … #define HWSET_MAX_SIZE_256 … #define HWSET_MAX_SIZE_512 … #define EEPROM_MAX_SIZE … #define CLOCK_RATE … /* EEPROM opcodes */ #define EEPROM_READ_OPCODE … #define EEPROM_WRITE_OPCODE … #define EEPROM_ERASE_OPCODE … #define EEPROM_EWEN_OPCODE … #define EEPROM_EWDS_OPCODE … /* Country codes */ #define USA … #define EUROPE … #define JAPAN … #define eeprom_cis0_sz … #define eeprom_cis1_sz … /* */ /* Customer ID, note that: */ /* This variable is initiailzed through EEPROM or registry, */ /* however, its definition may be different with that in EEPROM for */ /* EEPROM size consideration. So, we have to perform proper translation between them. */ /* Besides, CustomerID of registry has precedence of that of EEPROM. */ /* defined below. 060703, by rcnjko. */ /* */ enum { … }; struct eeprom_priv { … }; #endif /* __RTL871X_EEPROM_H__ */