[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/pub/include/ps_phy/rpmsg_channel.h b/pub/include/ps_phy/rpmsg_channel.h
new file mode 100644
index 0000000..ab4993e
--- /dev/null
+++ b/pub/include/ps_phy/rpmsg_channel.h
@@ -0,0 +1,124 @@
+/*****************************************************************************

+ *°æ±¾ËùÓÐ (C)2017ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾

+ *  Ä£¿éÃû  £ºPS-PHYͨѶͨµÀ¶¨Òå

+ *  ÎļþÃû    ps_phy_channel.h

+ *  Îļþ±êʶ£º

+ *  Ïà¹ØÎļþ£º

+ *  ʵÏÖ¹¦ÄÜ£ºÐ­ÒéÕ»ºÍÎïÀí²ãÖ®¼äͨѶͨµÀµÄ¶¨Òå

+ *  ×÷Õß        £º

+ *  °æ±¾        £º

+ *  Íê³ÉÈÕÆÚ£º

+ *  ÆäËü˵Ã÷£ºÐ½¨

+ *

+ *****************************************************************************/

+#ifndef    _PS_PHY_CHANNEL_H

+#define    _PS_PHY_CHANNEL_H

+

+/**************************************************************************

+ *                        Í·Îļþ°üº¬                                      *

+ **************************************************************************/

+//#include "drv_rpmsg.h"

+//#ifndef _OS_WIN

+//#include "ram_config.h"

+//#endif

+/**************************************************************************************************

+ICPͨµÀÃüÃû¹æÔò

+   RP_MSG_LTE_PS_PHY_SYNC

+           |  |   |    |

+		   |  |   |    |--> ÏûÏ¢ÀàÐÍ

+		   |  |   |--> ºË2     

+		   |  |------>ºË1

+		   |-->ʹÓÃÖÆÊ½	   

+***************************************************************************************************/

+

+

+/******************************************************************************************

+//PS<->PHYÖ®¼ä¹²¿É¶¨Òå64¸öͨµÀ

+******************************************************************************************/

+

+//LTE

+#define RP_MSG_LTE_PHY_PS_WAKEUP            channel_10   //PHY»½ÐÑPSͨµÀ£¬PSÊ¡µç²à»Øµ÷º¯Êý´¦Àí

+#define RP_MSG_LTE_PHY_PS_SYNC              channel_11   //ps¡¢ltephyÖ®¼äµÄͬ²½ÏûÏ¢

+#define RP_MSG_LTE_PHY_PS_ASYNC             channel_12   //ps¡¢ltephyÖ®¼äµÄÒì²½ÏûÏ¢

+#define RP_MSG_LTE_PHY_PS_ICP               channel_13   //ps¡¢ltephy·¢ËÍÒì²½ÏûϢʱ£¬´¥·¢ICP

+

+//Ë«´ýÐÂÔöÕ»2µÄͨµÀºÅ

+#define RP_MSG_LTE_PHY_PS_SYNC_2              channel_14   //ps¡¢ltephyÖ®¼äµÄͬ²½ÏûÏ¢

+#define RP_MSG_LTE_PHY_PS_ASYNC_2             channel_15   //ps¡¢ltephyÖ®¼äµÄÒì²½ÏûÏ¢

+//#define RP_MSG_LTE_PHY_PS_ICP_2               channel_16   //ps¡¢ltephy·¢ËÍÒì²½ÏûϢʱ£¬´¥·¢ICP

+

+//TD

+#define RP_MSG_TD_PS_PHY_MSG                channel_21    //ps¡¢tdphyÖ®¼äµÄÏûϢͨµÀ

+#define RP_MSG_TD_PS_PHY_UPA_DATA           channel_22

+#define RP_MSG_TD_PS_PHY_LPM_WAKEUP         channel_23

+#define RP_MSG_TD_PHY_PS_WAKEUP             channel_24 //»½ÐÑͨµÀ

+#define RP_MSG_TD_PHY_PS_FRAME_INT          channel_25 //0x100000000

+//#define RP_MSG_TD_DPRAM_CMD                 channel_26 //H2U  U2H

+#define RP_MSG_TD_EAGCH_DATA                channel_27 //EAGCH  only phy--->ps

+#define RP_MSG_TD_BCH_DATA                  channel_28 //BCH  only phy--->ps

+#define RP_MSG_TD_HSUPA_DATA                channel_29 //TD HSUPAÊý¾Ýps--->phy

+

+

+//W

+#define RP_MSG_W_PS_PHY_MSG                 channel_31//Éϱ¨

+#define RP_MSG_W_PHY_PS_WAKEUP              channel_32

+#define RP_MSG_W_PS_PHY_UPA_DATA            channel_33//0x100000000

+#define RP_MSG_W_PS_PHY_LPM_WAKEUP          channel_34//0x400000000

+#define RP_MSG_W_PHY_PS_FRAME_INT           channel_35//0x2

+//#define RP_MSG_W_DPRAM_CMD                  channel_36//DPRAM CMD

+

+//td,W ²»Í¬Ê±´æÔÚ¸´ÓÃͨµÀ

+#define RP_MSG_TD_W_UL_DATA                 channel_37 //TD,WÆÕͨÉÏÐÐÊý¾Ý

+#define RP_MSG_TD_W_DL_DATA                 channel_38 //TD,WÆÕͨÏÂÐÐÊý¾Ý

+#define RP_MSG_TD_W_HSDPA_DATA              channel_39 //TD,W DPAÊý¾Ý

+

+

+//PUB

+#define RP_MSG_PS_PHY_RAMDUMP               channel_40     //arm¡¢zspÖ®¼äµÄramdumpͨµÀ

+#define RP_MSG_PHY_PS_DDR_DVFS              channel_41     //ddrµ÷ƵͨµÀ

+//#define RP_MSG_UICC_VSIMAGT_CHANNEL         channel_42     //vsim ͨµÀ

+

+/******************************************************************************************

+Éæ¼°M0ºËµÄ£¬Ã¿¸öºËÓëM0Ö®¼ä¹²10¸öͨµÀ

+******************************************************************************************/

+

+//PHY<->M0

+#define RP_MSG_PHY_M0_AXI_DFS               channel_1     //axiµ÷ƵͨµÀ

+#define RP_MSG_M0_PHY_WDT                   channel_2     //m0¡¢zspÖ®¼äµÄWDT

+

+//PS<->M0

+#define RP_MSG_PS_M0_AXI_DFS                channel_1     //axiµ÷ƵͨµÀ

+#define RP_MSG_M0_PS_WDT                    channel_2     //m0¡¢armÖ®¼äµÄWDT

+

+#define ICP_CHANNEL_DEFAULT_SIZE            (UINT32)255

+

+

+/******************************************************************************************

+PS¡¢PHYÔ¼¶¨¸÷Êý¾Ý¿éµÄ´óС£¬ÊýÄ¿ºê

+******************************************************************************************/

+#define RP_MSG_TD_EAGCH_DATA_BLOCK_SIZE    40/*¶ÔÓ¦RP_MSG_TD_EAGCH_DATAͨµÀ*/

+#define RP_MSG_TD_EAGCH_DATA_BLOCK_NUM     2

+

+#define RP_MSG_TD_BCH_DATA_BLOCK_SIZE        48/*¶ÔÓ¦RP_MSG_TD_BCH_DATAͨµÀ*/

+#define RP_MSG_TD_BCH_DATA_BLOCK_NUM         1

+

+#define RP_MSG_TD_HSUPA_DATA_BLOCK_SIZE     1440/*¶ÔÓ¦RP_MSG_TD_HSUPA_DATAͨµÀ*/

+#define RP_MSG_TD_HSUPA_DATA_BLOCK_NUM     2

+

+#define RP_MSG_TD_W_UL_DATA_BLOCK_SIZE       1244/*¶ÔÓ¦RP_MSG_TD_W_UL_DATAͨµÀ*/

+#define RP_MSG_TD_W_UL_DATA_BLOCK_NUM        1

+

+#define RP_MSG_TD_W_DL_DATA_BLOCK_SIZE      1340/*¶ÔÓ¦RP_MSG_TD_W_DL_DATAͨµÀ. W¸ñʽ[T_zW_P_dl_data_buffer]; TD¸ñʽ  [T_zTD_P_mac_dl_buffer]*/

+#define RP_MSG_TD_W_DL_DATA_BLOCK_NUM        3

+

+#define RP_MSG_TD_W_HSDPA_DATA_BLOCK_SIZE   5284/*¶ÔÓ¦RP_MSG_TD_W_HSDPA_DATAͨµÀ.W¸ñʽ[T_zW_P_hsdpa_buffer]; TD¸ñʽ[T_zTD_P_mac_Hsdpa_Buf]*/

+#define RP_MSG_TD_W_HSDPA_DATA_BLOCK_NUM     5

+

+#define RP_MSG_TD_PS_TO_PHY_CMD_SIZE    5020

+#define RP_MSG_TD_PHY_TO_PS_CMD_SIZE     3620

+

+#define RP_MSG_W_PS_TO_PHY_CMD_SIZE    25020

+#define RP_MSG_W_PHY_TO_PS_CMD_SIZE     8020

+

+

+#endif // _PS_PHY_CHANNEL_H