Files
kunlun/plc/inc/mac_init_api.h
2024-09-28 14:24:04 +08:00

63 lines
1.7 KiB
C
Executable File

/****************************************************************************
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
be copied by any method or incorporated into another program without
the express written consent of Aerospace C.Power. This Information or any portion
thereof remains the property of Aerospace C.Power. The Information contained herein
is believed to be accurate and Aerospace C.Power assumes no responsibility or
liability for its use in any way and conveys no license or title under
any patent or copyright and makes no representation or warranty that this
Information is free from patent or copyright infringement.
****************************************************************************/
#ifndef MAC_INIT_API_H
#define MAC_INIT_API_H
/* os shim includes */
#include "plc_utils.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* mac_init - initialize mac modules
*
* return 0 for success and non-zero for failure.
*
*/
uint32_t mac_init(uint32_t proto);
/*
* @brief mac_reinit() - phy and mac reset.
* @param reason: the reason to reset
* @param proto proto -> sg or spg
* @param bandid which band in on
* @param tonemask_id tonemask id refer to phy definition
* @param rf_option rf option
* @param rf_channel rf channel
*/
uint32_t mac_reinit(uint32_t reason, uint32_t proto, uint32_t bandid,
uint32_t tonemask_id, uint32_t rf_option, uint8_t rf_channel);
/* init entry for plc */
void plc_init(void* param);
void mac_pre_phy_reinit();
void mac_post_phy_reinit(uint8_t enable_tx);
void mac_new_phy_cfg_apply();
#ifdef __cplusplus
}
#endif
#endif