diff options
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r-- | sys/dev/usb/usb_port.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 30e8225..c7a705b 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -107,6 +107,8 @@ __CONCAT(dname,_match)(parent, match, aux) \ #define USB_MATCH_START(dname, uaa) \ struct usb_attach_arg *uaa = aux +#define USB_MATCH_SETUP /* nop */ + #define USB_ATTACH(dname) \ void \ __CONCAT(dname,_attach)(parent, self, aux) \ @@ -221,6 +223,8 @@ __CONCAT(dname,_match)(parent, match, aux) \ #define USB_MATCH_START(dname, uaa) \ struct usb_attach_arg *uaa = aux +#define USB_MATCH_SETUP /* nop */ + #define USB_ATTACH(dname) \ void \ __CONCAT(dname,_attach)(parent, self, aux) \ @@ -332,6 +336,9 @@ __CONCAT(dname,_match)(device_t self) #define USB_MATCH_START(dname, uaa) \ struct usb_attach_arg *uaa = device_get_ivars(self) +#define USB_MATCH_SETUP \ + sc->sc_dev = self + #define USB_ATTACH(dname) \ Static int \ __CONCAT(dname,_attach)(device_t self) |