.. | .. |
---|
321 | 321 | unsigned int cur_tx; /* first unacked transmit packet */ |
---|
322 | 322 | unsigned int eol_rx; |
---|
323 | 323 | unsigned int eol_tx; /* last unacked transmit packet */ |
---|
324 | | - unsigned int next_tx; /* next free TD */ |
---|
325 | 324 | int msg_enable; |
---|
326 | 325 | struct device *device; /* generic device */ |
---|
327 | 326 | struct net_device_stats stats; |
---|
.. | .. |
---|
339 | 338 | static int sonic_close(struct net_device *dev); |
---|
340 | 339 | static struct net_device_stats *sonic_get_stats(struct net_device *dev); |
---|
341 | 340 | 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); |
---|
344 | 343 | static void sonic_msg_init(struct net_device *dev); |
---|
| 344 | +static int sonic_alloc_descriptors(struct net_device *dev); |
---|
345 | 345 | |
---|
346 | 346 | /* Internal inlines for reading/writing DMA buffers. Note that bus |
---|
347 | 347 | size and endianness matter here, whereas they don't for registers, |
---|