1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 ******************************************************************************/
17 #ifndef __HALHWOUTSRC_H__
18 #define __HALHWOUTSRC_H__
21 /* CCK Rates, TxHT = 0 */
22 #define DESC92C_RATE1M 0x00
23 #define DESC92C_RATE2M 0x01
24 #define DESC92C_RATE5_5M 0x02
25 #define DESC92C_RATE11M 0x03
27 /* OFDM Rates, TxHT = 0 */
28 #define DESC92C_RATE6M 0x04
29 #define DESC92C_RATE9M 0x05
30 #define DESC92C_RATE12M 0x06
31 #define DESC92C_RATE18M 0x07
32 #define DESC92C_RATE24M 0x08
33 #define DESC92C_RATE36M 0x09
34 #define DESC92C_RATE48M 0x0a
35 #define DESC92C_RATE54M 0x0b
37 /* MCS Rates, TxHT = 1 */
38 #define DESC92C_RATEMCS0 0x0c
39 #define DESC92C_RATEMCS1 0x0d
40 #define DESC92C_RATEMCS2 0x0e
41 #define DESC92C_RATEMCS3 0x0f
42 #define DESC92C_RATEMCS4 0x10
43 #define DESC92C_RATEMCS5 0x11
44 #define DESC92C_RATEMCS6 0x12
45 #define DESC92C_RATEMCS7 0x13
46 #define DESC92C_RATEMCS8 0x14
47 #define DESC92C_RATEMCS9 0x15
48 #define DESC92C_RATEMCS10 0x16
49 #define DESC92C_RATEMCS11 0x17
50 #define DESC92C_RATEMCS12 0x18
51 #define DESC92C_RATEMCS13 0x19
52 #define DESC92C_RATEMCS14 0x1a
53 #define DESC92C_RATEMCS15 0x1b
54 #define DESC92C_RATEMCS15_SG 0x1c
55 #define DESC92C_RATEMCS32 0x20
57 /* structure and define */
59 struct phy_rx_agc_info {
60 #ifdef __LITTLE_ENDIAN
67 struct phy_status_rpt {
68 struct phy_rx_agc_info path_agc[RF_PATH_MAX];
70 u8 cck_sig_qual_ofdm_pwdb_all;
71 u8 cck_agc_rpt_ofdm_cfosho_a;
72 u8 cck_rpt_b_ofdm_cfosho_b;
73 u8 rsvd_1;/* ch_corr_msb; */
74 u8 noise_power_db_msb;
79 u8 noise_power_db_lsb;
82 u8 stream_target_csi[2];
86 #ifdef __LITTLE_ENDIAN
87 u8 antsel_rx_keep_2:1; /* ex_intf_flg:1; */
94 #else /* _BIG_ENDIAN_ */
101 u8 antsel_rx_keep_2:1; /* ex_intf_flg:1; */
105 void odm_Init_RSSIForDM(struct odm_dm_struct *pDM_Odm);
107 void ODM_PhyStatusQuery(struct odm_dm_struct *pDM_Odm,
108 struct odm_phy_status_info *pPhyInfo,
110 struct odm_per_pkt_info *pPktinfo);
112 void ODM_MacStatusQuery(struct odm_dm_struct *pDM_Odm,
115 bool bPacketMatchBSSID,