link.h (1371B)
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_LINK_H__ 14 #define __BCMX_LINK_H__ 15 16 #include <bcmx/lport.h> 17 #include <bcm/port.h> 18 19 /* bcmx_link_notify_f */ 20 typedef void (*bcmx_link_notify_f)( 21 bcmx_lport_t port, 22 bcm_port_info_t *info); 23 24 /* Register and unregister link notification callouts. */ 25 extern int bcmx_linkscan_register( 26 bcmx_link_notify_f ln_cb); 27 28 /* Register and unregister link notification callouts. */ 29 extern int bcmx_linkscan_unregister( 30 bcmx_link_notify_f ln_cb); 31 32 /* Enable and disable link scanning, or set the polling interval. */ 33 extern int bcmx_linkscan_enable_set( 34 int us); 35 36 /* Get link scanning polling interval. */ 37 extern int bcmx_linkscan_enable_get( 38 int *us, 39 int *consistent); 40 41 /* Retrieve if linkscan managing a specified port. */ 42 extern int bcmx_linkscan_enable_port_get( 43 bcmx_lport_t lport); 44 45 /* Add unit to link scanning. */ 46 extern int bcmx_linkscan_device_add( 47 int bcm_unit); 48 49 /* Remove unit from link scanning. */ 50 extern int bcmx_linkscan_device_remove( 51 int bcm_unit); 52 53 #endif /* __BCMX_LINK_H__ */