mux_drv.h (833B)
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 MUX_DRV_H 9 #define MUX_DRV_H 10 11 #define ETH_MAX_UNITS 4 12 13 typedef int (*cb_f)(int unit, void *b, int l, void *cookie); 14 typedef void * (*alloc_f)(int l); 15 typedef void (*free_f)(void *b); 16 17 extern int et_drvTxRxInit(char * dev, int unit); 18 extern int et_drvMIIRxHandlerRegister(int unit, cb_f cf, alloc_f af, free_f ff, void *cookie); 19 extern int et_drvMIIRxHandlerUnRegister(int unit, cb_f f); 20 extern int et_drvTx(int unit, unsigned char *b, int l, void *cookie); 21 extern int et_drv_mac_addr_get(int unit, unsigned char *mac); 22 extern void et_drv_start(int unit); 23 extern void et_drv_stop(int unit); 24 25 #endif /* MUX_DRV_H */ 26