xref: /openbmc/linux/drivers/net/ethernet/sfc/falcon/tx.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
25a6681e2SEdward Cree /****************************************************************************
35a6681e2SEdward Cree  * Driver for Solarflare network controllers and boards
45a6681e2SEdward Cree  * Copyright 2005-2006 Fen Systems Ltd.
55a6681e2SEdward Cree  * Copyright 2006-2015 Solarflare Communications Inc.
65a6681e2SEdward Cree  */
75a6681e2SEdward Cree 
85a6681e2SEdward Cree #ifndef EF4_TX_H
95a6681e2SEdward Cree #define EF4_TX_H
105a6681e2SEdward Cree 
115a6681e2SEdward Cree #include <linux/types.h>
125a6681e2SEdward Cree 
135a6681e2SEdward Cree /* Driver internal tx-path related declarations. */
145a6681e2SEdward Cree 
155a6681e2SEdward Cree unsigned int ef4_tx_limit_len(struct ef4_tx_queue *tx_queue,
165a6681e2SEdward Cree 			      dma_addr_t dma_addr, unsigned int len);
175a6681e2SEdward Cree 
185a6681e2SEdward Cree u8 *ef4_tx_get_copy_buffer_limited(struct ef4_tx_queue *tx_queue,
195a6681e2SEdward Cree 				   struct ef4_tx_buffer *buffer, size_t len);
205a6681e2SEdward Cree 
215a6681e2SEdward Cree int ef4_enqueue_skb_tso(struct ef4_tx_queue *tx_queue, struct sk_buff *skb,
225a6681e2SEdward Cree 			bool *data_mapped);
235a6681e2SEdward Cree 
245a6681e2SEdward Cree #endif /* EF4_TX_H */
25