1 /******************************************************************************
3 * Copyright(c) 2007 - 2017 Realtek Corporation.
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
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
22 * Larry Finger <Larry.Finger@lwfinger.net>
24 *****************************************************************************/
26 #ifndef __PHYDM_MP_H__
27 #define __PHYDM_MP_H__
29 #define MP_VERSION "1.0"
31 /* @1 ============================================================
33 * 1 ============================================================
35 /* @1 ============================================================
37 * 1 ============================================================
40 /* @Rx OK count, statistics used in Mass Production Test.*/
43 /* @Rx CRC32 error count, statistics used in Mass Production Test.*/
44 u64 rx_phy_crc_err_cnt;
45 /* @The Value of IO operation is depend of MptActType.*/
48 /* @u32 rfe_sel_a_0;*/
49 /* @u32 rfe_sel_b_0;*/
50 /* @u32 rfe_sel_c_0;*/
51 /* @u32 rfe_sel_d_0;*/
52 /* @u32 rfe_sel_a_1;*/
53 /* @u32 rfe_sel_b_1;*/
54 /* @u32 rfe_sel_c_1;*/
55 /* @u32 rfe_sel_d_1;*/
58 /* @1 ============================================================
60 * 1 ============================================================
65 OFDM_SINGLE_CARRIER = 2,
68 /* @1 ============================================================
69 * 1 function prototype
70 * 1 ============================================================
72 #ifdef PHYDM_IC_JGR3_SERIES_SUPPORT
73 void phydm_mp_set_single_tone_jgr3(void *dm_void, boolean is_single_tone,
76 void phydm_mp_set_carrier_supp_jgr3(void *dm_void, boolean is_carrier_supp,
80 void phydm_mp_set_crystal_cap(void *dm_void, u8 crystal_cap);
82 void phydm_mp_set_single_tone(void *dm_void, boolean is_single_tone, u8 path);
84 void phydm_mp_set_carrier_supp(void *dm_void, boolean is_carrier_supp,
87 void phydm_mp_set_single_carrier(void *dm_void, boolean is_single_carrier);
89 void phydm_mp_reset_rx_counters_phy(void *dm_void);
91 void phydm_mp_get_tx_ok(void *dm_void, u32 rate_index);
93 void phydm_mp_get_rx_ok(void *dm_void);