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

tx.h (1191B)


      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-2020 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 void
     27 bcm_common_xgs3_async_tx_thread_term(void);
     28 
     29 extern int
     30 bcm_common_tx(int unit, bcm_pkt_t *pkt, void *cookie);
     31 
     32 extern int
     33 bcm_common_tx_array(int unit, bcm_pkt_t **pkt, int count, bcm_pkt_cb_f all_done_cb,
     34 		    void *cookie);
     35 
     36 extern int
     37 bcm_common_tx_list(int unit, bcm_pkt_t *pkt, bcm_pkt_cb_f all_done_cb, void *cookie);
     38 
     39 extern int
     40 bcm_common_tx_pkt_l2_map(int unit, bcm_pkt_t *pkt, bcm_mac_t dest_mac, int vid);
     41 
     42 #if defined(BROADCOM_DEBUG)
     43 extern int
     44 bcm_common_tx_show(int unit);
     45 
     46 extern int
     47 bcm_common_tx_dv_dump(int unit, void *dv_p);
     48 #endif  /* BROADCOM_DEBUG */
     49 
     50 #endif /* _BCM_COMMON_TX_H_ */