#ifndef __MAC_TX_H #define __MAC_TX_H #include "tx_mpdu_start.h" #define MPDU_PB_NULL (NULL) /** *@brief dtest_mac_bifs_set. * config mac tx direction bifs counter. * *@param bifs [tx bifs.] *@exception [none.] *@return [none.] */ void dtest_mac_bifs_set(uint16_t bifs); /** *@brief rx_ring_enable. * enable ring buffer for rx deriction. * *@param ring_id [ring buffer index.] *@param enable [bool type, true or false.] *@exception [none.] *@return [none.] */ uint32_t mac_tx_mpdu_test(void *pdev, volatile tx_mpdu_start *mpdu); /** *@brief dt_mac_tx_hwq0_re_trig. * re-trig mac hwq0 enable for tx packet. * *@param none [none.] *@exception [none.] *@return [none.] */ void dt_mac_tx_hwq0_re_trig(); /** *@brief dt_mac_tx_hwq0_re_trig. * config hwq0 start pointer. * *@param addr [hwq0 address.] *@exception [none.] *@return [none.] */ void dt_mac_hwq0_ptr_set(uint32_t addr); /** *@brief dt_mac_hwq1_ptr_set. * config hwq1 start pointer. * *@param addr [hwq1 address.] *@exception [none.] *@return [none.] */ void dt_mac_hwq1_ptr_set(uint32_t addr); /** *@brief mac_tx_path_init. * config the tx path register. * *@param void [none.] *@exception [none.] *@return [none.] */ void mac_tx_path_init(); /** *@brief platform_pre_init. * config the parameters based on platform. * *@param void [none.] *@exception [none.] *@return [none.] */ void platform_tx_pre_init(); /** *@brief phy_get_tx_done_from_mpdu. * get tx done status from mpdu. * *@param mpdu [mpdu pointer.] *@exception [none.] *@return [none.] */ bool_t phy_get_tx_done_from_mpdu(volatile tx_mpdu_start *mpdu); /** *@brief phy_tx_done_clr. * clear tx done. * *@param mpdu [mpdu pointer.] *@exception [none.] *@return [none.] */ void phy_tx_done_clr(volatile tx_mpdu_start *mpdu); /** *@brief phy_hw_id_get. * get current hw id. * *@param none [none.] *@exception [none.] *@return [none.] */ uint8_t phy_hw_id_get(); /** *@brief mpdu_pb_list_get_from_pb_start. * get pb list pointer from pb start. * *@param pb_start [none.] *@exception [none.] *@return [none.] */ tx_pb_start *mpdu_pb_list_get_from_pb_start(tx_pb_start *pb_start); /** *@brief mpdu_tx_status_get_from_mpdu_end. * get tx status pointer from mpdu end. * *@param pb_start [none.] *@exception [none.] *@return [none.] */ tx_mpdu_end *mpdu_tx_status_get_from_mpdu_end(tx_mpdu_end *mpdu_end); /** *@brief mac_interrupt_init. * interrupt init. * *@param none [none.] *@exception [none.] *@return [none.] */ void mac_interrupt_init(); /** *@brief mac_tmap_init. * tmap init from mac layer. * *@param none [none.] *@exception [none.] *@return [none.] */ void mac_tmap_init(); #endif