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

mim.h (1978B)


      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_MIM_H__
     14 #define __BCMX_MIM_H__
     15 
     16 #if defined(INCLUDE_L3)
     17 
     18 #include <bcm/types.h>
     19 #include <bcmx/bcmx.h>
     20 #include <bcm/mim.h>
     21 
     22 typedef bcm_mim_vpn_config_t bcmx_mim_vpn_config_t;
     23 
     24 typedef bcm_mim_port_t bcmx_mim_port_t;
     25 
     26 /* Initialize the MIM VPN config structure. */
     27 extern void bcmx_mim_vpn_config_t_init(
     28     bcmx_mim_vpn_config_t *mim_vpn_config);
     29 
     30 /* Initialize the MIM port structure. */
     31 extern void bcmx_mim_port_t_init(
     32     bcmx_mim_port_t *mim_port);
     33 
     34 /* Initialize the MIM subsystem. */
     35 extern int bcmx_mim_init(void);
     36 
     37 /* Detach the MIM software module. */
     38 extern int bcmx_mim_detach(void);
     39 
     40 /* Create a VPN instance. */
     41 extern int bcmx_mim_vpn_create(
     42     bcmx_mim_vpn_config_t *info);
     43 
     44 /* Delete a VPN instance. */
     45 extern int bcmx_mim_vpn_destroy(
     46     bcm_mim_vpn_t vpn);
     47 
     48 /* Delete all VPN instances. */
     49 extern int bcmx_mim_vpn_destroy_all(void);
     50 
     51 /* Get a VPN instance by ID. */
     52 extern int bcmx_mim_vpn_get(
     53     bcm_mim_vpn_t vpn, 
     54     bcmx_mim_vpn_config_t *info);
     55 
     56 /* bcm_mim_port_add */
     57 extern int bcmx_mim_port_add(
     58     bcm_mim_vpn_t vpn, 
     59     bcmx_mim_port_t *mim_port);
     60 
     61 /* bcm_mim_port_delete */
     62 extern int bcmx_mim_port_delete(
     63     bcm_mim_vpn_t vpn, 
     64     bcm_gport_t mim_port_id);
     65 
     66 /* bcm_mim_port_delete_all */
     67 extern int bcmx_mim_port_delete_all(
     68     bcm_mim_vpn_t vpn);
     69 
     70 /* bcm_mim_port_get */
     71 extern int bcmx_mim_port_get(
     72     bcm_mim_vpn_t vpn, 
     73     bcmx_mim_port_t *mim_port);
     74 
     75 /* bcm_mim_port_get_all */
     76 extern int bcmx_mim_port_get_all(
     77     bcm_mim_vpn_t vpn, 
     78     int port_max, 
     79     bcmx_mim_port_t *port_array, 
     80     int *port_count);
     81 
     82 #endif /* defined(INCLUDE_L3) */
     83 
     84 #endif /* __BCMX_MIM_H__ */