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

eth_drv.h (766B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  */
      7 
      8 #ifndef ETH_DRV_H
      9 #define ETH_DRV_H
     10 
     11 typedef int (*rx_cb)(int unit, unsigned char *buf, int len, void *cookie);
     12 
     13 extern int eth_drv_init(int unit);
     14 extern int eth_drv_register(int unit, rx_cb _rx, void *cookie);
     15 extern int eth_drv_unregister(int unit, rx_cb _rx);
     16 extern int eth_drv_start(int unit);
     17 extern int eth_drv_stop(int unit);
     18 extern int eth_drv_tx(int unit, unsigned char * pkt, int len, void *cookie);
     19 extern int eth_drv_get_mac(int unit, unsigned char *mac);
     20 extern void et_drv_mii_rx(int unit, unsigned char *b, int *l);
     21 
     22 #endif /* ETH_DRV_H */