.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * PS3 Platfom gelic network driver. |
---|
3 | 4 | * |
---|
.. | .. |
---|
10 | 11 | * |
---|
11 | 12 | * Authors : Utz Bacher <utz.bacher@de.ibm.com> |
---|
12 | 13 | * 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. |
---|
27 | 14 | */ |
---|
28 | 15 | #ifndef _GELIC_NET_H |
---|
29 | 16 | #define _GELIC_NET_H |
---|
.. | .. |
---|
32 | 19 | #define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */ |
---|
33 | 20 | #define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */ |
---|
34 | 21 | |
---|
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 |
---|
37 | 25 | #define GELIC_NET_RXBUF_ALIGN 128 |
---|
38 | 26 | #define GELIC_CARD_RX_CSUM_DEFAULT 1 /* hw chksum */ |
---|
39 | 27 | #define GELIC_NET_WATCHDOG_TIMEOUT 5*HZ |
---|
.. | .. |
---|
314 | 302 | */ |
---|
315 | 303 | unsigned int irq; |
---|
316 | 304 | 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 */ |
---|
318 | 306 | }; |
---|
319 | 307 | |
---|
320 | 308 | struct gelic_port { |
---|
321 | 309 | struct gelic_card *card; |
---|
322 | 310 | struct net_device *netdev; |
---|
323 | 311 | enum gelic_port_type type; |
---|
324 | | - long priv[0]; /* long for alignment */ |
---|
| 312 | + long priv[]; /* long for alignment */ |
---|
325 | 313 | }; |
---|
326 | 314 | |
---|
327 | 315 | static inline struct gelic_card *port_to_card(struct gelic_port *p) |
---|
.. | .. |
---|
372 | 360 | int gelic_net_stop(struct net_device *netdev); |
---|
373 | 361 | netdev_tx_t gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev); |
---|
374 | 362 | 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); |
---|
376 | 364 | int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card); |
---|
377 | 365 | |
---|
378 | 366 | /* shared ethtool ops */ |
---|