aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axereg.h
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2004-05-23 12:35:25 +0000
committerIan Dowse <iedowse@FreeBSD.org>2004-05-23 12:35:25 +0000
commiteadf519a78ae697bafce763cc292be1fba6aab4d (patch)
treecf37b7bb9f8310d2b2d6951faea823fc8ff7040d /sys/dev/usb/if_axereg.h
parent5ac85402da7696b2bee9fe1931f76c4badae9283 (diff)
downloadsrc-eadf519a78ae697bafce763cc292be1fba6aab4d.tar.gz
src-eadf519a78ae697bafce763cc292be1fba6aab4d.zip
Replace the static "qdat" structure with a per-instance softc field
in all USB ethernet drivers. The qdat structure contains a pointer to the interface's struct ifnet and is used to process incoming packets, so simultaneous use of two similar devices caused crashes and confusion. The if_udav driver appeared in the tree since Daan's PR, so I made similar changes to that driver too. PR: kern/59290 Submitted by: Daan Vreeken <Danovitsch@Vitsch.net>
Notes
Notes: svn path=/head/; revision=129607
Diffstat (limited to 'sys/dev/usb/if_axereg.h')
-rw-r--r--sys/dev/usb/if_axereg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/if_axereg.h b/sys/dev/usb/if_axereg.h
index c880785e1ccf..a9938f4a229c 100644
--- a/sys/dev/usb/if_axereg.h
+++ b/sys/dev/usb/if_axereg.h
@@ -168,6 +168,7 @@ struct axe_softc {
unsigned char axe_ipgs[3];
unsigned char axe_phyaddrs[2];
struct timeval axe_rx_notice;
+ struct usb_qdat axe_qdat;
};
#if 0