#ifndef _RDD_STUBS_H_ #define _RDD_STUBS_H_ #include "rdd_defs.h" #include "bdmf_interface.h" #include "rdpa_egress_tm.h" /* Temporary stuff to make rdpa_ingress_class.c compile */ #define BL_LILAC_RDD_CPU_BRIDGE_PORT 12 typedef enum { RDD_SUBNET_FLOW_CACHE = 0, RDD_SUBNET_BRIDGE, RDD_SUBNET_BRIDGE_IPTV, RDD_SUBNET_LAN, } rdd_subnet_id_t; typedef struct { uint16_t vid; rdd_vport_vector_t isolation_mode_port_vector; rdd_vport_vector_t aggregation_mode_port_vector; uint16_t aggregation_vid_index; } rdd_lan_vid_cfg_t; typedef enum { RDD_IC_LKP_MODE_IH = 0, RDD_IC_LKP_MODE_OPTIMIZED, RDD_IC_LKP_MODE_SHORT, RDD_IC_LKP_MODE_LONG, } rdd_ic_lkp_mode_t; static inline int rdd_mac_entry_delete(bdmf_mac_t *mac_addr, bdmf_boolean is_dynamic) { RDD_BTRACE("mac_addr = %p, is_dynamic = %d\n", mac_addr, is_dynamic); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_sa_mac_lkp_cfg(rdd_vport_id_t vport, bdmf_boolean enable) { RDD_BTRACE("vport = %d, enable = %d\n", vport, enable); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_unknown_sa_mac_cmd_cfg(rdd_vport_id_t vport, rdpa_forward_action slf_cmd) { RDD_BTRACE("vport = %d, slf_cmd = %d\n", vport, slf_cmd); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_da_mac_lkp_cfg(rdd_vport_id_t vport, bdmf_boolean enable) { RDD_BTRACE("vport = %d, enable = %d\n", vport, enable); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_unknown_da_mac_cmd_cfg(rdd_vport_id_t vport, rdpa_forward_action dlf_cmd) { RDD_BTRACE("vport = %d, dlf_cmd = %d\n", vport, dlf_cmd); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_lan_vid_entry_cfg(uint32_t entry_idx, rdd_lan_vid_cfg_t *cfg) { RDD_BTRACE("entry_idx = %d, cfg = %p\n", entry_idx, cfg); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_us_vlan_aggregation_config(rdd_vport_id_t vport, bdmf_boolean enable) { RDD_BTRACE("vport = %d, enable %d\n", vport, enable); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_broadcom_switch_ports_mapping_table_config(rdd_vport_id_t vport, uint8_t broadcom_switch_port) { RDD_BTRACE("vport = %d, broadcom_switch_port = %d\n", vport, broadcom_switch_port); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline int rdd_wan_channel_rate_limiter_cfg(rdd_wan_channel_id_t channel_id, bdmf_boolean rate_limiter_enabled, rdpa_tm_orl_prty prio) { RDD_BTRACE("channel_id = %d, rate_limiter_enabled = %d, prio = %d\n", channel_id, rate_limiter_enabled, prio); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline void rdd_us_overall_rate_limiter_cfg(rdd_rate_limit_params_t *budget) { RDD_BTRACE("budget = %p\n", budget); RDD_TRACE("This is stub function, consider to implement\n"); } static inline int rdd_service_queue_pm_counters_get(uint32_t service_queue, rdd_service_queue_pm_counters_t *counters) { RDD_BTRACE("service_queue = %d, counters = %p\n", service_queue, counters); RDD_TRACE("This is stub function, consider to implement\n"); return 0; } static inline void rdd_service_queue_overall_rate_limiter_enable(bdmf_boolean enable) { RDD_BTRACE("enable = %d\n", enable); RDD_TRACE("This is stub function, consider to implement\n"); } static inline void rdd_service_queue_cfg(rdd_tx_queue_id_t queue_id, uint16_t pkt_threshold, rdd_rate_limiter_t rate_limiter, rdd_queue_profile_id_t profile_id) { RDD_BTRACE("queue_id = %d, pkt_threshold = %d, rate_limiter = %d, profile_id = %d\n", queue_id, pkt_threshold, rate_limiter, profile_id); RDD_TRACE("This is stub function, consider to implement\n"); } static inline void rdd_service_queue_addr_cfg (rdd_tx_queue_id_t queue_id, uint32_t ddr_address, uint16_t queue_size) { RDD_BTRACE("queue_id = %d, ddr_address = %x, queue_size = %d\n", queue_id, ddr_address, queue_size); RDD_TRACE("This is stub function, consider to implement\n"); } static inline void rdd_service_queue_overall_rate_limiter_cfg(rdd_rate_limit_params_t *budget) { RDD_BTRACE( "budget = %p\n", budget); RDD_TRACE("This is stub function, consider to implement\n"); } static inline void rdd_service_queue_rate_limiter_cfg(uint32_t rate_limiter, rdd_rate_cntrl_params_t *budget) { RDD_BTRACE("rate_limiter = %d, budget = %p\n", rate_limiter, budget); RDD_TRACE("This is stub function, consider to implement\n"); } #endif