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

flexport_common.h (965B)


      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:  flexport_common.h
      8 */
      9 
     10 
     11 #ifndef FLEXPORT_COMMON_H
     12 #define FLEXPORT_COMMON_H
     13 
     14 
     15 #define EMULATION_FACTOR      10000
     16 
     17 
     18 typedef int (*phase_callback_type)(int, soc_port_schedule_state_t *);
     19 
     20 extern int soc_detach_flex_phase (
     21     int                  unit,
     22     phase_callback_type *flex_phases,
     23     phase_callback_type  phase,
     24     int                 *phase_pos
     25     );
     26 
     27 
     28 extern int soc_attach_flex_phase (
     29     int                  unit,
     30     phase_callback_type *flex_phases,
     31     phase_callback_type  phase,
     32     int                  phase_pos
     33     );
     34 
     35 
     36 extern int soc_check_flex_phase (
     37     int                  unit,
     38     phase_callback_type *flex_phases,
     39     phase_callback_type  phase,
     40     int                 *present
     41     );
     42 
     43 #endif /* FLEXPORT_COMMON_H */