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

rx.h (1420B)


      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_RX_H__
     14 #define __BCMX_RX_H__
     15 
     16 #include <bcm/rx.h>
     17 #include <bcm/pkt.h>
     18 #include <bcmx/lplist.h>
     19 
     20 /* Start the BCMX RX subsystem. */
     21 extern int bcmx_rx_start(void);
     22 
     23 /* Stop the BCMX RX software module. */
     24 extern int bcmx_rx_stop(void);
     25 
     26 /* Indication of whether the BCMX RX layer is running. */
     27 extern int bcmx_rx_running(void);
     28 
     29 /* Register or unregister to receive callbacks for received packets. */
     30 extern int bcmx_rx_register(
     31     const char *name, 
     32     bcm_rx_cb_f fn, 
     33     int priority, 
     34     void *cookie, 
     35     uint32 flags);
     36 
     37 /* Register or unregister to receive callbacks for received packets. */
     38 extern int bcmx_rx_unregister(
     39     bcm_rx_cb_f fn, 
     40     int pri);
     41 
     42 /* Configure RX operating modes. */
     43 extern int bcmx_rx_control_set(
     44     bcm_rx_control_t type, 
     45     int arg);
     46 
     47 /* Get RX operating modes. */
     48 extern int bcmx_rx_control_get(
     49     bcm_rx_control_t type, 
     50     int *arg);
     51 
     52 /* For internal use only. */
     53 extern int bcmx_rx_device_add(
     54     int unit);
     55 
     56 /* For internal use only. */
     57 extern int bcmx_rx_device_remove(
     58     int unit);
     59 
     60 #endif /* __BCMX_RX_H__ */