TSW driver APIs. More...
Data Structures | |
| struct | tx_hdr_desc_t |
| struct | tsw_frame_t |
| struct | tsw_dma_config_t |
| struct | tsw_shap_tas_listlen_t |
| struct | tsw_tas_controllist_entry_t |
| struct | tsw_tas_config_t |
| struct | tsw_cbs_config_t |
| struct | tsw_tsf_t |
| struct | tsw_fpe_mms_status_t |
| struct | tsw_fpe_config_t |
| struct | tsw_cb_stmid_lookup_mac_t |
| struct | tsw_cb_stmid_active_mac_t |
| struct | tsw_cb_stmid_entry_t |
| struct | tsw_cb_frer_xrfunc_config_t |
| struct | tsw_cb_frer_sid_func_config_t |
| struct | tsw_cb_frer_latent_error_dectecton_config_t |
| struct | tsw_cb_frer_recovery_func_config_t |
| struct | tsw_psfer_gate_control_list_entry_t |
| struct | tsw_psfer_gate_control_list_config_t |
| struct | tsw_cb_frer_frame_count_egress_t |
| struct | tsw_psfp_gate_static_mode_config_t |
| struct | tsw_psfp_gate_dynamic_mode_config_t |
| struct | tsw_psfp_flow_meter_xir_config_t |
| struct | tsw_psfp_flow_meter_config_t |
| struct | tsw_psfp_filter_config_t |
Macros | |
| #define | MAC_LO(mac) (uint32_t)(mac[0] | (mac[1] << 8) | (mac[2] << 16) | (mac[3] << 24)) |
| #define | MAC_HI(mac) (uint32_t)(mac[4] | (mac[5] << 8)) |
| #define | MAC_MDIO_CTRL_OP_WR (0x01) |
| #define | MAC_MDIO_CTRL_OP_RD (0x02) |
| #define | TSW_SEND_DESC_COUNT (16U) |
| #define | TSW_RECV_DESC_COUNT (16U) |
| #define | TSW_SEND_BUFF_LEN (1536U) |
| #define | TSW_RECV_BUFF_LEN (1536U) |
| #define | TSW_NS_IN_ONE_SEC (1000000000UL) |
| #define | TSW_BUS_FREQ (100000000UL) |
| #define | TSW_FPE_MMS_MIN_VTIME_MIN (1U) /* 1ms */ |
| #define | TSW_FPE_MMS_MAX_VTIME_MAX (128U) /* 128ms */ |
Functions | |
| void | tsw_get_default_dma_config (tsw_dma_config_t *config) |
| Get default DMA configuration. More... | |
| void | tsw_init_send (TSW_Type *ptr, tsw_dma_config_t *config) |
| Initialize TSW send DMA. More... | |
| void | tsw_init_recv (TSW_Type *ptr, tsw_dma_config_t *config) |
| Initialize TSW receive DMA. More... | |
| hpm_stat_t | tsw_send_frame (TSW_Type *ptr, uint8_t *buffer, uint16_t length, uint8_t id) |
| Send a frame to CPU port. More... | |
| hpm_stat_t | tsw_commit_recv_desc (TSW_Type *ptr, uint8_t *buffer, uint16_t length, uint8_t id) |
| Commit a receive DMA descriptor. More... | |
| hpm_stat_t | tsw_recv_frame (TSW_Type *ptr, tsw_frame_t *frame) |
| Receive a frame from CPU port. More... | |
| void | tsw_mac_lookup_bypass (TSW_Type *ptr, uint8_t dst_port) |
| Lookup Bypass Setting. More... | |
| void | tsw_set_cam_vlan_port (TSW_Type *ptr) |
| CAM VLAN Setting. More... | |
| hpm_stat_t | tsw_ep_set_mdio_config (TSW_Type *ptr, uint8_t port, uint8_t clk_div) |
| MDIO Interface Config. More... | |
| hpm_stat_t | tsw_ep_mdio_read (TSW_Type *ptr, uint8_t port, uint32_t phy_addr, uint32_t reg_addr, uint16_t *data) |
| MDIO Read. More... | |
| hpm_stat_t | tsw_ep_mdio_write (TSW_Type *ptr, uint8_t port, uint32_t phy_addr, uint32_t reg_addr, uint16_t data) |
| MDIO Write. More... | |
| hpm_stat_t | tsw_ep_enable_mac_ctrl (TSW_Type *ptr, uint8_t port, uint8_t mac_type) |
| Enable MAC Controller. More... | |
| hpm_stat_t | tsw_ep_disable_mac_ctrl (TSW_Type *ptr, uint8_t port, uint8_t mac_type) |
| Disable MAC Controller. More... | |
| hpm_stat_t | tsw_ep_enable_all_mac_ctrl (TSW_Type *ptr, uint8_t mac_type) |
| Enable All MAC Controllers. More... | |
| hpm_stat_t | tsw_ep_disable_all_mac_ctrl (TSW_Type *ptr, uint8_t mac_type) |
| Disable All MAC Controllers. More... | |
| hpm_stat_t | tsw_ep_set_mac_addr (TSW_Type *ptr, uint8_t port, uint8_t *mac_addr, bool promisc) |
| Set MAC Address. More... | |
| hpm_stat_t | tsw_ep_set_mac_mode (TSW_Type *ptr, uint8_t port, uint8_t gmii) |
| Set MAC Mode. More... | |
| void | tsw_port_gpr (TSW_Type *ptr, uint8_t port, uint8_t speed, uint8_t itf, uint8_t tx_dly, uint8_t rx_dly) |
| Set Port GPR. More... | |
| void | tsw_set_port_speed (TSW_Type *ptr, uint8_t port, uint8_t speed) |
| Set TSW port speed. More... | |
| void | tsw_set_port_interface (TSW_Type *ptr, uint8_t port, uint8_t itf) |
| Set TSW port interface type. More... | |
| void | tsw_set_port_clock_delay (TSW_Type *ptr, uint8_t port, uint8_t tx_dly, uint8_t rx_dly) |
| Set TSW port clock delay. More... | |
| void | tsw_set_internal_frame_action (TSW_Type *ptr, uint8_t dest_port) |
| Set Internal Frame Action. More... | |
| void | tsw_set_broadcast_frame_action (TSW_Type *ptr, uint8_t dest_port) |
| Set Broadcast Frame Action. More... | |
| void | tsw_set_unknown_frame_action (TSW_Type *ptr, uint8_t dest_port) |
| Set Unknow Frame Action. More... | |
| void | tsw_set_lookup_table (TSW_Type *ptr, uint16_t entry_num, uint8_t dest_port, uint64_t dest_mac) |
| Set Lookup Table. More... | |
| void | tsw_clear_cam (TSW_Type *ptr) |
| Clear CAM. More... | |
| void | tsw_enable_store_forward_mode (TSW_Type *ptr, uint8_t port) |
| Enable RXFIFO to store and forward mode. More... | |
| void | tsw_disable_store_forward_mode (TSW_Type *ptr, uint8_t port) |
| Disable RXFIFO to store and forward mode. More... | |
| hpm_stat_t | tsw_get_rtc_time_increment (TSW_Type *ptr, uint32_t *increment) |
| Get RTC timer increment value. More... | |
| hpm_stat_t | tsw_set_rtc_time_increment (TSW_Type *ptr, uint32_t increment) |
| Set RTC timer increment value. More... | |
| hpm_stat_t | tsw_get_rtc_current_time (TSW_Type *ptr, uint32_t *sec, uint32_t *nsec) |
| Get RTC current time. More... | |
| hpm_stat_t | tsw_get_rtc_offset (TSW_Type *ptr, int64_t *sec, uint32_t *nsec) |
| Get RTC offset. More... | |
| hpm_stat_t | tsw_set_rtc_offset (TSW_Type *ptr, int64_t sec, uint32_t nsec) |
| Set RTC offset. More... | |
| hpm_stat_t | tsw_set_rtc_offset_change (TSW_Type *ptr, uint32_t change) |
| Set RTC offset change. More... | |
| hpm_stat_t | tsw_set_tsync_timer_hclkdiv (TSW_Type *ptr, uint8_t port, uint32_t host_clkdiv) |
| Set TSYNC timer host clock divider. More... | |
| hpm_stat_t | tsw_tsync_timer_control (TSW_Type *ptr, uint8_t port, uint8_t index, uint32_t period, uint32_t enable) |
| TSYNC timer control. More... | |
| hpm_stat_t | tsw_tsync_timer_interrupt_enable (TSW_Type *ptr, uint8_t port) |
| TSYNC timer interrupt enable. More... | |
| hpm_stat_t | tsw_tsync_update_data (TSW_Type *ptr, uint8_t port, uint32_t bin, uint32_t binofs, uint32_t srcaddr, uint8_t lenbytes) |
| TSYNC update data. More... | |
| hpm_stat_t | tsw_tsync_update_len (TSW_Type *ptr, uint8_t port, uint32_t bin, uint8_t lenbytes, uint8_t tqueue) |
| TSYNC update length. More... | |
| hpm_stat_t | tsw_tsync_trigger_tx (TSW_Type *ptr, uint8_t port, uint32_t bin) |
| TSYNC trigger TX. More... | |
| hpm_stat_t | tsw_tsync_get_txtimestamp (TSW_Type *ptr, uint8_t port, uint32_t bin, uint32_t *timestamplo, uint32_t *timestamphi) |
| TSYNC get TX timestamp. More... | |
| hpm_stat_t | tsw_tsync_get_rxtimestamp (TSW_Type *ptr, uint8_t port, uint32_t *timestamplo, uint32_t *timestamphi) |
| TSYNC get RX timestamp. More... | |
| hpm_stat_t | tsw_tsync_disable_current_events (TSW_Type *ptr, uint8_t port, uint32_t *disabled) |
| TSYNC disable current events. More... | |
| hpm_stat_t | tsw_tsync_get_rxstatus (TSW_Type *ptr, uint8_t port, uint8_t *ov, uint8_t *avnxt, uint8_t *rxsel) |
| TSYNC get RX status. More... | |
| hpm_stat_t | tsw_tsync_next_rxbuffer (TSW_Type *ptr, uint8_t port) |
| TSYNC next RX buffer. More... | |
| hpm_stat_t | tsw_tsync_clear_overflow (TSW_Type *ptr, uint8_t port) |
| TSYNC clear overflow status. More... | |
| hpm_stat_t | tsw_tsync_get_txdone (TSW_Type *ptr, uint8_t port, uint32_t *done) |
| TSYNC get tx done status. More... | |
| hpm_stat_t | tsw_tsync_clear_txdone (TSW_Type *ptr, uint8_t port, uint32_t done) |
| TSYNC clear tx done status. More... | |
| hpm_stat_t | tsw_tsync_get_tmrdone (TSW_Type *ptr, uint8_t port, uint32_t *done) |
| TSYNC get tmr done status. More... | |
| hpm_stat_t | tsw_shap_get_tas_listlen (TSW_Type *ptr, uint8_t port, tsw_shap_tas_listlen_t *listlen) |
| TSW get shap tas listlen. More... | |
| hpm_stat_t | tsw_shap_set_tas_cycletime (TSW_Type *ptr, uint8_t port, uint32_t cycle_time) |
| SHAP set tas cycle. More... | |
| hpm_stat_t | tsw_shap_set_tas_controllist (TSW_Type *ptr, uint8_t port, uint32_t index, tsw_tas_controllist_entry_t *entry) |
| SHAP set tas controllist. More... | |
| hpm_stat_t | tsw_shap_get_tas_controllist (TSW_Type *ptr, uint8_t port, uint32_t index, tsw_tas_controllist_entry_t *entry) |
| SHAP get tas controllist. More... | |
| hpm_stat_t | tsw_shap_set_tas_max_sdu_ticks (TSW_Type *ptr, uint8_t port, uint8_t index, uint32_t ticks) |
| Set tas maximum SDU ticks. More... | |
| hpm_stat_t | tsw_shap_get_tas_max_sdu_ticks (TSW_Type *ptr, uint8_t port, uint8_t index, uint32_t *ticks) |
| Get tas maximum SDU ticks. More... | |
| hpm_stat_t | tsw_set_pps_tod_output (TSW_Type *ptr) |
| Set pps tod output. More... | |
| hpm_stat_t | tsw_shap_enable_tas (TSW_Type *ptr, uint8_t port) |
| Enable TAS. More... | |
| hpm_stat_t | tsw_shap_disable_tas (TSW_Type *ptr, uint8_t port) |
| Disable TAS. More... | |
| hpm_stat_t | tsw_shap_set_tas_listlen (TSW_Type *ptr, uint8_t port, uint32_t listlen) |
| Set TAS list length. More... | |
| hpm_stat_t | tsw_shap_set_tas_basetime (TSW_Type *ptr, uint8_t port, uint32_t basetime_sec, uint32_t basetime_ns) |
| Set TAS base time. More... | |
| hpm_stat_t | tsw_shap_tas_change_config (TSW_Type *ptr, uint8_t port) |
| Trigger to change TAS config. More... | |
| hpm_stat_t | tsw_shap_get_tas_crsr (TSW_Type *ptr, uint8_t port, uint32_t *crsr) |
| Get TAS cycle time. More... | |
| hpm_stat_t | tsw_shap_set_tas (TSW_Type *ptr, uint8_t port, tsw_tas_config_t *config) |
| Set TAS config. More... | |
| hpm_stat_t | tsw_shap_set_cbs (TSW_Type *ptr, uint8_t port, uint8_t index, tsw_cbs_config_t *config) |
| Set CBS config. More... | |
| hpm_stat_t | tsw_get_txtimestampfifo_used (TSW_Type *ptr, uint8_t port, uint32_t *count) |
| Get used countsed count from the TX-Timestamp FIFO. More... | |
| hpm_stat_t | tsw_get_txtimestampfifo_entry (TSW_Type *ptr, uint8_t port, tsw_tsf_t *entry) |
| Get TX-Timestamp FIFO entry. More... | |
| hpm_stat_t | tsw_fpe_get_default_mms_ctrl_config (TSW_Type *ptr, uint8_t port, tsw_fpe_config_t *config) |
| Get default MMS config. More... | |
| hpm_stat_t | tsw_fpe_enable_mms (TSW_Type *ptr, uint8_t port) |
| Enable MMS. More... | |
| hpm_stat_t | tsw_fpe_disable_mms (TSW_Type *ptr, uint8_t port) |
| Disable MMS. More... | |
| hpm_stat_t | tsw_fpe_set_mms_ctrl (TSW_Type *ptr, uint8_t port, tsw_fpe_config_t *config) |
| Set MMS config. More... | |
| hpm_stat_t | tsw_fpe_reset_mms_statistics_counter (TSW_Type *ptr, uint8_t port, tsw_fpe_mms_statistics_counter_t counter) |
| Reset MMS statistics counter. More... | |
| hpm_stat_t | tsw_fpe_get_mms_statistics_counter (TSW_Type *ptr, uint8_t port, tsw_fpe_mms_statistics_counter_t counter, uint32_t *value) |
| Get MMS statistics counter. More... | |
| hpm_stat_t | tsw_cb_stmid_ingress_set_entry (TSW_Type *ptr, tsw_cb_stmid_entry_t *entry) |
| Set STMID entry for ingress. More... | |
| hpm_stat_t | tsw_cb_stmid_ingress_get_entry (TSW_Type *ptr, tsw_cb_stmid_entry_t *entry) |
| Get STMID entry for ingress. More... | |
| hpm_stat_t | tsw_cb_stmid_egress_set_entry (TSW_Type *ptr, tsw_cb_stmid_entry_t *entry) |
| Set STMID entry for egress. More... | |
| hpm_stat_t | tsw_cb_frer_ingress_enable_rtag (TSW_Type *ptr) |
| Enable RTAG with CB frer for ingress. More... | |
| hpm_stat_t | tsw_cb_frer_egress_set_sid_func (TSW_Type *ptr, tsw_cb_frer_sid_func_config_t *config) |
| specify recovery functions for stream for egress More... | |
| hpm_stat_t | tsw_cb_frer_egress_set_recovery_func (TSW_Type *ptr, tsw_cb_frer_recovery_func_config_t *config) |
| Set up recovery functions for stream with CB frer for egress. More... | |
| hpm_stat_t | tsw_cb_frer_egress_clear_latten_error_flag (TSW_Type *ptr) |
| Clear latten error flag. More... | |
| hpm_stat_t | tsw_cb_frer_egress_get_count (TSW_Type *ptr, tsw_cb_frer_frame_count_egress_t *count) |
| Get count of latten error. More... | |
| hpm_stat_t | tsw_psfp_set_filter (TSW_Type *ptr, tsw_psfp_filter_config_t *config) |
| Set PSFP filter. More... | |
| hpm_stat_t | tsw_psfp_set_gate_static_mode (TSW_Type *ptr, tsw_psfp_gate_static_mode_config_t *config) |
| Set PSFP gate with static mode. More... | |
| hpm_stat_t | tsw_psfp_set_gate_dynamic_mode (TSW_Type *ptr, tsw_psfp_gate_dynamic_mode_config_t *config) |
| Set PSFP gate with dynamic mode. More... | |
| hpm_stat_t | tsw_psfp_set_flow_meter (TSW_Type *ptr, tsw_psfp_flow_meter_config_t *config) |
| Set PSFP flow meter. More... | |
TSW driver APIs.
| #define MAC_HI | ( | mac | ) | (uint32_t)(mac[4] | (mac[5] << 8)) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define MAC_LO | ( | mac | ) | (uint32_t)(mac[0] | (mac[1] << 8) | (mac[2] << 16) | (mac[3] << 24)) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define MAC_MDIO_CTRL_OP_RD (0x02) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define MAC_MDIO_CTRL_OP_WR (0x01) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_BUS_FREQ (100000000UL) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_FPE_MMS_MAX_VTIME_MAX (128U) /* 128ms */ |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_FPE_MMS_MIN_VTIME_MIN (1U) /* 1ms */ |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_NS_IN_ONE_SEC (1000000000UL) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_RECV_BUFF_LEN (1536U) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_RECV_DESC_COUNT (16U) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_SEND_BUFF_LEN (1536U) |
#include <drivers/inc/hpm_tsw_drv.h>
| #define TSW_SEND_DESC_COUNT (16U) |
#include <drivers/inc/hpm_tsw_drv.h>
| enum tsw_cb_frer_algo_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_cb_frer_algo_vector_recovery | |
| tsw_cb_frer_algo_match_recovery | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| presented_frames | |
| discarded_frames | |
| tagless_frames | |
| rougue_frames | |
| out_of_oder_frames | |
| lost_frames | |
| recover_func_resets | |
| latent_err_dectection_resets | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_cb_frer_xfunc_recovery_sequence | |
| tsw_cb_frer_xfunc_recovery_individual | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_cpu_send_to_lookup | |
| tsw_cpu_send_to_port_1 | |
| tsw_cpu_send_to_port_2 | |
| tsw_cpu_send_to_port_3 | |
| tsw_cpu_send_to_all_ports | |
| enum tsw_dst_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_dst_port_null | |
| tsw_dst_port_cpu | |
| tsw_dst_port_1 | |
| tsw_dst_port_2 | |
| tsw_dst_port_3 | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_fpe_mms_fragment_size_60_octets | |
| tsw_fpe_mms_fragment_size_124_octets | |
| tsw_fpe_mms_fragment_size_188_octets | |
| tsw_fpe_mms_fragment_size_252_octets | |
#include <drivers/inc/hpm_tsw_drv.h>
| enum tsw_mac_mode_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_mac_mode_mii | |
| tsw_mac_mode_gmii | |
| enum tsw_port_phy_itf_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_port_phy_itf_mii | |
| tsw_port_phy_itf_rmii | |
| tsw_port_phy_itf_rgmii | |
| enum tsw_port_speed_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_port_speed_10mbps | |
| tsw_port_speed_100mbps | |
| tsw_port_speed_1000mbps | |
| enum tsw_pps_ctrl_t |
#include <drivers/inc/hpm_tsw_drv.h>
| enum tsw_psfp_gate_mode_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_psfp_gate_mode_static | |
| tsw_psfp_gate_mode_dynamic | |
| tsw_psfp_gate_mode_unknown | |
| enum tsw_psfp_gate_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_psfp_gate_closed | |
| tsw_psfp_gate_open | |
#include <drivers/inc/hpm_tsw_drv.h>
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_shap_tas_aclist_op_set_gate_states | |
| tsw_shap_tas_aclist_op_set_and_hold_mac | |
| tsw_shap_tas_aclist_op_set_and_release_mac | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_stmid_actctl_disabled | |
| tsw_stmid_actctl_use_amac_with_removed_vlan_tag | |
| tsw_stmid_actctl_use_amac_with_replaced_or_inserted_vlan_tag | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_stmid_control_lookup_by_dest_mac | |
| tsw_stmid_control_lookup_by_src_mac | |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_stmid_lookup_mode_priority | |
| tsw_stmid_lookup_mode_tagged | |
| tsw_stmid_lookup_mode_all | |
| enum tsw_traffic_queue_t |
#include <drivers/inc/hpm_tsw_drv.h>
| Enumerator | |
|---|---|
| tsw_traffic_queue_0 | |
| tsw_traffic_queue_1 | |
| tsw_traffic_queue_2 | |
| tsw_traffic_queue_3 | |
| tsw_traffic_queue_4 | |
| tsw_traffic_queue_5 | |
| tsw_traffic_queue_6 | |
| tsw_traffic_queue_7 | |
| hpm_stat_t tsw_cb_frer_egress_clear_latten_error_flag | ( | TSW_Type * | ptr | ) |
#include <drivers/inc/hpm_tsw_drv.h>
Clear latten error flag.
| ptr[in] | TSW peripheral base address |
| hpm_stat_t tsw_cb_frer_egress_get_count | ( | TSW_Type * | ptr, |
| tsw_cb_frer_frame_count_egress_t * | count | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get count of latten error.
| ptr[in] | TSW peripheral base address |
| count[out] | Pointer to value of frer egress counters |
| hpm_stat_t tsw_cb_frer_egress_set_recovery_func | ( | TSW_Type * | ptr, |
| tsw_cb_frer_recovery_func_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set up recovery functions for stream with CB frer for egress.
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to recovery functions config tsw_cb_frer_recovery_func_config_t |
| hpm_stat_t tsw_cb_frer_egress_set_sid_func | ( | TSW_Type * | ptr, |
| tsw_cb_frer_sid_func_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
specify recovery functions for stream for egress
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to recovery functions config tsw_cb_frer_sid_func_config_t |
| hpm_stat_t tsw_cb_frer_ingress_enable_rtag | ( | TSW_Type * | ptr | ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable RTAG with CB frer for ingress.
| ptr[in] | TSW peripheral base address |
| hpm_stat_t tsw_cb_stmid_egress_set_entry | ( | TSW_Type * | ptr, |
| tsw_cb_stmid_entry_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set STMID entry for egress.
| ptr[in] | TSW peripheral base address |
| entry[in] | Pointer to STMID entry tsw_cb_stmid_entry_t |
| hpm_stat_t tsw_cb_stmid_ingress_get_entry | ( | TSW_Type * | ptr, |
| tsw_cb_stmid_entry_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get STMID entry for ingress.
| ptr[in] | TSW peripheral base address |
| entry[out] | Pointer to STMID entry tsw_cb_stmid_entry_t |
| hpm_stat_t tsw_cb_stmid_ingress_set_entry | ( | TSW_Type * | ptr, |
| tsw_cb_stmid_entry_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set STMID entry for ingress.
| ptr[in] | TSW peripheral base address |
| entry[in] | Pointer to STMID entry tsw_cb_stmid_entry_t |
| void tsw_clear_cam | ( | TSW_Type * | ptr | ) |
| hpm_stat_t tsw_commit_recv_desc | ( | TSW_Type * | ptr, |
| uint8_t * | buffer, | ||
| uint16_t | length, | ||
| uint8_t | id | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Commit a receive DMA descriptor.
| [in] | ptr | TSW peripheral base address |
| [in] | buffer | Pointer to a buffer of the frame to be received |
| [in] | length | Buffer length |
| [in] | id | Frame index |
| void tsw_disable_store_forward_mode | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Disable RXFIFO to store and forward mode.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| void tsw_enable_store_forward_mode | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable RXFIFO to store and forward mode.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| hpm_stat_t tsw_ep_disable_all_mac_ctrl | ( | TSW_Type * | ptr, |
| uint8_t | mac_type | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Disable All MAC Controllers.
| [in] | ptr | TSW peripheral base address |
| [in] | mac_type | MAC type 0:EMAC/1:PMAC |
| hpm_stat_t tsw_ep_disable_mac_ctrl | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | mac_type | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Disable MAC Controller.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | mac_type | MAC type 0:EMAC/1:PMAC |
| hpm_stat_t tsw_ep_enable_all_mac_ctrl | ( | TSW_Type * | ptr, |
| uint8_t | mac_type | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable All MAC Controllers.
| [in] | ptr | TSW peripheral base address |
| [in] | mac_type | MAC type 0:EMAC/1:PMAC |
| hpm_stat_t tsw_ep_enable_mac_ctrl | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | mac_type | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable MAC Controller.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | mac_type | MAC type 0:EMAC/1:PMAC |
| hpm_stat_t tsw_ep_mdio_read | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | phy_addr, | ||
| uint32_t | reg_addr, | ||
| uint16_t * | data | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
MDIO Read.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | phy_addr | TSW clock division |
| [in] | reg_addr | PHY register address |
| [out] | data | Pointer to data memory |
| hpm_stat_t tsw_ep_mdio_write | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | phy_addr, | ||
| uint32_t | reg_addr, | ||
| uint16_t | data | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
MDIO Write.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | phy_addr | TSW clock division |
| [in] | reg_addr | PHY register address |
| [in] | data | Data value |
| hpm_stat_t tsw_ep_set_mac_addr | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t * | mac_addr, | ||
| bool | promisc | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set MAC Address.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | mac_addr | Pointer to MAC address |
| [in] | promisc | Promiscuous Mode: Set true to enable; set false to disable |
| hpm_stat_t tsw_ep_set_mac_mode | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | gmii | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set MAC Mode.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | mac_addr | Pointer to MAC address |
| [in] | promisc | Promiscuous Mode: Set true to enable; set false to disable |
| hpm_stat_t tsw_ep_set_mdio_config | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | clk_div | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
MDIO Interface Config.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | clk_div | TSW clock division |
| hpm_stat_t tsw_fpe_disable_mms | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Disable MMS.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| hpm_stat_t tsw_fpe_enable_mms | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable MMS.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| hpm_stat_t tsw_fpe_get_default_mms_ctrl_config | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_fpe_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get default MMS config.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| config[out] | Pointer to MMS config tsw_fpe_config_t |
| hpm_stat_t tsw_fpe_get_mms_statistics_counter | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_fpe_mms_statistics_counter_t | counter, | ||
| uint32_t * | value | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get MMS statistics counter.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| counter[in] | MMS statistics counter |
| value[out] | Pointer to MMS statistics counter value |
| hpm_stat_t tsw_fpe_reset_mms_statistics_counter | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_fpe_mms_statistics_counter_t | counter | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Reset MMS statistics counter.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| counter[in] | MMS statistics counter |
| hpm_stat_t tsw_fpe_set_mms_ctrl | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_fpe_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set MMS config.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| config[in] | Pointer to MMS config tsw_fpe_config_t |
| void tsw_get_default_dma_config | ( | tsw_dma_config_t * | config | ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get default DMA configuration.
| [out] | config | DMA configuration struct tsw_dma_config_t |
| hpm_stat_t tsw_get_rtc_current_time | ( | TSW_Type * | ptr, |
| uint32_t * | sec, | ||
| uint32_t * | nsec | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get RTC current time.
| [in] | ptr | TSW peripheral base address |
| [out] | sec | seconds |
| [out] | nsec | nanoseconds |
| hpm_stat_t tsw_get_rtc_offset | ( | TSW_Type * | ptr, |
| int64_t * | sec, | ||
| uint32_t * | nsec | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get RTC offset.
| [in] | ptr | TSW peripheral base address |
| [out] | sec | seconds |
| [out] | nsec | nanoseconds |
| hpm_stat_t tsw_get_rtc_time_increment | ( | TSW_Type * | ptr, |
| uint32_t * | increment | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get RTC timer increment value.
| [in] | ptr | TSW peripheral base address |
| [in] | increment | local time increment |
| hpm_stat_t tsw_get_txtimestampfifo_entry | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_tsf_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get TX-Timestamp FIFO entry.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| entry[out] | Pointer to TX-Timestamp FIFO entry tsw_tsf_t |
| hpm_stat_t tsw_get_txtimestampfifo_used | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | count | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get used countsed count from the TX-Timestamp FIFO.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| count[out] | Pointer to used count in TX-Timestamp FIFO |
| void tsw_init_recv | ( | TSW_Type * | ptr, |
| tsw_dma_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Initialize TSW receive DMA.
| ptr | TSW peripheral base address |
| config | DMA configuration struct tsw_dma_config_t |
| void tsw_init_send | ( | TSW_Type * | ptr, |
| tsw_dma_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Initialize TSW send DMA.
| ptr | TSW peripheral base address |
| config | DMA configuration struct tsw_dma_config_t |
| void tsw_mac_lookup_bypass | ( | TSW_Type * | ptr, |
| uint8_t | dst_port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Lookup Bypass Setting.
| [in] | ptr | TSW peripheral base address |
| [in] | dst_port | Destination port number |
| void tsw_port_gpr | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | speed, | ||
| uint8_t | itf, | ||
| uint8_t | tx_dly, | ||
| uint8_t | rx_dly | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set Port GPR.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | speed | Pointer to MAC address |
| [in] | itf | Promiscuous Mode: Set true to enable; set false to disable |
| [in] | tx_dly | Tx delay |
| [in] | rx_dlay | Rx delay |
speed: 00 1000mbps, 11 100mbps, 10 10mpbs itf: 000 MII; 001 RGMII; 100 RMII
| hpm_stat_t tsw_psfp_set_filter | ( | TSW_Type * | ptr, |
| tsw_psfp_filter_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set PSFP filter.
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to PSFP filter config tsw_psfp_filter_config_t |
| hpm_stat_t tsw_psfp_set_flow_meter | ( | TSW_Type * | ptr, |
| tsw_psfp_flow_meter_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set PSFP flow meter.
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to PSFP flow meter config tsw_psfp_flow_meter_config_t |
| hpm_stat_t tsw_psfp_set_gate_dynamic_mode | ( | TSW_Type * | ptr, |
| tsw_psfp_gate_dynamic_mode_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set PSFP gate with dynamic mode.
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to PSFP gate config tsw_psfp_gate_dynamic_mode_config_t |
| hpm_stat_t tsw_psfp_set_gate_static_mode | ( | TSW_Type * | ptr, |
| tsw_psfp_gate_static_mode_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set PSFP gate with static mode.
| ptr[in] | TSW peripheral base address |
| config[in] | Pointer to PSFP gate config tsw_psfp_gate_static_mode_config_t |
| hpm_stat_t tsw_recv_frame | ( | TSW_Type * | ptr, |
| tsw_frame_t * | frame | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Receive a frame from CPU port.
| [in] | ptr | TSW peripheral base address |
| [in] | frame | a struct pointer to a tsw frame struct tsw_frame_t |
| hpm_stat_t tsw_send_frame | ( | TSW_Type * | ptr, |
| uint8_t * | buffer, | ||
| uint16_t | length, | ||
| uint8_t | id | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Send a frame to CPU port.
| [in] | ptr | TSW peripheral base address |
| [in] | length | Frame length |
| [in] | id | Frame index |
| void tsw_set_broadcast_frame_action | ( | TSW_Type * | ptr, |
| uint8_t | dest_port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set Broadcast Frame Action.
| [in] | ptr | TSW peripheral base address |
| [in] | dest_port | Destination port number |
| void tsw_set_cam_vlan_port | ( | TSW_Type * | ptr | ) |
#include <drivers/inc/hpm_tsw_drv.h>
CAM VLAN Setting.
| [in] | ptr | TSW peripheral base address |
| [in] | dst_port | Destination port number |
| void tsw_set_internal_frame_action | ( | TSW_Type * | ptr, |
| uint8_t | dest_port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set Internal Frame Action.
| [in] | ptr | TSW peripheral base address |
| [in] | dest_port | Destination port number |
| void tsw_set_lookup_table | ( | TSW_Type * | ptr, |
| uint16_t | entry_num, | ||
| uint8_t | dest_port, | ||
| uint64_t | dest_mac | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set Lookup Table.
| [in] | ptr | TSW peripheral base address |
| [in] | entry_num | Entry number |
| [in] | dest_port | Destination port number |
| [in] | dest_mac | Destination MAC address |
| void tsw_set_port_clock_delay | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | tx_dly, | ||
| uint8_t | rx_dly | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TSW port clock delay.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | tx_dly | TSW port TX clock delay |
| [in] | rx_dly | TSW port RX clock delay |
| void tsw_set_port_interface | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | itf | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TSW port interface type.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | itf | TSW port speed tsw_port_phy_itf_t |
| void tsw_set_port_speed | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | speed | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TSW port speed.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port number |
| [in] | speed | TSW port speed tsw_port_speed_t |
| hpm_stat_t tsw_set_pps_tod_output | ( | TSW_Type * | ptr | ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set pps tod output.
| [in] | ptr | TSW peripheral base address |
| hpm_stat_t tsw_set_rtc_offset | ( | TSW_Type * | ptr, |
| int64_t | sec, | ||
| uint32_t | nsec | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set RTC offset.
| [in] | ptr | TSW peripheral base address |
| [in] | sec | seconds |
| [in] | nsec | nanoseconds |
| hpm_stat_t tsw_set_rtc_offset_change | ( | TSW_Type * | ptr, |
| uint32_t | change | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set RTC offset change.
| [in] | ptr | TSW peripheral base address |
| [in] | change | offset change |
| hpm_stat_t tsw_set_rtc_time_increment | ( | TSW_Type * | ptr, |
| uint32_t | increment | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set RTC timer increment value.
| [in] | ptr | TSW peripheral base address |
| [in] | increment | local time increment |
| hpm_stat_t tsw_set_tsync_timer_hclkdiv | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | host_clkdiv | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TSYNC timer host clock divider.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | host_clkdiv | TSYNC timer host clock divider |
| void tsw_set_unknown_frame_action | ( | TSW_Type * | ptr, |
| uint8_t | dest_port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set Unknow Frame Action.
| [in] | ptr | TSW peripheral base address |
| [in] | dest_port | Destination port number |
| hpm_stat_t tsw_shap_disable_tas | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Disable TAS.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| hpm_stat_t tsw_shap_enable_tas | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Enable TAS.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| hpm_stat_t tsw_shap_get_tas_controllist | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | index, | ||
| tsw_tas_controllist_entry_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
SHAP get tas controllist.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | index | Index of the traffic queue |
| [out] | entry | Pointer to a structure of tsw_shap_tas_controllist_config_t tsw_shap_tas_controllist_config_t |
| hpm_stat_t tsw_shap_get_tas_crsr | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | crsr | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get TAS cycle time.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| crsr[out] | TAS Status |
| hpm_stat_t tsw_shap_get_tas_listlen | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_shap_tas_listlen_t * | listlen | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSW get shap tas listlen.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [out] | listlen | TAS listlen |
| hpm_stat_t tsw_shap_get_tas_max_sdu_ticks | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | index, | ||
| uint32_t * | ticks | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Get tas maximum SDU ticks.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | index | Index of the traffic queue |
| [out] | ticks | Maximum SDU ticks |
| hpm_stat_t tsw_shap_set_cbs | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | index, | ||
| tsw_cbs_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set CBS config.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| index[in] | Traffic queue index |
| config[in] | Pointer to CBS config tsw_cbs_config_t |
| hpm_stat_t tsw_shap_set_tas | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| tsw_tas_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TAS config.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| config[in] | Pointer to TAS config tsw_tas_config_t |
| hpm_stat_t tsw_shap_set_tas_basetime | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | basetime_sec, | ||
| uint32_t | basetime_ns | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TAS base time.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| basetime_sec[in] | second part of base time |
| basetime_ns[in] | nanosecond part of base time |
| hpm_stat_t tsw_shap_set_tas_controllist | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | index, | ||
| tsw_tas_controllist_entry_t * | entry | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
SHAP set tas controllist.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | index | Index of the controllist |
| [in] | entry | Pointer to a structure of tsw_shap_tas_listlen_t tsw_shap_tas_listlen_t |
| hpm_stat_t tsw_shap_set_tas_cycletime | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | cycle_time | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
SHAP set tas cycle.
Set TAS cycle time.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | cycle_time | TAS cycle time |
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| cycle_time[in] | cycle time |
| hpm_stat_t tsw_shap_set_tas_listlen | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | listlen | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set TAS list length.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| listlen[in] | list length |
| hpm_stat_t tsw_shap_set_tas_max_sdu_ticks | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | index, | ||
| uint32_t | ticks | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Set tas maximum SDU ticks.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | index | Index of the traffic queue |
| [in] | ticks | Maximum SDU ticks |
| hpm_stat_t tsw_shap_tas_change_config | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
Trigger to change TAS config.
| ptr[in] | TSW peripheral base address |
| port[in] | TSW port |
| hpm_stat_t tsw_tsync_clear_overflow | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC clear overflow status.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| hpm_stat_t tsw_tsync_clear_txdone | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | done | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC clear tx done status.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | done | Tx done status |
| hpm_stat_t tsw_tsync_disable_current_events | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | disabled | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC disable current events.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [out] | disa | Disable current events |
| hpm_stat_t tsw_tsync_get_rxstatus | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t * | ov, | ||
| uint8_t * | avnxt, | ||
| uint8_t * | rxsel | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC get RX status.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [out] | ov | Overflow status |
| [out] | rxstatus | RX status |
| hpm_stat_t tsw_tsync_get_rxtimestamp | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | timestamplo, | ||
| uint32_t * | timestamphi | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC get RX timestamp.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [out] | timestamplo | TSYNC RX timestamp low |
| [out] | timestamphi | TSYNC RX timestamp high |
| hpm_stat_t tsw_tsync_get_tmrdone | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | done | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC get tmr done status.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | done | Tmr done status |
| hpm_stat_t tsw_tsync_get_txdone | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t * | done | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC get tx done status.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [out] | done | Tx done status |
| hpm_stat_t tsw_tsync_get_txtimestamp | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | bin, | ||
| uint32_t * | timestamplo, | ||
| uint32_t * | timestamphi | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC get TX timestamp.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | bin | TSYNC bin |
| [out] | timestamplo | TSYNC TX timestamp low |
| [out] | timestamphi | TSYNC TX timestamp high |
| hpm_stat_t tsw_tsync_next_rxbuffer | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC next RX buffer.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| hpm_stat_t tsw_tsync_timer_control | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint8_t | index, | ||
| uint32_t | period, | ||
| uint32_t | enable | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC timer control.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | index | TSYNC timer index |
| [in] | period | TSYNC timer period |
| [in] | enable | TSYNC timer enable |
| hpm_stat_t tsw_tsync_timer_interrupt_enable | ( | TSW_Type * | ptr, |
| uint8_t | port | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC timer interrupt enable.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| hpm_stat_t tsw_tsync_trigger_tx | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | bin | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC trigger TX.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | bin | TSYNC bin |
| hpm_stat_t tsw_tsync_update_data | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | bin, | ||
| uint32_t | binofs, | ||
| uint32_t | srcaddr, | ||
| uint8_t | lenbytes | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC update data.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | bin | TSYNC bin |
| [in] | binofs | TSYNC bin offset |
| [in] | srcaddr | Source address of data to be updated |
| [in] | lenbytes | Length in bytes |
| hpm_stat_t tsw_tsync_update_len | ( | TSW_Type * | ptr, |
| uint8_t | port, | ||
| uint32_t | bin, | ||
| uint8_t | lenbytes, | ||
| uint8_t | tqueue | ||
| ) |
#include <drivers/inc/hpm_tsw_drv.h>
TSYNC update length.
| [in] | ptr | TSW peripheral base address |
| [in] | port | TSW port |
| [in] | bin | TSYNC bin |
| [in] | lenbytes | Length in bytes |