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_POW_TRAIN_H__
27 #define __PHYDM_POW_TRAIN_H__
29 #define POW_TRAIN_VERSION "1.0" /* @2017.07.0141 Dino, Add phydm_pow_train.h*/
31 /****************************************************************
32 * 1 ============================================================
34 * 1 ============================================================
35 ***************************************************************/
37 #ifdef PHYDM_POWER_TRAINING_SUPPORT
38 /****************************************************************
39 * 1 ============================================================
41 * 1 ============================================================
42 ***************************************************************/
44 struct phydm_pow_train_stuc {
49 /****************************************************************
50 * 1 ============================================================
52 * 1 ============================================================
53 ***************************************************************/
55 enum pow_train_state {
56 DYNAMIC_POW_TRAIN = 0,
61 enum power_training_score {
63 KEEP_PRE_PT_SCORE = 1,
67 /****************************************************************
68 * 1 ============================================================
69 * 1 function prototype
70 * 1 ============================================================
71 ***************************************************************/
73 void phydm_update_power_training_state(
76 void phydm_pow_train_debug(