openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

tomahawk2_idb_flexport.h (4874B)


      1 /*
      2 * 
      3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4 * 
      5 * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6 *
      7 * $File:  tomahawk2_idb_flexport.h
      8 */
      9 
     10 
     11 #ifndef TOMAHAWK2_IDB_FLEXPORT_H
     12 #define TOMAHAWK2_IDB_FLEXPORT_H
     13 
     14 extern int soc_tomahawk2_get_pipe_from_phy_pnum(int pnum);
     15 
     16 
     17 extern int soc_tomahawk2_get_pm_from_phy_pnum(int pnum);
     18 
     19 
     20 extern int soc_tomahawk2_get_subp_from_phy_pnum(int pnum);
     21 
     22 
     23 extern int soc_tomahawk2_idb_init_pnum_mapping_tbl(
     24     int unit, soc_port_schedule_state_t *port_schedule_state);
     25 
     26 
     27 extern int soc_tomahawk2_idb_invalidate_pnum_mapping_tbl(
     28     int unit, soc_port_schedule_state_t *port_schedule_state);
     29 
     30 
     31 extern int soc_tomahawk2_idb_clear_stats_new_ports(
     32     int unit, soc_port_schedule_state_t *port_schedule_state);
     33 
     34 
     35 extern int soc_tomahawk2_idb_obm_reset_buffer(int unit, int pipe_num,
     36                                               int pm_num, int subp,
     37                                               int reset_buffer);
     38 
     39 
     40 extern int soc_tomahawk2_idb_ca_reset_buffer(int unit, int pipe_num, int pm_num,
     41                                              int subp,
     42                                              int reset_buffer);
     43 
     44 extern int soc_tomahawk2_idb_lpbk_ca_reset_buffer(int unit, int pipe_num,
     45                                                   int reset_buffer);
     46 
     47 extern int soc_tomahawk2_idb_cpu_ca_reset_buffer(int unit, int pipe_num,
     48                                                  int reset_buffer);
     49 
     50 
     51 extern int soc_tomahawk2_idb_port_mode_set(
     52     int unit, soc_port_schedule_state_t *port_schedule_state);
     53 
     54 
     55 extern int soc_tomahawk2_idb_wr_obm_shared_config(int unit, int pipe_num,
     56                                                   int pm_num, int subp,
     57                                                   int num_lanes,
     58                                                   int lossless);
     59 
     60 
     61 extern int soc_tomahawk2_idb_wr_obm_flow_ctrl_cfg(int unit, int pipe_num,
     62                                                   int pm_num,
     63                                                   int subp,
     64                                                   int lossless);
     65 
     66 
     67 extern int soc_tomahawk2_idb_wr_obm_ovs_en(int unit, int pipe_num, int pm_num,
     68                                             int subp);
     69 
     70 extern int soc_tomahawk2_idb_wr_port_ca_sop(int unit,
     71        int pipe_num, int pm_num, int subp, int speed);
     72 
     73 extern int soc_tomahawk2_idb_wr_obm_thresh(int unit, int pipe_num, int pm_num,
     74                                            int subp,
     75                                            int num_lanes,
     76                                            int lossless);
     77 
     78 extern int soc_tomahawk2_idb_wr_obm_fc_threshold(int unit, int pipe_num,
     79                                                  int pm_num, int subp,
     80                                                  int num_lanes,
     81                                                  int lossless);
     82 
     83 extern int soc_tomahawk2_idb_cpu_ca_in_reset(int unit, int pipe_num);
     84 
     85 extern int soc_tomahawk2_idb_lpbk_ca_in_reset(int unit, int pipe_num);
     86 
     87 extern int soc_tomahawk2_idb_obm_poll_buffer_empty(int unit, int pipe_num,
     88                                                    int pm_num,
     89                                                    int subp);
     90 
     91 
     92 extern int soc_tomahawk2_idb_ca_poll_buffer_empty(int unit, int pipe_num,
     93                                                   int pm_num,
     94                                                   int subp);
     95 
     96 extern int soc_tomahawk2_idb_ca_cpu_poll_buffer_empty(
     97        int unit, int pipe_num);
     98 
     99 
    100 extern int soc_tomahawk2_idb_ca_lpbk_poll_buffer_empty(
    101        int unit, int pipe_num);
    102 
    103 
    104 extern int soc_tomahawk2_speed_to_bmop_class_map(int speed);
    105 
    106 
    107 extern int soc_tomahawk2_flex_dis_forwarding_traffic(
    108     int unit, soc_port_schedule_state_t *port_schedule_state);
    109 
    110 
    111 extern int soc_tomahawk2_flex_en_forwarding_traffic(
    112     int unit, soc_port_schedule_state_t *port_schedule_state);
    113 
    114 
    115 extern int soc_tomahawk2_idb_obm_port_config_set(
    116     int unit, soc_port_schedule_state_t *port_schedule_state);
    117 
    118 
    119 extern int soc_tomahawk2_idb_obm_dscp_map_set(
    120     int unit, soc_port_schedule_state_t *port_schedule_state);
    121 
    122 
    123 extern int soc_tomahawk2_idb_obm_bubble_mop_set(
    124     int unit, soc_port_schedule_state_t *port_schedule_state);
    125 
    126 
    127 extern int soc_tomahawk2_idb_obm_force_saf_set(
    128     int unit, soc_port_schedule_state_t *port_schedule_state);
    129 
    130 
    131 extern int soc_tomahawk2_flex_idb_port_down(
    132     int unit, soc_port_schedule_state_t *port_schedule_state);
    133 
    134 
    135 extern int soc_tomahawk2_flex_idb_reconfigure(
    136     int unit, soc_port_schedule_state_t *port_schedule_state);
    137 
    138 
    139 extern int soc_tomahawk2_flex_idb_port_up(
    140     int unit, soc_port_schedule_state_t *port_schedule_state);
    141 
    142 
    143 extern int soc_tomahawk2_idb_flexport(
    144     int unit, soc_port_schedule_state_t *port_schedule_state);
    145 
    146 
    147 #endif