forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/net/ethernet/toshiba/ps3_gelic_net.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * PS3 Platfom gelic network driver.
34 *
....@@ -10,20 +11,6 @@
1011 *
1112 * Authors : Utz Bacher <utz.bacher@de.ibm.com>
1213 * Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License as published by
16
- * the Free Software Foundation; either version 2, or (at your option)
17
- * any later version.
18
- *
19
- * This program is distributed in the hope that it will be useful,
20
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
- * GNU General Public License for more details.
23
- *
24
- * You should have received a copy of the GNU General Public License
25
- * along with this program; if not, write to the Free Software
26
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2714 */
2815 #ifndef _GELIC_NET_H
2916 #define _GELIC_NET_H
....@@ -314,14 +301,14 @@
314301 */
315302 unsigned int irq;
316303 struct gelic_descr *tx_top, *rx_top;
317
- struct gelic_descr descr[0]; /* must be the last */
304
+ struct gelic_descr descr[]; /* must be the last */
318305 };
319306
320307 struct gelic_port {
321308 struct gelic_card *card;
322309 struct net_device *netdev;
323310 enum gelic_port_type type;
324
- long priv[0]; /* long for alignment */
311
+ long priv[]; /* long for alignment */
325312 };
326313
327314 static inline struct gelic_card *port_to_card(struct gelic_port *p)
....@@ -372,7 +359,7 @@
372359 int gelic_net_stop(struct net_device *netdev);
373360 netdev_tx_t gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev);
374361 void gelic_net_set_multi(struct net_device *netdev);
375
-void gelic_net_tx_timeout(struct net_device *netdev);
362
+void gelic_net_tx_timeout(struct net_device *netdev, unsigned int txqueue);
376363 int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card);
377364
378365 /* shared ethtool ops */