X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_cl_phy_inf.c;fp=src%2F5gnrmac%2Frg_cl_phy_inf.c;h=0000000000000000000000000000000000000000;hb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;hp=250bec82185b9f52f3114110a8746ad4ea8a1769;hpb=997e3f26d55352586a1d4d0c46c41a98452af88a;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_cl_phy_inf.c b/src/5gnrmac/rg_cl_phy_inf.c deleted file mode 100644 index 250bec821..000000000 --- a/src/5gnrmac/rg_cl_phy_inf.c +++ /dev/null @@ -1,103 +0,0 @@ -/******************************************************************************* -################################################################################ -# Copyright (c) [2017-2019] [Radisys] # -# # -# Licensed under the Apache License, Version 2.0 (the "License"); # -# you may not use this file except in compliance with the License. # -# You may obtain a copy of the License at # -# # -# http://www.apache.org/licenses/LICENSE-2.0 # -# # -# Unless required by applicable law or agreed to in writing, software # -# distributed under the License is distributed on an "AS IS" BASIS, # -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # -# See the License for the specific language governing permissions and # -# limitations under the License. # -################################################################################ -*******************************************************************************/ - -/* This file contains APIs to send/receive messages from PHY */ - -#include "stdio.h" -#include "envdep.h" -#include "ssi.h" - -#include "rg_cl_phy.h" - - -EXTERN S16 rgClHndlCfgReq ARGS((void *msg)); -EXTERN void macToPhy ARGS((U16 msgType, U32 msgLen, void *msg)); - -/****************************************************************** - * - * @brief Receives message to PHY - * - * @details - * - * Function : phyToMac - * - * Functionality: - * -Receives Msg from PHY - * - * @params[in] Message Pointer - * - * @return void - * - ******************************************************************/ - -void phyToMac(U16 msgType, U32 msgLen,void *msg) -{ - switch(msgType) - { - case MSG_TYPE_CONFIG_RSP: - rgClHndlCfgReq(msg); - break; - - default: - printf("\nInvalid message type[%x] from PHY", msgType); - } -} - -/******************************************************************* - * - * @brief Sends message to PHY - * - * @details - * - * Function : sendToPhy - * - * Functionality: - * -Sends message to PHY - * - * @params[in] Message Type - * Message Length - * Messaga Pointer - * - * @return void - * -******************************************************************/ - -PUBLIC S16 sendToPhy(U16 msgType, U32 msgLen, void *msg) -{ -#if 0 - S8 ret; - void *pMsg; - - pMsg = (void *)WLS_VA2PA(mtGetWlsHdl(), msg); - ret = WLS_put(mtGetWlsHdl(), (PTR)pMsg, msgLen, msgType, 0); - - if(ret != 0) - { - printf("\nFailure in sending message to PHY"); - RETVALUE(RFAILED); - } -#endif - - macToPhy(msgType, msgLen, msg); - - RETVALUE(ROK); -} - -/********************************************************************** - End of file -**********************************************************************/