subport.h (1546B)
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 * DO NOT EDIT THIS FILE! 9 * This file is auto-generated. 10 * Edits to this file will be lost when it is regenerated. 11 */ 12 13 #ifndef __BCMX_SUBPORT_H__ 14 #define __BCMX_SUBPORT_H__ 15 16 #include <bcm/types.h> 17 #include <bcmx/bcmx.h> 18 #include <bcm/subport.h> 19 20 typedef bcm_subport_group_config_t bcmx_subport_group_config_t; 21 22 typedef bcm_subport_config_t bcmx_subport_config_t; 23 24 /* Initialize the Subport Group Config structure. */ 25 extern void bcmx_subport_group_config_t_init( 26 bcmx_subport_group_config_t *config); 27 28 /* Initialize the Subport Config structure. */ 29 extern void bcmx_subport_config_t_init( 30 bcmx_subport_config_t *config); 31 32 /* Initialize the Subport module. */ 33 extern int bcmx_subport_init(void); 34 35 /* Detach the Subport module. */ 36 extern int bcmx_subport_cleanup(void); 37 38 extern int bcmx_subport_group_create( 39 bcmx_subport_group_config_t *config, 40 bcm_gport_t *group); 41 42 extern int bcmx_subport_group_destroy( 43 bcm_gport_t group); 44 45 extern int bcmx_subport_group_get( 46 bcm_gport_t group, 47 bcmx_subport_group_config_t *config); 48 49 extern int bcmx_subport_port_add( 50 bcmx_subport_config_t *config, 51 bcm_gport_t *port); 52 53 extern int bcmx_subport_port_delete( 54 bcm_gport_t port); 55 56 extern int bcmx_subport_port_get( 57 bcm_gport_t port, 58 bcmx_subport_config_t *config); 59 60 #endif /* __BCMX_SUBPORT_H__ */