Path: blob/main/sys/contrib/dev/iwlwifi/iwl-agn-hw.h
48253 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2005-2014 Intel Corporation3*/4/*5* Please use this file (iwl-agn-hw.h) only for hardware-related definitions.6*/78#ifndef __iwl_agn_hw_h__9#define __iwl_agn_hw_h__1011#define IWLAGN_RTC_INST_LOWER_BOUND (0x000000)12#define IWLAGN_RTC_INST_UPPER_BOUND (0x020000)1314#define IWLAGN_RTC_DATA_LOWER_BOUND (0x800000)15#define IWLAGN_RTC_DATA_UPPER_BOUND (0x80C000)1617#define IWLAGN_RTC_INST_SIZE (IWLAGN_RTC_INST_UPPER_BOUND - \18IWLAGN_RTC_INST_LOWER_BOUND)19#define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \20IWLAGN_RTC_DATA_LOWER_BOUND)2122#define IWL60_RTC_INST_LOWER_BOUND (0x000000)23#define IWL60_RTC_INST_UPPER_BOUND (0x040000)24#define IWL60_RTC_DATA_LOWER_BOUND (0x800000)25#define IWL60_RTC_DATA_UPPER_BOUND (0x814000)26#define IWL60_RTC_INST_SIZE \27(IWL60_RTC_INST_UPPER_BOUND - IWL60_RTC_INST_LOWER_BOUND)28#define IWL60_RTC_DATA_SIZE \29(IWL60_RTC_DATA_UPPER_BOUND - IWL60_RTC_DATA_LOWER_BOUND)3031/* RSSI to dBm */32#define IWLAGN_RSSI_OFFSET 443334#define IWLAGN_DEFAULT_TX_RETRY 1535#define IWLAGN_MGMT_DFAULT_RETRY_LIMIT 336#define IWLAGN_RTS_DFAULT_RETRY_LIMIT 6037#define IWLAGN_BAR_DFAULT_RETRY_LIMIT 6038#define IWLAGN_LOW_RETRY_LIMIT 73940/* Limit range of txpower output target to be between these values */41#define IWLAGN_TX_POWER_TARGET_POWER_MIN (0) /* 0 dBm: 1 milliwatt */42#define IWLAGN_TX_POWER_TARGET_POWER_MAX (16) /* 16 dBm */4344/* EEPROM */45#define IWLAGN_EEPROM_IMG_SIZE 20484647/* high blocks contain PAPD data */48#define OTP_HIGH_IMAGE_SIZE_6x00 (6 * 512 * sizeof(u16)) /* 6 KB */49#define OTP_HIGH_IMAGE_SIZE_1000 (0x200 * sizeof(u16)) /* 1024 bytes */50#define OTP_MAX_LL_ITEMS_1000 (3) /* OTP blocks for 1000 */51#define OTP_MAX_LL_ITEMS_6x00 (4) /* OTP blocks for 6x00 */52#define OTP_MAX_LL_ITEMS_6x50 (7) /* OTP blocks for 6x50 */53#define OTP_MAX_LL_ITEMS_2x00 (4) /* OTP blocks for 2x00 */545556#define IWLAGN_NUM_QUEUES 205758#endif /* __iwl_agn_hw_h__ */596061