net: wireless: rockchip: add rtl8822be pcie wifi driver
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8822be / hal / phydm / rtl8822b / phydm_iqk_8822b.h
diff --git a/drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/rtl8822b/phydm_iqk_8822b.h b/drivers/net/wireless/rockchip_wlan/rtl8822be/hal/phydm/rtl8822b/phydm_iqk_8822b.h
new file mode 100644 (file)
index 0000000..2b32aba
--- /dev/null
@@ -0,0 +1,74 @@
+/******************************************************************************\r
+ *\r
+ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify it\r
+ * under the terms of version 2 of the GNU General Public License as\r
+ * published by the Free Software Foundation.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but WITHOUT\r
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
+ * more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License along with\r
+ * this program; if not, write to the Free Software Foundation, Inc.,\r
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
+ *\r
+ *\r
+ ******************************************************************************/\r
+#ifndef        __PHYDM_IQK_8822B_H__\r
+#define    __PHYDM_IQK_8822B_H__\r
+\r
+#if (RTL8822B_SUPPORT == 1)\r
+\r
+\r
+/*--------------------------Define Parameters-------------------------------*/\r
+#define        MAC_REG_NUM_8822B 2\r
+#define                BB_REG_NUM_8822B 13\r
+#define                RF_REG_NUM_8822B 5\r
+\r
+\r
+#define        LOK_delay_8822B 2\r
+#define        GS_delay_8822B 2\r
+#define        WBIQK_delay_8822B 2\r
+\r
+#define TXIQK 0\r
+#define RXIQK 1\r
+#define SS_8822B 2\r
+\r
+/*---------------------------End Define Parameters-------------------------------*/\r
+\r
+\r
+#if !(DM_ODM_SUPPORT_TYPE & ODM_AP)\r
+VOID \r
+DoIQK_8822B(\r
+       PVOID   pDM_VOID,\r
+       u1Byte          DeltaThermalIndex,\r
+       u1Byte          ThermalValue,   \r
+       u1Byte          Threshold\r
+       );\r
+#else\r
+VOID \r
+DoIQK_8822B(\r
+       PVOID           pDM_VOID,\r
+       u1Byte          DeltaThermalIndex,\r
+       u1Byte          ThermalValue,   \r
+       u1Byte          Threshold\r
+       );\r
+#endif\r
+\r
+VOID   \r
+PHY_IQCalibrate_8822B( \r
+       IN      PVOID           pDM_VOID,\r
+       IN      BOOLEAN         clear\r
+       );\r
+\r
+#else  /* (RTL8822B_SUPPORT == 0)*/\r
+\r
+#define PHY_IQCalibrate_8822B(_pDM_VOID, clear)\r
+\r
+#endif /* RTL8822B_SUPPORT */\r
+\r
+ #endif        /* #ifndef __PHYDM_IQK_8822B_H__*/\r
+\r