~ubuntu-branches/ubuntu/saucy/linux-ti-omap4/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Stefan Bader, Upstream Kernel Changes
  • Date: 2012-08-15 17:17:43 UTC
  • Revision ID: package-import@ubuntu.com-20120815171743-h5wnuf51xe7pvdid
Tags: 3.5.0-207.13
[ Paolo Pisati ]

* Start new release

[ Stefan Bader ]

* (config) Enable getabis to use local package copies

[ Upstream Kernel Changes ]

* fixup: gargabe collect iva_seq[0|1] init
* [Config] enable all SND_OMAP_SOC_*s
* fixup: cm2xxx_3xxx.o is needed for omap2_cm_read|write_reg
* fixup: add some snd_soc_dai* helper functions
* fixup: s/snd_soc_dpcm_params/snd_soc_dpcm/g
* fixup: typo, no_host_mode and useless SDP4430 init
* fixup: enable again aess hwmod

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
         CHANNEL_HT40MINUS)
349
349
 
350
350
#define MAX_RTT_TABLE_ENTRY     6
351
 
#define RTT_HIST_MAX            3
352
 
struct ath9k_rtt_hist {
353
 
        u32 table[AR9300_MAX_CHAINS][RTT_HIST_MAX][MAX_RTT_TABLE_ENTRY];
354
 
        u8 num_readings;
355
 
};
356
 
 
357
351
#define MAX_IQCAL_MEASUREMENT   8
358
352
#define MAX_CL_TAB_ENTRY        16
359
353
 
363
357
        int32_t CalValid;
364
358
        int8_t iCoff;
365
359
        int8_t qCoff;
 
360
        bool rtt_done;
366
361
        bool paprd_done;
367
362
        bool nfcal_pending;
368
363
        bool nfcal_interference;
373
368
        u32 num_measures[AR9300_MAX_CHAINS];
374
369
        int tx_corr_coeff[MAX_IQCAL_MEASUREMENT][AR9300_MAX_CHAINS];
375
370
        u32 tx_clcal[AR9300_MAX_CHAINS][MAX_CL_TAB_ENTRY];
 
371
        u32 rtt_table[AR9300_MAX_CHAINS][MAX_RTT_TABLE_ENTRY];
376
372
        struct ath9k_nfcal_hist nfCalHist[NUM_NF_READINGS];
377
 
        struct ath9k_rtt_hist rtt_hist;
378
373
};
379
374
 
380
375
struct ath9k_channel {
708
703
        struct ar5416Stats stats;
709
704
        struct ath9k_tx_queue_info txq[ATH9K_NUM_TX_QUEUES];
710
705
 
711
 
        int16_t curchan_rad_index;
712
706
        enum ath9k_int imask;
713
707
        u32 imrs2_reg;
714
708
        u32 txok_interrupt_mask;
762
756
 
763
757
        u32 sta_id1_defaults;
764
758
        u32 misc_mode;
765
 
        enum {
766
 
                AUTO_32KHZ,
767
 
                USE_32KHZ,
768
 
                DONT_USE_32KHZ,
769
 
        } enable_32kHz_clock;
770
759
 
771
760
        /* Private to hardware code */
772
761
        struct ath_hw_private_ops private_ops;
783
772
        u32 *analogBank7Data;
784
773
        u32 *bank6Temp;
785
774
 
786
 
        u8 txpower_limit;
787
775
        int coverage_class;
788
776
        u32 slottime;
789
777
        u32 globaltxtimeout;
848
836
        struct ath_gen_timer_table hw_gen_timers;
849
837
 
850
838
        struct ar9003_txs *ts_ring;
851
 
        void *ts_start;
852
839
        u32 ts_paddr_start;
853
840
        u32 ts_paddr_end;
854
841
        u16 ts_tail;
915
902
}
916
903
 
917
904
/* Initialization, Detach, Reset */
918
 
const char *ath9k_hw_probe(u16 vendorid, u16 devid);
919
905
void ath9k_hw_deinit(struct ath_hw *ah);
920
906
int ath9k_hw_init(struct ath_hw *ah);
921
907
int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
932
918
void ath9k_hw_setantenna(struct ath_hw *ah, u32 antenna);
933
919
 
934
920
/* General Operation */
 
921
void ath9k_hw_synth_delay(struct ath_hw *ah, struct ath9k_channel *chan,
 
922
                          int hw_delay);
935
923
bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout);
936
924
void ath9k_hw_write_array(struct ath_hw *ah, struct ar5416IniArray *array,
937
925
                          int column, unsigned int *writecnt);
965
953
 
966
954
bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode);
967
955
 
 
956
#ifdef CONFIG_ATH9K_DEBUGFS
 
957
void ath9k_debug_sync_cause(struct ath_common *common, u32 sync_cause);
 
958
#else
 
959
static inline void ath9k_debug_sync_cause(struct ath_common *common,
 
960
                                          u32 sync_cause) {}
 
961
#endif
 
962
 
968
963
/* Generic hw timer primitives */
969
964
struct ath_gen_timer *ath_gen_timer_alloc(struct ath_hw *ah,
970
965
                                          void (*trigger)(void *),
1012
1007
int ar9003_paprd_setup_gain_table(struct ath_hw *ah, int chain);
1013
1008
int ar9003_paprd_init_table(struct ath_hw *ah);
1014
1009
bool ar9003_paprd_is_done(struct ath_hw *ah);
1015
 
void ar9003_hw_set_paprd_txdesc(struct ath_hw *ah, void *ds, u8 chains);
1016
1010
 
1017
1011
/* Hardware family op attach helpers */
1018
1012
void ar5008_hw_attach_phy_ops(struct ath_hw *ah);