diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-01-30 15:26:04 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-01-30 15:26:04 +0000 |
commit | d2b99310b17979e99c03251de3f9bc08dd9219d1 (patch) | |
tree | d05a4f410e0aaa7a44bf2b97f80697614ca4aee5 /sys/dev/usb/usb_lookup.c | |
parent | e1334f935fbf45bf31da6c900569ecea668206c9 (diff) |
Modify the FreeBSD USB kernel code so that it can be compiled directly
into the FreeBSD boot loader, typically for non-USB aware BIOSes, EFI systems
or embedded platforms. This is also useful for out of the system compilation
of the FreeBSD USB stack for various purposes. The USB kernel files can
now optionally include a global header file which should include all needed
definitions required to compile the FreeBSD USB stack. When the global USB
header file is included, no other USB header files will be included by
default.
Add new file containing the USB stack configuration for the
FreeBSD loader build.
Replace some __FBSDID()'s by /* $FreeBSD$ */ comments. Now all
USB files follow the same style.
Use cases:
- console in loader via USB
- loading kernel via USB
Discussed with: Hiroki Sato, hrs @ EuroBSDCon
Notes
Notes:
svn path=/head/; revision=246122
Diffstat (limited to 'sys/dev/usb/usb_lookup.c')
-rw-r--r-- | sys/dev/usb/usb_lookup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_lookup.c b/sys/dev/usb/usb_lookup.c index e03f9b60b24d..769f9b652736 100644 --- a/sys/dev/usb/usb_lookup.c +++ b/sys/dev/usb/usb_lookup.c @@ -24,6 +24,9 @@ * SUCH DAMAGE. */ +#ifdef USB_GLOBAL_INCLUDE_FILE +#include USB_GLOBAL_INCLUDE_FILE +#else #include <sys/stdint.h> #include <sys/stddef.h> #include <sys/param.h> @@ -47,6 +50,7 @@ #include <dev/usb/usb.h> #include <dev/usb/usbdi.h> +#endif /* USB_GLOBAL_INCLUDE_FILE */ /*------------------------------------------------------------------------* * usbd_lookup_id_by_info |