forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/natsemi/sonic.h
....@@ -321,7 +321,6 @@
321321 unsigned int cur_tx; /* first unacked transmit packet */
322322 unsigned int eol_rx;
323323 unsigned int eol_tx; /* last unacked transmit packet */
324
- unsigned int next_tx; /* next free TD */
325324 int msg_enable;
326325 struct device *device; /* generic device */
327326 struct net_device_stats stats;
....@@ -339,9 +338,10 @@
339338 static int sonic_close(struct net_device *dev);
340339 static struct net_device_stats *sonic_get_stats(struct net_device *dev);
341340 static void sonic_multicast_list(struct net_device *dev);
342
-static int sonic_init(struct net_device *dev);
343
-static void sonic_tx_timeout(struct net_device *dev);
341
+static int sonic_init(struct net_device *dev, bool may_sleep);
342
+static void sonic_tx_timeout(struct net_device *dev, unsigned int txqueue);
344343 static void sonic_msg_init(struct net_device *dev);
344
+static int sonic_alloc_descriptors(struct net_device *dev);
345345
346346 /* Internal inlines for reading/writing DMA buffers. Note that bus
347347 size and endianness matter here, whereas they don't for registers,