tx.h (1134B)
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 * File: tx.h 8 * Purpose: Internal structures and definitions for TX module 9 */ 10 #ifndef _BCM_COMMON_TX_H_ 11 #define _BCM_COMMON_TX_H_ 12 13 #include <soc/dma.h> 14 #include <bcm/error.h> 15 #include <bcm/tx.h> 16 17 extern int 18 bcm_common_tx_pkt_setup(int unit, bcm_pkt_t *tx_pkt); 19 20 extern int 21 bcm_common_tx_init(int unit); 22 23 extern int 24 bcm_common_tx_deinit(int unit); 25 26 extern int 27 bcm_common_tx(int unit, bcm_pkt_t *pkt, void *cookie); 28 29 extern int 30 bcm_common_tx_array(int unit, bcm_pkt_t **pkt, int count, bcm_pkt_cb_f all_done_cb, 31 void *cookie); 32 33 extern int 34 bcm_common_tx_list(int unit, bcm_pkt_t *pkt, bcm_pkt_cb_f all_done_cb, void *cookie); 35 36 extern int 37 bcm_common_tx_pkt_l2_map(int unit, bcm_pkt_t *pkt, bcm_mac_t dest_mac, int vid); 38 39 #if defined(BROADCOM_DEBUG) 40 extern int 41 bcm_common_tx_show(int unit); 42 43 extern int 44 bcm_common_tx_dv_dump(int unit, void *dv_p); 45 #endif /* BROADCOM_DEBUG */ 46 47 #endif /* _BCM_COMMON_TX_H_ */