linux/drivers/net/wireless/intersil/p54/eeprom.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * eeprom specific definitions for mac80211 Prism54 drivers
 *
 * Copyright (c) 2006, Michael Wu <[email protected]>
 * Copyright (c) 2007-2009, Christian Lamparter <[email protected]>
 *
 * Based on:
 * - the islsm (softmac prism54) driver, which is:
 *   Copyright 2004-2006 Jean-Baptiste Note <[email protected]>, et al.
 *
 * - LMAC API interface header file for STLC4560 (lmac_longbow.h)
 *   Copyright (C) 2007 Conexant Systems, Inc.
 *
 * - islmvc driver
 *   Copyright (C) 2001 Intersil Americas Inc.
 */

#ifndef EEPROM_H
#define EEPROM_H

/* PDA defines are Copyright (C) 2005 Nokia Corporation (taken from islsm_pda.h) */

struct pda_entry {} __packed;

struct eeprom_pda_wrap {} __packed;

struct p54_iq_autocal_entry {} __packed;

struct pda_iq_autocal_entry {} __packed;

struct pda_channel_output_limit {} __packed;

struct pda_channel_output_limit_point_longbow {} __packed;

struct pda_channel_output_limit_longbow {} __packed;

struct pda_pa_curve_data_sample_rev0 {} __packed;

struct pda_pa_curve_data_sample_rev1 {} __packed;

struct pda_pa_curve_data {} __packed;

struct pda_rssi_cal_ext_entry {} __packed;

struct pda_rssi_cal_entry {} __packed;

struct pda_country {} __packed;

struct pda_antenna_gain {} __packed;

struct pda_custom_wrapper {} __packed;

/*
 * this defines the PDR codes used to build PDAs as defined in document
 * number 553155. The current implementation mirrors version 1.1 of the
 * document and lists only PDRs supported by the ARM platform.
 */

/* common and choice range (0x0000 - 0x0fff) */
#define PDR_END
#define PDR_MANUFACTURING_PART_NUMBER
#define PDR_PDA_VERSION
#define PDR_NIC_SERIAL_NUMBER
#define PDR_NIC_RAM_SIZE
#define PDR_RFMODEM_SUP_RANGE
#define PDR_PRISM_MAC_SUP_RANGE
#define PDR_NIC_ID

#define PDR_MAC_ADDRESS
#define PDR_REGULATORY_DOMAIN_LIST
#define PDR_ALLOWED_CHAN_SET
#define PDR_DEFAULT_CHAN
#define PDR_TEMPERATURE_TYPE

#define PDR_IFR_SETTING
#define PDR_RFR_SETTING
#define PDR_3861_BASELINE_REG_SETTINGS
#define PDR_3861_SHADOW_REG_SETTINGS
#define PDR_3861_IFRF_REG_SETTINGS

#define PDR_3861_CHAN_CALIB_SET_POINTS
#define PDR_3861_CHAN_CALIB_INTEGRATOR

#define PDR_3842_PRISM_II_NIC_CONFIG
#define PDR_PRISM_USB_ID
#define PDR_PRISM_PCI_ID
#define PDR_PRISM_PCI_IF_CONFIG
#define PDR_PRISM_PCI_PM_CONFIG

#define PDR_3861_MF_TEST_CHAN_SET_POINTS
#define PDR_3861_MF_TEST_CHAN_INTEGRATORS

/* ARM range (0x1000 - 0x1fff) */
#define PDR_COUNTRY_INFORMATION
#define PDR_INTERFACE_LIST
#define PDR_HARDWARE_PLATFORM_COMPONENT_ID
#define PDR_OEM_NAME
#define PDR_PRODUCT_NAME
#define PDR_UTF8_OEM_NAME
#define PDR_UTF8_PRODUCT_NAME
#define PDR_COUNTRY_LIST
#define PDR_DEFAULT_COUNTRY

#define PDR_ANTENNA_GAIN

#define PDR_PRISM_INDIGO_PA_CALIBRATION_DATA
#define PDR_RSSI_LINEAR_APPROXIMATION
#define PDR_PRISM_PA_CAL_OUTPUT_POWER_LIMITS
#define PDR_PRISM_PA_CAL_CURVE_DATA
#define PDR_RSSI_LINEAR_APPROXIMATION_DUAL_BAND
#define PDR_PRISM_ZIF_TX_IQ_CALIBRATION
#define PDR_REGULATORY_POWER_LIMITS
#define PDR_RSSI_LINEAR_APPROXIMATION_EXTENDED
#define PDR_RADIATED_TRANSMISSION_CORRECTION
#define PDR_PRISM_TX_IQ_CALIBRATION

/* reserved range (0x2000 - 0x7fff) */

/* customer range (0x8000 - 0xffff) */
#define PDR_BASEBAND_REGISTERS
#define PDR_PER_CHANNEL_BASEBAND_REGISTERS

/* used by our modificated eeprom image */
#define PDR_RSSI_LINEAR_APPROXIMATION_CUSTOM
#define PDR_RSSI_LINEAR_APPROXIMATION_CUSTOMV2
#define PDR_PRISM_PA_CAL_OUTPUT_POWER_LIMITS_CUSTOM
#define PDR_PRISM_PA_CAL_CURVE_DATA_CUSTOM

/* Interface Definitions */
#define PDR_INTERFACE_ROLE_SERVER
#define PDR_INTERFACE_ROLE_CLIENT

/* PDR definitions for default country & country list */
#define PDR_COUNTRY_CERT_CODE
#define PDR_COUNTRY_CERT_CODE_REAL
#define PDR_COUNTRY_CERT_CODE_PSEUDO
#define PDR_COUNTRY_CERT_BAND
#define PDR_COUNTRY_CERT_BAND_2GHZ
#define PDR_COUNTRY_CERT_BAND_5GHZ
#define PDR_COUNTRY_CERT_IODOOR
#define PDR_COUNTRY_CERT_IODOOR_BOTH
#define PDR_COUNTRY_CERT_IODOOR_INDOOR
#define PDR_COUNTRY_CERT_IODOOR_OUTDOOR
#define PDR_COUNTRY_CERT_INDEX

/* Specific LMAC FW/HW variant definitions */
#define PDR_SYNTH_FRONTEND_MASK
#define PDR_SYNTH_FRONTEND_DUETTE3
#define PDR_SYNTH_FRONTEND_DUETTE2
#define PDR_SYNTH_FRONTEND_FRISBEE
#define PDR_SYNTH_FRONTEND_XBOW
#define PDR_SYNTH_FRONTEND_LONGBOW
#define PDR_SYNTH_IQ_CAL_MASK
#define PDR_SYNTH_IQ_CAL_PA_DETECTOR
#define PDR_SYNTH_IQ_CAL_DISABLED
#define PDR_SYNTH_IQ_CAL_ZIF
#define PDR_SYNTH_FAA_SWITCH_MASK
#define PDR_SYNTH_FAA_SWITCH_ENABLED
#define PDR_SYNTH_24_GHZ_MASK
#define PDR_SYNTH_24_GHZ_DISABLED
#define PDR_SYNTH_5_GHZ_MASK
#define PDR_SYNTH_5_GHZ_DISABLED
#define PDR_SYNTH_RX_DIV_MASK
#define PDR_SYNTH_RX_DIV_SUPPORTED
#define PDR_SYNTH_TX_DIV_MASK
#define PDR_SYNTH_TX_DIV_SUPPORTED
#define PDR_SYNTH_ASM_MASK
#define PDR_SYNTH_ASM_XSWON

#endif /* EEPROM_H */