ah_internal.h (204645) | ah_internal.h (217618) |
---|---|
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_internal.h 204645 2010-03-03 17:42:39Z rpaulo $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 217618 2011-01-20 04:57:26Z adrian $ |
18 */ 19#ifndef _ATH_AH_INTERAL_H_ 20#define _ATH_AH_INTERAL_H_ 21/* 22 * Atheros Device Hardware Access Layer (HAL). 23 * 24 * Internal definitions. 25 */ --- 558 unchanged lines hidden (view full) --- 584 */ 585extern HAL_STATUS ath_hal_getcapability(struct ath_hal *ah, 586 HAL_CAPABILITY_TYPE type, uint32_t capability, 587 uint32_t *result); 588extern HAL_BOOL ath_hal_setcapability(struct ath_hal *ah, 589 HAL_CAPABILITY_TYPE type, uint32_t capability, 590 uint32_t setting, HAL_STATUS *status); 591 | 18 */ 19#ifndef _ATH_AH_INTERAL_H_ 20#define _ATH_AH_INTERAL_H_ 21/* 22 * Atheros Device Hardware Access Layer (HAL). 23 * 24 * Internal definitions. 25 */ --- 558 unchanged lines hidden (view full) --- 584 */ 585extern HAL_STATUS ath_hal_getcapability(struct ath_hal *ah, 586 HAL_CAPABILITY_TYPE type, uint32_t capability, 587 uint32_t *result); 588extern HAL_BOOL ath_hal_setcapability(struct ath_hal *ah, 589 HAL_CAPABILITY_TYPE type, uint32_t capability, 590 uint32_t setting, HAL_STATUS *status); 591 |
592/* 593 * Diagnostic interface. This is an open-ended interface that 594 * is opaque to applications. Diagnostic programs use this to 595 * retrieve internal data structures, etc. There is no guarantee 596 * that calling conventions for calls other than HAL_DIAG_REVS 597 * are stable between HAL releases; a diagnostic application must 598 * use the HAL revision information to deal with ABI/API differences. 599 * 600 * NB: do not renumber these, certain codes are publicly used. 601 */ 602enum { 603 HAL_DIAG_REVS = 0, /* MAC/PHY/Radio revs */ 604 HAL_DIAG_EEPROM = 1, /* EEPROM contents */ 605 HAL_DIAG_EEPROM_EXP_11A = 2, /* EEPROM 5112 power exp for 11a */ 606 HAL_DIAG_EEPROM_EXP_11B = 3, /* EEPROM 5112 power exp for 11b */ 607 HAL_DIAG_EEPROM_EXP_11G = 4, /* EEPROM 5112 power exp for 11g */ 608 HAL_DIAG_ANI_CURRENT = 5, /* ANI current channel state */ 609 HAL_DIAG_ANI_OFDM = 6, /* ANI OFDM timing error stats */ 610 HAL_DIAG_ANI_CCK = 7, /* ANI CCK timing error stats */ 611 HAL_DIAG_ANI_STATS = 8, /* ANI statistics */ 612 HAL_DIAG_RFGAIN = 9, /* RfGain GAIN_VALUES */ 613 HAL_DIAG_RFGAIN_CURSTEP = 10, /* RfGain GAIN_OPTIMIZATION_STEP */ 614 HAL_DIAG_PCDAC = 11, /* PCDAC table */ 615 HAL_DIAG_TXRATES = 12, /* Transmit rate table */ 616 HAL_DIAG_REGS = 13, /* Registers */ 617 HAL_DIAG_ANI_CMD = 14, /* ANI issue command (XXX do not change!) */ 618 HAL_DIAG_SETKEY = 15, /* Set keycache backdoor */ 619 HAL_DIAG_RESETKEY = 16, /* Reset keycache backdoor */ 620 HAL_DIAG_EEREAD = 17, /* Read EEPROM word */ 621 HAL_DIAG_EEWRITE = 18, /* Write EEPROM word */ 622 /* 19-26 removed, do not reuse */ 623 HAL_DIAG_RDWRITE = 27, /* Write regulatory domain */ 624 HAL_DIAG_RDREAD = 28, /* Get regulatory domain */ 625 HAL_DIAG_FATALERR = 29, /* Read cached interrupt state */ 626 HAL_DIAG_11NCOMPAT = 30, /* 11n compatibility tweaks */ 627 HAL_DIAG_ANI_PARAMS = 31, /* ANI noise immunity parameters */ 628 HAL_DIAG_CHECK_HANGS = 32, /* check h/w hangs */ 629 HAL_DIAG_SETREGS = 33, /* write registers */ 630}; | 592/* The diagnostic codes used to be internally defined here -adrian */ 593#include "ah_diagcodes.h" |
631 632enum { 633 HAL_BB_HANG_DFS = 0x0001, 634 HAL_BB_HANG_RIFS = 0x0002, 635 HAL_BB_HANG_RX_CLEAR = 0x0004, 636 HAL_BB_HANG_UNKNOWN = 0x0080, 637 638 HAL_MAC_HANG_SIG1 = 0x0100, --- 168 unchanged lines hidden --- | 594 595enum { 596 HAL_BB_HANG_DFS = 0x0001, 597 HAL_BB_HANG_RIFS = 0x0002, 598 HAL_BB_HANG_RX_CLEAR = 0x0004, 599 HAL_BB_HANG_UNKNOWN = 0x0080, 600 601 HAL_MAC_HANG_SIG1 = 0x0100, --- 168 unchanged lines hidden --- |