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

llm_pack.h (2889B)


      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:        llm_pack.h
      8  * Purpose:     Interface to pack and unpack LLM messages.
      9  *              This is to be shared between SDK host and uKernel.
     10  */
     11 
     12 #ifndef   _SOC_SHARED_LLM_PACK_H_
     13 #define   _SOC_SHARED_LLM_PACK_H_
     14 
     15 #ifdef BCM_UKERNEL
     16   /* Build for uKernel not SDK */
     17   #include "sdk_typedefs.h"
     18 #else
     19   #include <sal/types.h>
     20 #endif
     21 
     22 #include <soc/shared/mos_msg_common.h>
     23 extern uint32 shr_max_buffer_get(void);
     24 extern uint8 *shr_llm_msg_ctrl_init_pack    (uint8 *buf, shr_llm_msg_ctrl_init_t *msg);
     25 extern uint8 *shr_llm_msg_ctrl_init_unpack  (uint8 *buf, shr_llm_msg_ctrl_init_t *msg);
     26 extern uint8 *shr_llm_msg_pon_att_pack      (uint8 *buf, shr_llm_msg_pon_att_t *msg);
     27 extern uint8 *shr_llm_msg_pon_att_unpack    (uint8 *buf, shr_llm_msg_pon_att_t *msg);
     28 extern uint8 *shr_llm_msg_app_info_get_pack (uint8 *buf, shr_llm_msg_app_info_get_t *msg);
     29 extern uint8 *shr_llm_msg_app_info_get_unpack(uint8 *buf, shr_llm_msg_app_info_get_t *msg);
     30 extern uint8 *shr_llm_msg_ctrl_config_pack  (uint8 *buf, shr_llm_msg_ctrl_limit_value_t *msg);
     31 extern uint8 *shr_llm_msg_ctrl_config_unpack(uint8 *buf, shr_llm_msg_ctrl_limit_value_t *msg);
     32 extern uint8 *shr_llm_msg_pon_db_pack       (uint8 *buf, shr_llm_PON_ID_attributes_t *msg);
     33 extern uint8 *shr_llm_msg_pon_db_unpack     (uint8 *buf, shr_llm_PON_ID_attributes_t *msg);
     34 extern uint8 *shr_llm_msg_pointer_pool_pack (uint8 *buf, shr_llm_pointer_pool_t *msg);
     35 extern uint8 *shr_llm_msg_pointer_pool_unpack(uint8 *buf, shr_llm_pointer_pool_t *msg);
     36 extern uint8 *shr_llm_msg_pon_db_pack_port  (uint8 *buf, uint32 *port);
     37 extern uint8 *shr_llm_msg_pon_db_unpack_port(uint8 *buf, uint32 *port);
     38 extern uint8 *shr_llm_msg_pon_att_enable_pack(uint8 *buf, shr_llm_msg_pon_att_enable_t *msg);
     39 extern uint8 *shr_llm_msg_pon_att_enable_unpack(uint8 *buf, shr_llm_msg_pon_att_enable_t *msg);
     40 extern uint8 *shr_llm_msg_pon_att_update_pack(uint8 *buf, shr_llm_msg_pon_att_update_t *msg);
     41 extern uint8 *shr_llm_msg_pon_att_update_unpack(uint8 *buf, shr_llm_msg_pon_att_update_t *msg);
     42 extern uint8 *shr_llm_msg_pon_att_rx_mode_pack(uint8 *buf, shr_llm_msg_pon_att_rx_mode_t *msg);
     43 extern uint8 *shr_llm_msg_pon_att_rx_mode_unpack(uint8 *buf, shr_llm_msg_pon_att_rx_mode_t *msg);
     44 extern uint8 *shr_llm_msg_pon_att_mac_move_pack(uint8 *buf, shr_llm_msg_pon_att_mac_move_t *msg);
     45 extern uint8 *shr_llm_msg_pon_att_mac_move_unpack(uint8 *buf, shr_llm_msg_pon_att_mac_move_t *msg);
     46 extern uint8 *shr_llm_msg_pon_att_mac_move_event_pack(uint8 *buf, shr_llm_msg_pon_att_mac_move_event_t *msg);
     47 extern uint8 *shr_llm_msg_pon_att_mac_move_event_unpack(uint8 *buf, shr_llm_msg_pon_att_mac_move_event_t *msg);
     48 #endif /* _SOC_SHARED_LLM_PACK_H_ */