xflow_macsec_cmn.h (1004B)
1 /* 2 * 3 * 4 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 * 6 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 7 */ 8 #ifndef XFLOW_MACSEC_CMN_H 9 #define XFLOW_MACSEC_CMN_H 10 11 #if defined(INCLUDE_XFLOW_MACSEC) 12 13 #include <bcm/xflow_macsec.h> 14 #include <esw/xflow_macsec_esw_defs.h> 15 16 #define BCM_XFLOW_MACSEC_SUBPORT_ID_INDEX_GET(subport_id) \ 17 XFLOW_MACSEC_SUBPORT_ID_INDEX_GET(subport_id) 18 19 #define BCM_XFLOW_MACSEC_SUBPORT_ID_DIR_TYPE_GET(subport_id) \ 20 XFLOW_MACSEC_DIR_TYPE_GET(subport_id) 21 22 #define BCM_XFLOW_MACSEC_SUBPORT_ID_CREATE(flag, id) \ 23 XFLOW_MACSEC_SUBPORT_ID_CREATE(flag, id) 24 25 extern int 26 _bcm_common_xflow_macsec_init(int unit); 27 28 extern int 29 _bcm_common_xflow_macsec_intr_register(int unit); 30 31 extern int 32 _bcm_common_xflow_macsec_deinit(int unit); 33 34 extern int 35 _bcm_common_xflow_macsec_sync(int unit); 36 37 #endif /* defined(INCLUDE_XFLOW_MACSEC) */ 38 39 #endif /* XFLOW_MACSEC_CMN_H */ 40