ah.c (191022) | ah.c (192396) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah.c 191022 2009-04-13 21:01:08Z sam $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah.c 192396 2009-05-19 17:30:13Z sam $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5416/ar5416reg.h" /* NB: includes ar5212reg.h */ --- 469 unchanged lines hidden (view full) --- 495 *result = pCap->halTxChainMask; 496 return HAL_OK; 497 case HAL_CAP_RX_CHAINMASK: /* mask of RX chains supported */ 498 *result = pCap->halRxChainMask; 499 return HAL_OK; 500 case HAL_CAP_RXTSTAMP_PREC: /* rx desc tstamp precision (bits) */ 501 *result = pCap->halTstampPrecision; 502 return HAL_OK; | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5416/ar5416reg.h" /* NB: includes ar5212reg.h */ --- 469 unchanged lines hidden (view full) --- 495 *result = pCap->halTxChainMask; 496 return HAL_OK; 497 case HAL_CAP_RX_CHAINMASK: /* mask of RX chains supported */ 498 *result = pCap->halRxChainMask; 499 return HAL_OK; 500 case HAL_CAP_RXTSTAMP_PREC: /* rx desc tstamp precision (bits) */ 501 *result = pCap->halTstampPrecision; 502 return HAL_OK; |
503 case HAL_CAP_INTRMASK: /* mask of supported interrupts */ 504 *result = pCap->halIntrMask; 505 return HAL_OK; |
|
503 default: 504 return HAL_EINVAL; 505 } 506} 507 508HAL_BOOL 509ath_hal_setcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, 510 uint32_t capability, uint32_t setting, HAL_STATUS *status) --- 366 unchanged lines hidden --- | 506 default: 507 return HAL_EINVAL; 508 } 509} 510 511HAL_BOOL 512ath_hal_setcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, 513 uint32_t capability, uint32_t setting, HAL_STATUS *status) --- 366 unchanged lines hidden --- |