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

bfd_sdk_pack.h (1933B)


      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:    bfd_feature.h
      8  */
      9 
     10 #ifndef BFD_SDK_PACK_H_
     11 #define BFD_SDK_PACK_H_
     12 
     13 #if defined(INCLUDE_BFD)
     14 
     15 #include <soc/shared/bfd_msg.h>
     16 #include <bcm_int/esw/bfd_feature.h>
     17 #include <soc/defs.h>
     18 #include <bcm_int/esw/bfd_sdk_msg.h>
     19 
     20 uint8 *
     21 bfd_sdk_msg_ctrl_init_pack(uint8 *buf, bfd_sdk_msg_ctrl_init_t *msg);
     22 
     23 
     24 uint8 *bfd_sdk_msg_ctrl_stat_reply_unpack(uint8 *buf, bfd_sdk_msg_ctrl_stat_reply_t *msg,
     25                                           uint8 stat64bit);
     26 
     27 uint8 *bfd_sdk_msg_ctrl_stat_req_pack(uint8 *buf, bfd_sdk_msg_ctrl_stat_req_t *msg);
     28 
     29 uint8 * bfd_sdk_version_exchange_msg_unpack(uint8 *buf,
     30                                     bfd_sdk_version_exchange_msg_t *msg);
     31 
     32 uint8 * bfd_sdk_version_exchange_msg_pack(uint8 *buf,
     33                                     bfd_sdk_version_exchange_msg_t *msg);
     34 
     35 uint8 *
     36 bfd_sdk_msg_ctrl_sess_set_pack(uint8 *buf,
     37                                bfd_sdk_msg_ctrl_sess_set_t *msg);
     38 uint8 *
     39 bfd_sdk_msg_ctrl_sess_get_unpack(uint8 *buf,
     40                                  bfd_sdk_msg_ctrl_sess_get_t *msg);
     41 uint8 *
     42 bfd_sdk_msg_ctrl_discard_stat_get_unpack(uint8 *buf,
     43                                          bfd_sdk_msg_ctrl_discard_stat_get_t *msg);
     44 #if defined( BCM_TOMAHAWK_SUPPORT)
     45 uint8 *
     46 bfd_sdk_msg_port_txqueue_map_pack(uint8 *buf,
     47                                 bfd_sdk_msg_port_txqueue_map_t *msg);
     48 #endif
     49 
     50 uint8 * bfd_sdk_msg_ctrl_trace_log_enable_unpack(uint8 *buf,
     51                                                bfd_sdk_msg_ctrl_trace_log_enable_t *msg);
     52 
     53 #if defined(BCM_TRIDENT3_SUPPORT)
     54 uint8 *
     55 bfd_sdk_msg_match_id_map_pack(uint8 *buf,
     56                               bfd_sdk_msg_match_id_map_t *msg);
     57 #endif
     58 
     59 #endif /* INCLUDE_BFD */
     60 
     61 #endif /* BFD_SDK_PACK_H_ */
     62