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 220324 2011-04-04 14:52:31Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24#include "ah_eeprom.h" /* for 5ghz fast clock flag */ 25 --- 585 unchanged lines hidden (view full) --- 611 return HAL_OK; 612 default: 613 return HAL_ENOTSUPP; 614 } 615 case HAL_CAP_SPLIT_4KB_TRANS: /* hardware handles descriptors straddling 4k page boundary */ 616 return pCap->hal4kbSplitTransSupport ? HAL_OK : HAL_ENOTSUPP; 617 case HAL_CAP_HAS_PSPOLL: /* hardware has ps-poll support */ 618 return pCap->halHasPsPollSupport ? HAL_OK : HAL_ENOTSUPP; |
619 case HAL_CAP_RXDESC_SELFLINK: /* hardware supports self-linked final RX descriptors correctly */ 620 return pCap->halHasRxSelfLinkedTail ? HAL_OK : HAL_ENOTSUPP; |
621 default: 622 return HAL_EINVAL; 623 } 624} 625 626HAL_BOOL 627ath_hal_setcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type, 628 uint32_t capability, uint32_t setting, HAL_STATUS *status) --- 483 unchanged lines hidden --- |