forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/qualcomm/emac/emac-mac.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 /* EMAC DMA HW engine uses three rings:
....@@ -235,8 +227,9 @@
235227 void emac_mac_mode_config(struct emac_adapter *adpt);
236228 void emac_mac_rx_process(struct emac_adapter *adpt, struct emac_rx_queue *rx_q,
237229 int *num_pkts, int max_pkts);
238
-int emac_mac_tx_buf_send(struct emac_adapter *adpt, struct emac_tx_queue *tx_q,
239
- struct sk_buff *skb);
230
+netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt,
231
+ struct emac_tx_queue *tx_q,
232
+ struct sk_buff *skb);
240233 void emac_mac_tx_process(struct emac_adapter *adpt, struct emac_tx_queue *tx_q);
241234 void emac_mac_rx_tx_ring_init_all(struct platform_device *pdev,
242235 struct emac_adapter *adpt);