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

failover.h (1172B)


      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_FAILOVER_H__
     14 #define __BCMX_FAILOVER_H__
     15 
     16 #include <bcm/types.h>
     17 #include <bcmx/bcmx.h>
     18 #include <bcm/failover.h>
     19 
     20 /* Initialize failover module. */
     21 extern int bcmx_failover_init(void);
     22 
     23 /* Detach failover module. */
     24 extern int bcmx_failover_cleanup(void);
     25 
     26 /* Create a failover object. */
     27 extern int bcmx_failover_create(
     28     uint32 flags, 
     29     bcm_failover_t *failover_id);
     30 
     31 /* Destroy a failover object. */
     32 extern int bcmx_failover_destroy(
     33     bcm_failover_t failover_id);
     34 
     35 /* 
     36  * Set a failover object to enable or disable (note that failover object
     37  * 0 is reserved.
     38  */
     39 extern int bcmx_failover_set(
     40     bcm_failover_t failover_id, 
     41     int enable);
     42 
     43 /* Get the enable status of a failover object. */
     44 extern int bcmx_failover_get(
     45     bcm_failover_t failover_id, 
     46     int *enable);
     47 
     48 #endif /* __BCMX_FAILOVER_H__ */