forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
....@@ -32,8 +19,9 @@
3219 #define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */
3320 #define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */
3421
35
-#define GELIC_NET_MAX_MTU VLAN_ETH_FRAME_LEN
36
-#define GELIC_NET_MIN_MTU VLAN_ETH_ZLEN
22
+#define GELIC_NET_MAX_FRAME 2312
23
+#define GELIC_NET_MAX_MTU 2294
24
+#define GELIC_NET_MIN_MTU 64
3725 #define GELIC_NET_RXBUF_ALIGN 128
3826 #define GELIC_CARD_RX_CSUM_DEFAULT 1 /* hw chksum */
3927 #define GELIC_NET_WATCHDOG_TIMEOUT 5*HZ
....@@ -314,14 +302,14 @@
314302 */
315303 unsigned int irq;
316304 struct gelic_descr *tx_top, *rx_top;
317
- struct gelic_descr descr[0]; /* must be the last */
305
+ struct gelic_descr descr[]; /* must be the last */
318306 };
319307
320308 struct gelic_port {
321309 struct gelic_card *card;
322310 struct net_device *netdev;
323311 enum gelic_port_type type;
324
- long priv[0]; /* long for alignment */
312
+ long priv[]; /* long for alignment */
325313 };
326314
327315 static inline struct gelic_card *port_to_card(struct gelic_port *p)
....@@ -372,7 +360,7 @@
372360 int gelic_net_stop(struct net_device *netdev);
373361 netdev_tx_t gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev);
374362 void gelic_net_set_multi(struct net_device *netdev);
375
-void gelic_net_tx_timeout(struct net_device *netdev);
363
+void gelic_net_tx_timeout(struct net_device *netdev, unsigned int txqueue);
376364 int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card);
377365
378366 /* shared ethtool ops */