summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbhid.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-01-30 15:26:04 +0000
committerhselasky <hselasky@FreeBSD.org>2013-01-30 15:26:04 +0000
commit0fbe1630154e5d48b97c66259002053ea2c04768 (patch)
treed05a4f410e0aaa7a44bf2b97f80697614ca4aee5 /sys/dev/usb/usbhid.h
parent3e5ced1b98dca63d150904313752d2ee1cf72802 (diff)
downloadFreeBSD-src-0fbe1630154e5d48b97c66259002053ea2c04768.zip
FreeBSD-src-0fbe1630154e5d48b97c66259002053ea2c04768.tar.gz
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
Diffstat (limited to 'sys/dev/usb/usbhid.h')
-rw-r--r--sys/dev/usb/usbhid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/usbhid.h b/sys/dev/usb/usbhid.h
index f6c447c..28dfede 100644
--- a/sys/dev/usb/usbhid.h
+++ b/sys/dev/usb/usbhid.h
@@ -29,7 +29,9 @@
#ifndef _USB_HID_H_
#define _USB_HID_H_
+#ifndef USB_GLOBAL_INCLUDE_FILE
#include <dev/usb/usb_endian.h>
+#endif
#define UR_GET_HID_DESCRIPTOR 0x06
#define UDESC_HID 0x21
OpenPOWER on IntegriCloud