hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/arcnet/arcdevice.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * INET An implementation of the TCP/IP protocol suite for the LINUX
34 * operating system. NET is implemented using the BSD Socket
....@@ -6,12 +7,6 @@
67 * Definitions used by the ARCnet driver.
78 *
89 * 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
- *
1510 */
1611 #ifndef _LINUX_ARCDEVICE_H
1712 #define _LINUX_ARCDEVICE_H
....@@ -303,6 +298,10 @@
303298
304299 int excnak_pending; /* We just got an excesive nak interrupt */
305300
301
+ /* RESET flag handling */
302
+ int reset_in_progress;
303
+ struct work_struct reset_work;
304
+
306305 struct {
307306 uint16_t sequence; /* sequence number (incs with each packet) */
308307 __be16 aborted_seq;
....@@ -355,13 +354,15 @@
355354
356355 void arcnet_unregister_proto(struct ArcProto *proto);
357356 irqreturn_t arcnet_interrupt(int irq, void *dev_id);
357
+
358358 struct net_device *alloc_arcdev(const char *name);
359
+void free_arcdev(struct net_device *dev);
359360
360361 int arcnet_open(struct net_device *dev);
361362 int arcnet_close(struct net_device *dev);
362363 netdev_tx_t arcnet_send_packet(struct sk_buff *skb,
363364 struct net_device *dev);
364
-void arcnet_timeout(struct net_device *dev);
365
+void arcnet_timeout(struct net_device *dev, unsigned int txqueue);
365366
366367 /* I/O equivalents */
367368