1*dd1de374Slin wang - Sun Microsystems - Beijing China /* 2*dd1de374Slin wang - Sun Microsystems - Beijing China * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3*dd1de374Slin wang - Sun Microsystems - Beijing China * Use is subject to license terms. 4*dd1de374Slin wang - Sun Microsystems - Beijing China */ 5*dd1de374Slin wang - Sun Microsystems - Beijing China 6*dd1de374Slin wang - Sun Microsystems - Beijing China /* 7*dd1de374Slin wang - Sun Microsystems - Beijing China * Copyright (c) 2008 Atheros Communications Inc. 8*dd1de374Slin wang - Sun Microsystems - Beijing China * 9*dd1de374Slin wang - Sun Microsystems - Beijing China * Permission to use, copy, modify, and/or distribute this software for any 10*dd1de374Slin wang - Sun Microsystems - Beijing China * purpose with or without fee is hereby granted, provided that the above 11*dd1de374Slin wang - Sun Microsystems - Beijing China * copyright notice and this permission notice appear in all copies. 12*dd1de374Slin wang - Sun Microsystems - Beijing China * 13*dd1de374Slin wang - Sun Microsystems - Beijing China * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 14*dd1de374Slin wang - Sun Microsystems - Beijing China * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 15*dd1de374Slin wang - Sun Microsystems - Beijing China * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 16*dd1de374Slin wang - Sun Microsystems - Beijing China * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17*dd1de374Slin wang - Sun Microsystems - Beijing China * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 18*dd1de374Slin wang - Sun Microsystems - Beijing China * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 19*dd1de374Slin wang - Sun Microsystems - Beijing China * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20*dd1de374Slin wang - Sun Microsystems - Beijing China */ 21*dd1de374Slin wang - Sun Microsystems - Beijing China 22*dd1de374Slin wang - Sun Microsystems - Beijing China #ifndef _ARN_REGD_H 23*dd1de374Slin wang - Sun Microsystems - Beijing China #define _ARN_REGD_H 24*dd1de374Slin wang - Sun Microsystems - Beijing China 25*dd1de374Slin wang - Sun Microsystems - Beijing China #ifdef __cplusplus 26*dd1de374Slin wang - Sun Microsystems - Beijing China extern "C" { 27*dd1de374Slin wang - Sun Microsystems - Beijing China #endif 28*dd1de374Slin wang - Sun Microsystems - Beijing China 29*dd1de374Slin wang - Sun Microsystems - Beijing China #include "arn_ath9k.h" 30*dd1de374Slin wang - Sun Microsystems - Beijing China 31*dd1de374Slin wang - Sun Microsystems - Beijing China #define BMLEN 2 32*dd1de374Slin wang - Sun Microsystems - Beijing China #define BMZERO {(uint64_t)0, (uint64_t)0} 33*dd1de374Slin wang - Sun Microsystems - Beijing China 34*dd1de374Slin wang - Sun Microsystems - Beijing China #define BM(_fa, _fb, _fc, _fd, _fe, _ff, _fg, _fh, _fi, _fj, _fk, _fl) \ 35*dd1de374Slin wang - Sun Microsystems - Beijing China {((((_fa >= 0) && (_fa < 64)) ? \ 36*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fa) : (uint64_t)0) | \ 37*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fb >= 0) && (_fb < 64)) ? \ 38*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fb) : (uint64_t)0) | \ 39*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fc >= 0) && (_fc < 64)) ? \ 40*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fc) : (uint64_t)0) | \ 41*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fd >= 0) && (_fd < 64)) ? \ 42*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fd) : (uint64_t)0) | \ 43*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fe >= 0) && (_fe < 64)) ? \ 44*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fe) : (uint64_t)0) | \ 45*dd1de374Slin wang - Sun Microsystems - Beijing China (((_ff >= 0) && (_ff < 64)) ? \ 46*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _ff) : (uint64_t)0) | \ 47*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fg >= 0) && (_fg < 64)) ? \ 48*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fg) : (uint64_t)0) | \ 49*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fh >= 0) && (_fh < 64)) ? \ 50*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fh) : (uint64_t)0) | \ 51*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fi >= 0) && (_fi < 64)) ? \ 52*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fi) : (uint64_t)0) | \ 53*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fj >= 0) && (_fj < 64)) ? \ 54*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fj) : (uint64_t)0) | \ 55*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fk >= 0) && (_fk < 64)) ? \ 56*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fk) : (uint64_t)0) | \ 57*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fl >= 0) && (_fl < 64)) ? \ 58*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << _fl) : (uint64_t)0) | \ 59*dd1de374Slin wang - Sun Microsystems - Beijing China ((((_fa > 63) && (_fa < 128)) ? \ 60*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fa - 64)) : (uint64_t)0) | \ 61*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fb > 63) && (_fb < 128)) ? \ 62*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fb - 64)) : (uint64_t)0) | \ 63*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fc > 63) && (_fc < 128)) ? \ 64*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fc - 64)) : (uint64_t)0) | \ 65*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fd > 63) && (_fd < 128)) ? \ 66*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fd - 64)) : (uint64_t)0) | \ 67*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fe > 63) && (_fe < 128)) ? \ 68*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fe - 64)) : (uint64_t)0) | \ 69*dd1de374Slin wang - Sun Microsystems - Beijing China (((_ff > 63) && (_ff < 128)) ? \ 70*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_ff - 64)) : (uint64_t)0) | \ 71*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fg > 63) && (_fg < 128)) ? \ 72*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fg - 64)) : (uint64_t)0) | \ 73*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fh > 63) && (_fh < 128)) ? \ 74*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fh - 64)) : (uint64_t)0) | \ 75*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fi > 63) && (_fi < 128)) ? \ 76*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fi - 64)) : (uint64_t)0) | \ 77*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fj > 63) && (_fj < 128)) ? \ 78*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fj - 64)) : (uint64_t)0) | \ 79*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fk > 63) && (_fk < 128)) ? \ 80*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fk - 64)) : (uint64_t)0) | \ 81*dd1de374Slin wang - Sun Microsystems - Beijing China (((_fl > 63) && (_fl < 128)) ? \ 82*dd1de374Slin wang - Sun Microsystems - Beijing China (((uint64_t)1) << (_fl - 64)) : (uint64_t)0)))} 83*dd1de374Slin wang - Sun Microsystems - Beijing China 84*dd1de374Slin wang - Sun Microsystems - Beijing China #define DEF_REGDMN FCC1_FCCA 85*dd1de374Slin wang - Sun Microsystems - Beijing China #define DEF_DMN_5 FCC1 86*dd1de374Slin wang - Sun Microsystems - Beijing China #define DEF_DMN_2 FCCA 87*dd1de374Slin wang - Sun Microsystems - Beijing China #define COUNTRY_ERD_FLAG 0x8000 88*dd1de374Slin wang - Sun Microsystems - Beijing China #define WORLDWIDE_ROAMING_FLAG 0x4000 89*dd1de374Slin wang - Sun Microsystems - Beijing China #define SUPER_DOMAIN_MASK 0x0fff 90*dd1de374Slin wang - Sun Microsystems - Beijing China #define COUNTRY_CODE_MASK 0x3fff 91*dd1de374Slin wang - Sun Microsystems - Beijing China #define CF_INTERFERENCE (CHANNEL_CW_INT | CHANNEL_RADAR_INT) 92*dd1de374Slin wang - Sun Microsystems - Beijing China #define CHANNEL_14 (2484) 93*dd1de374Slin wang - Sun Microsystems - Beijing China #define IS_11G_CH14(_ch, _cf) \ 94*dd1de374Slin wang - Sun Microsystems - Beijing China (((_ch) == CHANNEL_14) && ((_cf) == CHANNEL_G)) 95*dd1de374Slin wang - Sun Microsystems - Beijing China 96*dd1de374Slin wang - Sun Microsystems - Beijing China #define NO_PSCAN 0x0ULL 97*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_FCC 0x0000000000000001ULL 98*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_FCC_T 0x0000000000000002ULL 99*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_ETSI 0x0000000000000004ULL 100*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKK1 0x0000000000000008ULL 101*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKK2 0x0000000000000010ULL 102*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA 0x0000000000000020ULL 103*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA_G 0x0000000000000040ULL 104*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_ETSIA 0x0000000000000080ULL 105*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_ETSIB 0x0000000000000100ULL 106*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_ETSIC 0x0000000000000200ULL 107*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_WWR 0x0000000000000400ULL 108*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA1 0x0000000000000800ULL 109*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA1_G 0x0000000000001000ULL 110*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA2 0x0000000000002000ULL 111*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKKA2_G 0x0000000000004000ULL 112*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_MKK3 0x0000000000008000ULL 113*dd1de374Slin wang - Sun Microsystems - Beijing China #define PSCAN_DEFER 0x7FFFFFFFFFFFFFFFULL 114*dd1de374Slin wang - Sun Microsystems - Beijing China #define IS_ECM_CHAN 0x8000000000000000ULL 115*dd1de374Slin wang - Sun Microsystems - Beijing China 116*dd1de374Slin wang - Sun Microsystems - Beijing China #define isWwrSKU(_ah) \ 117*dd1de374Slin wang - Sun Microsystems - Beijing China (((ath9k_regd_get_eepromRD((_ah)) & WORLD_SKU_MASK) == \ 118*dd1de374Slin wang - Sun Microsystems - Beijing China WORLD_SKU_PREFIX) || \ 119*dd1de374Slin wang - Sun Microsystems - Beijing China (ath9k_regd_get_eepromRD(_ah) == WORLD)) 120*dd1de374Slin wang - Sun Microsystems - Beijing China 121*dd1de374Slin wang - Sun Microsystems - Beijing China #define isWwrSKU_NoMidband(_ah) \ 122*dd1de374Slin wang - Sun Microsystems - Beijing China ((ath9k_regd_get_eepromRD((_ah)) == WOR3_WORLD) || \ 123*dd1de374Slin wang - Sun Microsystems - Beijing China (ath9k_regd_get_eepromRD(_ah) == WOR4_WORLD) || \ 124*dd1de374Slin wang - Sun Microsystems - Beijing China (ath9k_regd_get_eepromRD(_ah) == WOR5_ETSIC)) 125*dd1de374Slin wang - Sun Microsystems - Beijing China 126*dd1de374Slin wang - Sun Microsystems - Beijing China #define isUNII1OddChan(ch) \ 127*dd1de374Slin wang - Sun Microsystems - Beijing China ((ch == 5170) || (ch == 5190) || (ch == 5210) || (ch == 5230)) 128*dd1de374Slin wang - Sun Microsystems - Beijing China 129*dd1de374Slin wang - Sun Microsystems - Beijing China #define IS_HT40_MODE(_mode) \ 130*dd1de374Slin wang - Sun Microsystems - Beijing China (((_mode == ATH9K_MODE_11NA_HT40PLUS || \ 131*dd1de374Slin wang - Sun Microsystems - Beijing China _mode == ATH9K_MODE_11NG_HT40PLUS || \ 132*dd1de374Slin wang - Sun Microsystems - Beijing China _mode == ATH9K_MODE_11NA_HT40MINUS || \ 133*dd1de374Slin wang - Sun Microsystems - Beijing China _mode == ATH9K_MODE_11NG_HT40MINUS) ? B_TRUE : B_FALSE)) 134*dd1de374Slin wang - Sun Microsystems - Beijing China 135*dd1de374Slin wang - Sun Microsystems - Beijing China #define CHAN_FLAGS (CHANNEL_ALL|CHANNEL_HALF|CHANNEL_QUARTER) 136*dd1de374Slin wang - Sun Microsystems - Beijing China 137*dd1de374Slin wang - Sun Microsystems - Beijing China #define swap(_a, _b, _size) { \ 138*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t *s = _b; \ 139*dd1de374Slin wang - Sun Microsystems - Beijing China int i = _size; \ 140*dd1de374Slin wang - Sun Microsystems - Beijing China do { \ 141*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t tmp = *_a; \ 142*dd1de374Slin wang - Sun Microsystems - Beijing China *_a++ = *s; \ 143*dd1de374Slin wang - Sun Microsystems - Beijing China *s++ = tmp; \ 144*dd1de374Slin wang - Sun Microsystems - Beijing China } while (--i); \ 145*dd1de374Slin wang - Sun Microsystems - Beijing China _a -= _size; \ 146*dd1de374Slin wang - Sun Microsystems - Beijing China } 147*dd1de374Slin wang - Sun Microsystems - Beijing China 148*dd1de374Slin wang - Sun Microsystems - Beijing China 149*dd1de374Slin wang - Sun Microsystems - Beijing China #define HALF_MAXCHANBW 10 150*dd1de374Slin wang - Sun Microsystems - Beijing China 151*dd1de374Slin wang - Sun Microsystems - Beijing China #define MULTI_DOMAIN_MASK 0xFF00 152*dd1de374Slin wang - Sun Microsystems - Beijing China 153*dd1de374Slin wang - Sun Microsystems - Beijing China #define WORLD_SKU_MASK 0x00F0 154*dd1de374Slin wang - Sun Microsystems - Beijing China #define WORLD_SKU_PREFIX 0x0060 155*dd1de374Slin wang - Sun Microsystems - Beijing China 156*dd1de374Slin wang - Sun Microsystems - Beijing China #define CHANNEL_HALF_BW 10 157*dd1de374Slin wang - Sun Microsystems - Beijing China #define CHANNEL_QUARTER_BW 5 158*dd1de374Slin wang - Sun Microsystems - Beijing China 159*dd1de374Slin wang - Sun Microsystems - Beijing China typedef int ath_hal_cmp_t(const void *, const void *); 160*dd1de374Slin wang - Sun Microsystems - Beijing China 161*dd1de374Slin wang - Sun Microsystems - Beijing China struct reg_dmn_pair_mapping { 162*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t regDmnEnum; 163*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t regDmn5GHz; 164*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t regDmn2GHz; 165*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t flags5GHz; 166*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t flags2GHz; 167*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t pscanMask; 168*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t singleCC; 169*dd1de374Slin wang - Sun Microsystems - Beijing China }; 170*dd1de374Slin wang - Sun Microsystems - Beijing China 171*dd1de374Slin wang - Sun Microsystems - Beijing China struct ccmap { 172*dd1de374Slin wang - Sun Microsystems - Beijing China char isoName[3]; 173*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t countryCode; 174*dd1de374Slin wang - Sun Microsystems - Beijing China }; 175*dd1de374Slin wang - Sun Microsystems - Beijing China 176*dd1de374Slin wang - Sun Microsystems - Beijing China struct country_code_to_enum_rd { 177*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t countryCode; 178*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t regDmnEnum; 179*dd1de374Slin wang - Sun Microsystems - Beijing China const char *isoName; 180*dd1de374Slin wang - Sun Microsystems - Beijing China const char *name; 181*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11g; 182*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11aTurbo; 183*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11gTurbo; 184*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11ng20; 185*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11ng40; 186*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11na20; 187*dd1de374Slin wang - Sun Microsystems - Beijing China boolean_t allow11na40; 188*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t outdoorChanStart; 189*dd1de374Slin wang - Sun Microsystems - Beijing China }; 190*dd1de374Slin wang - Sun Microsystems - Beijing China 191*dd1de374Slin wang - Sun Microsystems - Beijing China struct RegDmnFreqBand { 192*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t lowChannel; 193*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t highChannel; 194*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t powerDfs; 195*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t antennaMax; 196*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t channelBW; 197*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t channelSep; 198*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t useDfs; 199*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t usePassScan; 200*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t regClassId; 201*dd1de374Slin wang - Sun Microsystems - Beijing China }; 202*dd1de374Slin wang - Sun Microsystems - Beijing China 203*dd1de374Slin wang - Sun Microsystems - Beijing China struct regDomain { 204*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t regDmnEnum; 205*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t conformanceTestLimit; 206*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t dfsMask; 207*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t pscan; 208*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t flags; 209*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11a[BMLEN]; 210*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11a_turbo[BMLEN]; 211*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11a_dyn_turbo[BMLEN]; 212*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11b[BMLEN]; 213*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11g[BMLEN]; 214*dd1de374Slin wang - Sun Microsystems - Beijing China uint64_t chan11g_turbo[BMLEN]; 215*dd1de374Slin wang - Sun Microsystems - Beijing China }; 216*dd1de374Slin wang - Sun Microsystems - Beijing China 217*dd1de374Slin wang - Sun Microsystems - Beijing China struct cmode { 218*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t mode; 219*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t flags; 220*dd1de374Slin wang - Sun Microsystems - Beijing China }; 221*dd1de374Slin wang - Sun Microsystems - Beijing China 222*dd1de374Slin wang - Sun Microsystems - Beijing China #define YES B_TRUE 223*dd1de374Slin wang - Sun Microsystems - Beijing China #define NO B_FALSE 224*dd1de374Slin wang - Sun Microsystems - Beijing China 225*dd1de374Slin wang - Sun Microsystems - Beijing China struct japan_bandcheck { 226*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t freqbandbit; 227*dd1de374Slin wang - Sun Microsystems - Beijing China uint32_t eepromflagtocheck; 228*dd1de374Slin wang - Sun Microsystems - Beijing China }; 229*dd1de374Slin wang - Sun Microsystems - Beijing China 230*dd1de374Slin wang - Sun Microsystems - Beijing China struct common_mode_power { 231*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t lchan; 232*dd1de374Slin wang - Sun Microsystems - Beijing China uint16_t hchan; 233*dd1de374Slin wang - Sun Microsystems - Beijing China uint8_t pwrlvl; 234*dd1de374Slin wang - Sun Microsystems - Beijing China }; 235*dd1de374Slin wang - Sun Microsystems - Beijing China 236*dd1de374Slin wang - Sun Microsystems - Beijing China enum CountryCode { 237*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ALBANIA = 8, 238*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ALGERIA = 12, 239*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ARGENTINA = 32, 240*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ARMENIA = 51, 241*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_AUSTRALIA = 36, 242*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_AUSTRIA = 40, 243*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_AZERBAIJAN = 31, 244*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BAHRAIN = 48, 245*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BELARUS = 112, 246*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BELGIUM = 56, 247*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BELIZE = 84, 248*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BOLIVIA = 68, 249*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BOSNIA_HERZ = 70, 250*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BRAZIL = 76, 251*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BRUNEI_DARUSSALAM = 96, 252*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BULGARIA = 100, 253*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CANADA = 124, 254*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CHILE = 152, 255*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CHINA = 156, 256*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_COLOMBIA = 170, 257*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_COSTA_RICA = 188, 258*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CROATIA = 191, 259*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CYPRUS = 196, 260*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CZECH = 203, 261*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_DENMARK = 208, 262*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_DOMINICAN_REPUBLIC = 214, 263*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ECUADOR = 218, 264*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_EGYPT = 818, 265*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_EL_SALVADOR = 222, 266*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ESTONIA = 233, 267*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_FAEROE_ISLANDS = 234, 268*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_FINLAND = 246, 269*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_FRANCE = 250, 270*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_GEORGIA = 268, 271*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_GERMANY = 276, 272*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_GREECE = 300, 273*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_GUATEMALA = 320, 274*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_HONDURAS = 340, 275*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_HONG_KONG = 344, 276*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_HUNGARY = 348, 277*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ICELAND = 352, 278*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_INDIA = 356, 279*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_INDONESIA = 360, 280*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_IRAN = 364, 281*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_IRAQ = 368, 282*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_IRELAND = 372, 283*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ISRAEL = 376, 284*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ITALY = 380, 285*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAMAICA = 388, 286*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN = 392, 287*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JORDAN = 400, 288*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KAZAKHSTAN = 398, 289*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KENYA = 404, 290*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KOREA_NORTH = 408, 291*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KOREA_ROC = 410, 292*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KOREA_ROC2 = 411, 293*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KOREA_ROC3 = 412, 294*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_KUWAIT = 414, 295*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LATVIA = 428, 296*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LEBANON = 422, 297*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LIBYA = 434, 298*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LIECHTENSTEIN = 438, 299*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LITHUANIA = 440, 300*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_LUXEMBOURG = 442, 301*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MACAU = 446, 302*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MACEDONIA = 807, 303*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MALAYSIA = 458, 304*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MALTA = 470, 305*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MEXICO = 484, 306*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MONACO = 492, 307*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_MOROCCO = 504, 308*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NEPAL = 524, 309*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NETHERLANDS = 528, 310*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NETHERLANDS_ANTILLES = 530, 311*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NEW_ZEALAND = 554, 312*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NICARAGUA = 558, 313*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_NORWAY = 578, 314*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_OMAN = 512, 315*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PAKISTAN = 586, 316*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PANAMA = 591, 317*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PAPUA_NEW_GUINEA = 598, 318*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PARAGUAY = 600, 319*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PERU = 604, 320*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PHILIPPINES = 608, 321*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_POLAND = 616, 322*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PORTUGAL = 620, 323*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_PUERTO_RICO = 630, 324*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_QATAR = 634, 325*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ROMANIA = 642, 326*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_RUSSIA = 643, 327*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SAUDI_ARABIA = 682, 328*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SERBIA_MONTENEGRO = 891, 329*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SINGAPORE = 702, 330*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SLOVAKIA = 703, 331*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SLOVENIA = 705, 332*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SOUTH_AFRICA = 710, 333*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SPAIN = 724, 334*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SRI_LANKA = 144, 335*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SWEDEN = 752, 336*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SWITZERLAND = 756, 337*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_SYRIA = 760, 338*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_TAIWAN = 158, 339*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_THAILAND = 764, 340*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_TRINIDAD_Y_TOBAGO = 780, 341*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_TUNISIA = 788, 342*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_TURKEY = 792, 343*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UAE = 784, 344*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UKRAINE = 804, 345*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UNITED_KINGDOM = 826, 346*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UNITED_STATES = 840, 347*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UNITED_STATES_FCC49 = 842, 348*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_URUGUAY = 858, 349*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_UZBEKISTAN = 860, 350*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_VENEZUELA = 862, 351*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_VIET_NAM = 704, 352*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_YEMEN = 887, 353*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_ZIMBABWE = 716, 354*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN1 = 393, 355*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN2 = 394, 356*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN3 = 395, 357*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN4 = 396, 358*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN5 = 397, 359*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN6 = 4006, 360*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN7 = 4007, 361*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN8 = 4008, 362*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN9 = 4009, 363*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN10 = 4010, 364*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN11 = 4011, 365*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN12 = 4012, 366*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN13 = 4013, 367*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN14 = 4014, 368*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN15 = 4015, 369*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN16 = 4016, 370*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN17 = 4017, 371*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN18 = 4018, 372*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN19 = 4019, 373*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN20 = 4020, 374*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN21 = 4021, 375*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN22 = 4022, 376*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN23 = 4023, 377*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN24 = 4024, 378*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN25 = 4025, 379*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN26 = 4026, 380*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN27 = 4027, 381*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN28 = 4028, 382*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN29 = 4029, 383*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN30 = 4030, 384*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN31 = 4031, 385*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN32 = 4032, 386*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN33 = 4033, 387*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN34 = 4034, 388*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN35 = 4035, 389*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN36 = 4036, 390*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN37 = 4037, 391*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN38 = 4038, 392*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN39 = 4039, 393*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN40 = 4040, 394*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN41 = 4041, 395*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN42 = 4042, 396*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN43 = 4043, 397*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN44 = 4044, 398*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN45 = 4045, 399*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN46 = 4046, 400*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN47 = 4047, 401*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN48 = 4048, 402*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN49 = 4049, 403*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN50 = 4050, 404*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN51 = 4051, 405*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN52 = 4052, 406*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN53 = 4053, 407*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN54 = 4054, 408*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN55 = 4055, 409*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN56 = 4056, 410*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN57 = 4057, 411*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN58 = 4058, 412*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_JAPAN59 = 4059, 413*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_AUSTRALIA2 = 5000, 414*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_CANADA2 = 5001, 415*dd1de374Slin wang - Sun Microsystems - Beijing China CTRY_BELGIUM2 = 5002 416*dd1de374Slin wang - Sun Microsystems - Beijing China }; 417*dd1de374Slin wang - Sun Microsystems - Beijing China 418*dd1de374Slin wang - Sun Microsystems - Beijing China void ath9k_regd_get_current_country(struct ath_hal *ah, 419*dd1de374Slin wang - Sun Microsystems - Beijing China struct ath9k_country_entry *ctry); 420*dd1de374Slin wang - Sun Microsystems - Beijing China 421*dd1de374Slin wang - Sun Microsystems - Beijing China #ifdef __cplusplus 422*dd1de374Slin wang - Sun Microsystems - Beijing China } 423*dd1de374Slin wang - Sun Microsystems - Beijing China #endif 424*dd1de374Slin wang - Sun Microsystems - Beijing China 425*dd1de374Slin wang - Sun Microsystems - Beijing China #endif /* _ARN_REGD_H */ 426