~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/net/wireless/ath/ath9k/phy.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2008-2009 Atheros Communications Inc.
 
2
 * Copyright (c) 2008-2011 Atheros Communications Inc.
3
3
 *
4
4
 * Permission to use, copy, modify, and/or distribute this software for any
5
5
 * purpose with or without fee is hereby granted, provided that the above
19
19
 
20
20
#define CHANSEL_DIV             15
21
21
#define CHANSEL_2G(_freq)       (((_freq) * 0x10000) / CHANSEL_DIV)
22
 
#define CHANSEL_2G_9485(_freq)  ((((_freq) * 0x10000) - 215) / CHANSEL_DIV)
23
22
#define CHANSEL_5G(_freq)       (((_freq) * 0x8000) / CHANSEL_DIV)
24
23
 
25
24
#define AR_PHY_BASE     0x9800
38
37
#define AR_PHY_CLC_Q0        0x0000ffd0
39
38
#define AR_PHY_CLC_Q0_S      5
40
39
 
41
 
#define REG_WRITE_RF_ARRAY(iniarray, regData, regWr) do {               \
42
 
                int r;                                                  \
43
 
                for (r = 0; r < ((iniarray)->ia_rows); r++) {           \
44
 
                        REG_WRITE(ah, INI_RA((iniarray), r, 0), (regData)[r]); \
45
 
                        DO_DELAY(regWr);                                \
46
 
                }                                                       \
47
 
        } while (0)
48
 
 
49
40
#define ANTSWAP_AB 0x0001
50
41
#define REDUCE_CHAIN_0 0x00000050
51
42
#define REDUCE_CHAIN_1 0x00000051
52
43
#define AR_PHY_CHIP_ID 0x9818
53
44
 
54
 
#define RF_BANK_SETUP(_bank, _iniarray, _col) do {                      \
55
 
                int i;                                                  \
56
 
                for (i = 0; i < (_iniarray)->ia_rows; i++)              \
57
 
                        (_bank)[i] = INI_RA((_iniarray), i, _col);;     \
58
 
        } while (0)
59
 
 
60
45
#define AR_PHY_TIMING11_SPUR_FREQ_SD            0x3FF00000
61
46
#define AR_PHY_TIMING11_SPUR_FREQ_SD_S          20
62
47
 
 
48
#define AR_PHY_PLL_CONTROL 0x16180
 
49
#define AR_PHY_PLL_MODE 0x16184
 
50
 
63
51
#endif