Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
0002 /*
0003  * Copyright (C) 2005-2014 Intel Corporation
0004  */
0005 /*
0006  * Please use this file (iwl-agn-hw.h) only for hardware-related definitions.
0007  */
0008 
0009 #ifndef __iwl_agn_hw_h__
0010 #define __iwl_agn_hw_h__
0011 
0012 #define IWLAGN_RTC_INST_LOWER_BOUND     (0x000000)
0013 #define IWLAGN_RTC_INST_UPPER_BOUND     (0x020000)
0014 
0015 #define IWLAGN_RTC_DATA_LOWER_BOUND     (0x800000)
0016 #define IWLAGN_RTC_DATA_UPPER_BOUND     (0x80C000)
0017 
0018 #define IWLAGN_RTC_INST_SIZE (IWLAGN_RTC_INST_UPPER_BOUND - \
0019                 IWLAGN_RTC_INST_LOWER_BOUND)
0020 #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \
0021                 IWLAGN_RTC_DATA_LOWER_BOUND)
0022 
0023 #define IWL60_RTC_INST_LOWER_BOUND      (0x000000)
0024 #define IWL60_RTC_INST_UPPER_BOUND      (0x040000)
0025 #define IWL60_RTC_DATA_LOWER_BOUND      (0x800000)
0026 #define IWL60_RTC_DATA_UPPER_BOUND      (0x814000)
0027 #define IWL60_RTC_INST_SIZE \
0028     (IWL60_RTC_INST_UPPER_BOUND - IWL60_RTC_INST_LOWER_BOUND)
0029 #define IWL60_RTC_DATA_SIZE \
0030     (IWL60_RTC_DATA_UPPER_BOUND - IWL60_RTC_DATA_LOWER_BOUND)
0031 
0032 /* RSSI to dBm */
0033 #define IWLAGN_RSSI_OFFSET  44
0034 
0035 #define IWLAGN_DEFAULT_TX_RETRY         15
0036 #define IWLAGN_MGMT_DFAULT_RETRY_LIMIT      3
0037 #define IWLAGN_RTS_DFAULT_RETRY_LIMIT       60
0038 #define IWLAGN_BAR_DFAULT_RETRY_LIMIT       60
0039 #define IWLAGN_LOW_RETRY_LIMIT          7
0040 
0041 /* Limit range of txpower output target to be between these values */
0042 #define IWLAGN_TX_POWER_TARGET_POWER_MIN    (0) /* 0 dBm: 1 milliwatt */
0043 #define IWLAGN_TX_POWER_TARGET_POWER_MAX    (16)    /* 16 dBm */
0044 
0045 /* EEPROM */
0046 #define IWLAGN_EEPROM_IMG_SIZE      2048
0047 
0048 /* high blocks contain PAPD data */
0049 #define OTP_HIGH_IMAGE_SIZE_6x00        (6 * 512 * sizeof(u16)) /* 6 KB */
0050 #define OTP_HIGH_IMAGE_SIZE_1000        (0x200 * sizeof(u16)) /* 1024 bytes */
0051 #define OTP_MAX_LL_ITEMS_1000       (3) /* OTP blocks for 1000 */
0052 #define OTP_MAX_LL_ITEMS_6x00       (4) /* OTP blocks for 6x00 */
0053 #define OTP_MAX_LL_ITEMS_6x50       (7) /* OTP blocks for 6x50 */
0054 #define OTP_MAX_LL_ITEMS_2x00       (4) /* OTP blocks for 2x00 */
0055 
0056 
0057 #define IWLAGN_NUM_QUEUES       20
0058 
0059 #endif /* __iwl_agn_hw_h__ */