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

custom.h (1467B)


      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 __BCM_CUSTOM_H__
     14 #define __BCM_CUSTOM_H__
     15 
     16 #include <bcm/types.h>
     17 
     18 #if !defined(BCM_CUSTOM_ARGS_MAX)
     19 #define BCM_CUSTOM_ARGS_MAX     256        
     20 #endif
     21 
     22 #define BCM_CUSTOM_SET          1          
     23 #define BCM_CUSTOM_GET          2          
     24 
     25 /* bcm_custom_cb_t */
     26 typedef int (*bcm_custom_cb_t)(
     27     int unit, 
     28     bcm_port_t port, 
     29     int setget, 
     30     int type, 
     31     int length, 
     32     uint32 *args, 
     33     int *actual_length, 
     34     void *user_data);
     35 
     36 #ifndef BCM_HIDE_DISPATCHABLE
     37 
     38 /* Register a custom callback function. */
     39 extern int bcm_custom_register(
     40     int unit, 
     41     bcm_custom_cb_t func, 
     42     void *user_data);
     43 
     44 /* Register a custom callback function. */
     45 extern int bcm_custom_unregister(
     46     int unit);
     47 
     48 /* Invoke a custom handler for a port. */
     49 extern int bcm_custom_port_set(
     50     int unit, 
     51     bcm_port_t port, 
     52     int type, 
     53     int len, 
     54     uint32 *args);
     55 
     56 /* Invoke a custom handler for a port. */
     57 extern int bcm_custom_port_get(
     58     int unit, 
     59     bcm_port_t port, 
     60     int type, 
     61     int max_len, 
     62     uint32 *args, 
     63     int *actual_len);
     64 
     65 #endif /* BCM_HIDE_DISPATCHABLE */
     66 
     67 #endif /* __BCM_CUSTOM_H__ */