olp_pack.h (1038B)
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: olp_pack.h 8 * Purpose: Interface to pack and unpack routines common to 9 * SDK and uKernel for: 10 * - OLP Control messages and Network packet headers 11 * 12 * This is to be shared between SDK host and uKernel. 13 */ 14 15 16 #ifndef _SOC_SHARED_OLP_PACK_H_ 17 #define _SOC_SHARED_OLP_PACK_H_ 18 19 #ifdef BCM_UKERNEL 20 /* Build for uKernel not SDK */ 21 #include "sdk_typedefs.h" 22 #else 23 #include <sal/types.h> 24 #endif 25 26 #include <soc/shared/olp_pkt.h> 27 extern uint8 * 28 shr_olp_tx_header_unpack(uint8 *bufp, soc_olp_tx_hdr_t *opt); 29 30 extern uint8 * 31 shr_olp_tx_header_pack(uint8 *bufp, soc_olp_tx_hdr_t *opt); 32 33 extern uint8 * 34 shr_olp_rx_header_unpack(uint8 *bufp, soc_olp_rx_hdr_t *opr); 35 36 extern uint8 * 37 shr_olp_rx_header_pack(uint8 *bufp, soc_olp_rx_hdr_t *opr); 38 #endif /* _SOC_SHARED_OLP_PACK_H_ */ 39