1*76bd547bSAdrian Chadd /* 2*76bd547bSAdrian Chadd * Copyright (c) 2013 Qualcomm Atheros, Inc. 3*76bd547bSAdrian Chadd * 4*76bd547bSAdrian Chadd * Permission to use, copy, modify, and/or distribute this software for any 5*76bd547bSAdrian Chadd * purpose with or without fee is hereby granted, provided that the above 6*76bd547bSAdrian Chadd * copyright notice and this permission notice appear in all copies. 7*76bd547bSAdrian Chadd * 8*76bd547bSAdrian Chadd * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 9*76bd547bSAdrian Chadd * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10*76bd547bSAdrian Chadd * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 11*76bd547bSAdrian Chadd * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12*76bd547bSAdrian Chadd * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 13*76bd547bSAdrian Chadd * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14*76bd547bSAdrian Chadd * PERFORMANCE OF THIS SOFTWARE. 15*76bd547bSAdrian Chadd */ 16*76bd547bSAdrian Chadd 17*76bd547bSAdrian Chadd #ifndef _ATH_AR9300_RADAR_H_ 18*76bd547bSAdrian Chadd #define _ATH_AR9300_RADAR_H_ 19*76bd547bSAdrian Chadd 20*76bd547bSAdrian Chadd #define HAL_RADAR_SMASK 0x0000FFFF /* Sequence number mask */ 21*76bd547bSAdrian Chadd #define HAL_RADAR_SSHIFT 16 /* Shift for Reader seq # stored in upper 22*76bd547bSAdrian Chadd 16 bits, writer's is lower 16 bits */ 23*76bd547bSAdrian Chadd #define HAL_RADAR_IMASK 0x0000FFFF /* Index number mask */ 24*76bd547bSAdrian Chadd #define HAL_RADAR_ISHIFT 16 /* Shift for index stored in upper 16 bits 25*76bd547bSAdrian Chadd of reader reset value */ 26*76bd547bSAdrian Chadd #define HAL_RADAR_FIRPWR -45 27*76bd547bSAdrian Chadd #define HAL_RADAR_RRSSI 14 28*76bd547bSAdrian Chadd #define HAL_RADAR_HEIGHT 20 29*76bd547bSAdrian Chadd #define HAL_RADAR_PRSSI 24 30*76bd547bSAdrian Chadd #define HAL_RADAR_INBAND 6 31*76bd547bSAdrian Chadd 32*76bd547bSAdrian Chadd #define HAL_RADAR_TSMASK 0x7FFF /* Mask for time stamp from descriptor */ 33*76bd547bSAdrian Chadd #define HAL_RADAR_TSSHIFT 15 /* Shift for time stamp from descriptor */ 34*76bd547bSAdrian Chadd 35*76bd547bSAdrian Chadd #define HAL_AR_RADAR_RSSI_THR 5 /* in dB */ 36*76bd547bSAdrian Chadd #define HAL_AR_RADAR_RESET_INT 1 /* in secs */ 37*76bd547bSAdrian Chadd #define HAL_AR_RADAR_MAX_HISTORY 500 38*76bd547bSAdrian Chadd #define HAL_AR_REGION_WIDTH 128 39*76bd547bSAdrian Chadd #define HAL_AR_RSSI_THRESH_STRONG_PKTS 17 /* in dB */ 40*76bd547bSAdrian Chadd #define HAL_AR_RSSI_DOUBLE_THRESHOLD 15 /* in dB */ 41*76bd547bSAdrian Chadd #define HAL_AR_MAX_NUM_ACK_REGIONS 9 42*76bd547bSAdrian Chadd #define HAL_AR_ACK_DETECT_PAR_THRESH 20 43*76bd547bSAdrian Chadd #define HAL_AR_PKT_COUNT_THRESH 20 44*76bd547bSAdrian Chadd 45*76bd547bSAdrian Chadd #endif 46