ah_internal.h (185380) | ah_internal.h (185406) |
---|---|
1/* 2 * Copyright (c) 2002-2008 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 * --- 69 unchanged lines hidden (view full) --- 78 HAL_TP_SCALE_MIN = 4, /* min, but still on */ 79} HAL_TP_SCALE; 80 81typedef enum { 82 HAL_CAP_RADAR = 0, /* Radar capability */ 83 HAL_CAP_AR = 1, /* AR capability */ 84} HAL_PHYDIAG_CAPS; 85 | 1/* 2 * Copyright (c) 2002-2008 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 * --- 69 unchanged lines hidden (view full) --- 78 HAL_TP_SCALE_MIN = 4, /* min, but still on */ 79} HAL_TP_SCALE; 80 81typedef enum { 82 HAL_CAP_RADAR = 0, /* Radar capability */ 83 HAL_CAP_AR = 1, /* AR capability */ 84} HAL_PHYDIAG_CAPS; 85 |
86/* 87 * Each chip or class of chips registers to offer support. 88 */ 89struct ath_hal_chip { 90 const char *(*probe)(uint16_t vendorid, uint16_t devid); 91 struct ath_hal *(*attach)(uint16_t devid, HAL_SOFTC, 92 HAL_BUS_TAG, HAL_BUS_HANDLE, HAL_STATUS *error); 93}; 94#ifndef AH_CHIP 95#define AH_CHIP(name, _probe, _attach) \ 96static struct ath_hal_chip name##_chip = { \ 97 .probe = _probe, \ 98 .attach = _attach \ 99}; \ 100OS_DATA_SET(ah_chips, name##_chip) 101#endif |
|
86 87/* | 102 103/* |
104 * Each RF backend registers to offer support; this is mostly 105 * used by multi-chip 5212 solutions. Single-chip solutions 106 * have a fixed idea about which RF to use. 107 */ 108struct ath_hal_rf { 109 HAL_BOOL (*probe)(struct ath_hal *ah); 110 HAL_BOOL (*attach)(struct ath_hal *ah, HAL_STATUS *ecode); 111}; 112#ifndef AH_RF 113#define AH_RF(name, _probe, _attach) \ 114static struct ath_hal_rf name##_rf = { \ 115 .probe = _probe, \ 116 .attach = _attach \ 117}; \ 118OS_DATA_SET(ah_rfs, name##_rf) 119#endif 120 121struct ath_hal_rf *ath_hal_rfprobe(struct ath_hal *ah, HAL_STATUS *ecode); 122 123/* |
|
88 * Internal form of a HAL_CHANNEL. Note that the structure 89 * must be defined such that you can cast references to a 90 * HAL_CHANNEL so don't shuffle the first two members. 91 */ 92typedef struct { 93 uint32_t channelFlags; 94 uint16_t channel; /* NB: must be first for casting */ 95 uint8_t privFlags; --- 669 unchanged lines hidden --- | 124 * Internal form of a HAL_CHANNEL. Note that the structure 125 * must be defined such that you can cast references to a 126 * HAL_CHANNEL so don't shuffle the first two members. 127 */ 128typedef struct { 129 uint32_t channelFlags; 130 uint16_t channel; /* NB: must be first for casting */ 131 uint8_t privFlags; --- 669 unchanged lines hidden --- |