003 File Manager
Current Path:
/usr/src/sys/dev/ath/ath_hal/ar9002
usr
/
src
/
sys
/
dev
/
ath
/
ath_hal
/
ar9002
/
📁
..
📄
ar9002phy.h
(2.3 KB)
📄
ar9280.c
(12.99 KB)
📄
ar9280.h
(2.09 KB)
📄
ar9280_attach.c
(31.49 KB)
📄
ar9280_olc.c
(12.8 KB)
📄
ar9280_olc.h
(2.43 KB)
📄
ar9280v1.ini
(27.78 KB)
📄
ar9280v2.ini
(52.72 KB)
📄
ar9285.c
(2.24 KB)
📄
ar9285.h
(1.94 KB)
📄
ar9285.ini
(36.9 KB)
📄
ar9285_attach.c
(17.64 KB)
📄
ar9285_btcoex.c
(5.02 KB)
📄
ar9285_cal.c
(9.09 KB)
📄
ar9285_cal.h
(1.66 KB)
📄
ar9285_diversity.c
(6.2 KB)
📄
ar9285_diversity.h
(1.58 KB)
📄
ar9285_phy.c
(3.61 KB)
📄
ar9285_phy.h
(1.8 KB)
📄
ar9285_reset.c
(29.58 KB)
📄
ar9285an.h
(3.96 KB)
📄
ar9285phy.h
(5.32 KB)
📄
ar9285v2.ini
(47.42 KB)
📄
ar9287.c
(11.2 KB)
📄
ar9287.h
(1.91 KB)
📄
ar9287.ini
(37.11 KB)
📄
ar9287_attach.c
(15.38 KB)
📄
ar9287_cal.c
(2.48 KB)
📄
ar9287_cal.h
(1.62 KB)
📄
ar9287_olc.c
(5.42 KB)
📄
ar9287_olc.h
(1.3 KB)
📄
ar9287_reset.c
(19.62 KB)
📄
ar9287_reset.h
(1.12 KB)
📄
ar9287an.h
(1.83 KB)
📄
ar9287phy.h
(1.03 KB)
Editing: ar9285.c
/*- * SPDX-License-Identifier: ISC * * Copyright (c) 2008-2009 Sam Leffler, Errno Consulting * Copyright (c) 2008 Atheros Communications, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * $FreeBSD$ */ #include "opt_ah.h" #include "ah.h" #include "ah_internal.h" #include "ah_eeprom_v14.h" #include "ar9002/ar9280.h" #include "ar9002/ar9285.h" #include "ar5416/ar5416reg.h" #include "ar5416/ar5416phy.h" /* * The ordering of nfarray is thus: * * nfarray[0]: Chain 0 ctl * nfarray[1]: Chain 1 ctl * nfarray[2]: Chain 2 ctl * nfarray[3]: Chain 0 ext * nfarray[4]: Chain 1 ext * nfarray[5]: Chain 2 ext */ static void ar9285GetNoiseFloor(struct ath_hal *ah, int16_t nfarray[]) { int16_t nf; nf = MS(OS_REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); if (nf & 0x100) nf = 0 - ((nf ^ 0x1ff) + 1); HALDEBUG(ah, HAL_DEBUG_NFCAL, "NF calibrated [ctl] [chain 0] is %d\n", nf); nfarray[0] = nf; nf = MS(OS_REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); if (nf & 0x100) nf = 0 - ((nf ^ 0x1ff) + 1); HALDEBUG(ah, HAL_DEBUG_NFCAL, "NF calibrated [ext] [chain 0] is %d\n", nf); nfarray[3] = nf; /* Chain 1 - invalid */ nfarray[1] = 0; nfarray[4] = 0; /* Chain 2 - invalid */ nfarray[2] = 0; nfarray[5] = 0; } HAL_BOOL ar9285RfAttach(struct ath_hal *ah, HAL_STATUS *status) { if (ar9280RfAttach(ah, status) == AH_FALSE) return AH_FALSE; AH_PRIVATE(ah)->ah_getNoiseFloor = ar9285GetNoiseFloor; return AH_TRUE; } static HAL_BOOL ar9285RfProbe(struct ath_hal *ah) { return (AR_SREV_KITE(ah)); } AH_RF(RF9285, ar9285RfProbe, ar9285RfAttach);
Upload File
Create Folder