xref: /OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/falcon/tx.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /****************************************************************************
3*4882a593Smuzhiyun  * Driver for Solarflare network controllers and boards
4*4882a593Smuzhiyun  * Copyright 2005-2006 Fen Systems Ltd.
5*4882a593Smuzhiyun  * Copyright 2006-2015 Solarflare Communications Inc.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun #ifndef EF4_TX_H
9*4882a593Smuzhiyun #define EF4_TX_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <linux/types.h>
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /* Driver internal tx-path related declarations. */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun unsigned int ef4_tx_limit_len(struct ef4_tx_queue *tx_queue,
16*4882a593Smuzhiyun 			      dma_addr_t dma_addr, unsigned int len);
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun u8 *ef4_tx_get_copy_buffer_limited(struct ef4_tx_queue *tx_queue,
19*4882a593Smuzhiyun 				   struct ef4_tx_buffer *buffer, size_t len);
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun int ef4_enqueue_skb_tso(struct ef4_tx_queue *tx_queue, struct sk_buff *skb,
22*4882a593Smuzhiyun 			bool *data_mapped);
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #endif /* EF4_TX_H */
25