diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-06-24 02:30:02 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-06-24 02:30:02 +0000 |
commit | dc0788739aaaf15b40f6d2fded382c167e26133d (patch) | |
tree | 6e82b2865a1b1c3596523a9b28c7c73c29ffd4ec /sys/dev/usb/usbdi.h | |
parent | 1d215b1285ab0897c64a473f1b6b30f0311b87d0 (diff) | |
download | FreeBSD-src-dc0788739aaaf15b40f6d2fded382c167e26133d.zip FreeBSD-src-dc0788739aaaf15b40f6d2fded382c167e26133d.tar.gz |
- Move all USB device ID arrays into so-called sections,
sorted according to the mode which they support:
host, device or dual mode
- Add generic tool to extract these data:
tools/bus_autoconf
Discussed with: imp
Suggested by: Robert Millan <rmh@debian.org>
PR: misc/157903
MFC after: 14 days
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index 91cd3fa..a216879 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -228,6 +228,18 @@ struct usb_config { }; /* + * Use these macro when defining USB device ID arrays if you want to + * have your driver module automatically loaded in host, device or + * both modes respectivly: + */ +#define STRUCT_USB_HOST_ID \ + struct usb_device_id __section("usb_host_id") +#define STRUCT_USB_DEVICE_ID \ + struct usb_device_id __section("usb_device_id") +#define STRUCT_USB_DUAL_ID \ + struct usb_device_id __section("usb_dual_id") + +/* * The following structure is used when looking up an USB driver for * an USB device. It is inspired by the Linux structure called * "usb_device_id". |