.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
---|
3 | 4 | * operating system. NET is implemented using the BSD Socket |
---|
.. | .. |
---|
6 | 7 | * Definitions used by the ARCnet driver. |
---|
7 | 8 | * |
---|
8 | 9 | * Authors: Avery Pennarun and David Woodhouse |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or |
---|
11 | | - * modify it under the terms of the GNU General Public License |
---|
12 | | - * as published by the Free Software Foundation; either version |
---|
13 | | - * 2 of the License, or (at your option) any later version. |
---|
14 | | - * |
---|
15 | 10 | */ |
---|
16 | 11 | #ifndef _LINUX_ARCDEVICE_H |
---|
17 | 12 | #define _LINUX_ARCDEVICE_H |
---|
.. | .. |
---|
303 | 298 | |
---|
304 | 299 | int excnak_pending; /* We just got an excesive nak interrupt */ |
---|
305 | 300 | |
---|
| 301 | + /* RESET flag handling */ |
---|
| 302 | + int reset_in_progress; |
---|
| 303 | + struct work_struct reset_work; |
---|
| 304 | + |
---|
306 | 305 | struct { |
---|
307 | 306 | uint16_t sequence; /* sequence number (incs with each packet) */ |
---|
308 | 307 | __be16 aborted_seq; |
---|
.. | .. |
---|
355 | 354 | |
---|
356 | 355 | void arcnet_unregister_proto(struct ArcProto *proto); |
---|
357 | 356 | irqreturn_t arcnet_interrupt(int irq, void *dev_id); |
---|
| 357 | + |
---|
358 | 358 | struct net_device *alloc_arcdev(const char *name); |
---|
| 359 | +void free_arcdev(struct net_device *dev); |
---|
359 | 360 | |
---|
360 | 361 | int arcnet_open(struct net_device *dev); |
---|
361 | 362 | int arcnet_close(struct net_device *dev); |
---|
362 | 363 | netdev_tx_t arcnet_send_packet(struct sk_buff *skb, |
---|
363 | 364 | struct net_device *dev); |
---|
364 | | -void arcnet_timeout(struct net_device *dev); |
---|
| 365 | +void arcnet_timeout(struct net_device *dev, unsigned int txqueue); |
---|
365 | 366 | |
---|
366 | 367 | /* I/O equivalents */ |
---|
367 | 368 | |
---|