summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-11-23 20:15:22 +0300
committerMarek Vasut <marek.vasut+renesas@gmail.com>2019-11-25 15:28:53 +0300
commite91a411938afcbdf191df52448216e41bbcbd288 (patch)
tree0134ecb8fbd8092c330353d0de1784f23f931bf9 /include
parent87e91bccaee63d70fd3ada0bee5e861edf8967a5 (diff)
downloadu-boot-e91a411938afcbdf191df52448216e41bbcbd288.tar.xz
usb: kbd: move USB_KBD_BOOT_REPORT_SIZE to usb.h
Move constant USB_KBD_BOOT_REPORT_SIZE. This allows us to reuse it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h
index bcad552f85..efb67ea33f 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -242,6 +242,12 @@ int usb_host_eth_scan(int mode);
#ifdef CONFIG_USB_KEYBOARD
+/*
+ * USB Keyboard reports are 8 bytes in boot protocol.
+ * Appendix B of HID Device Class Definition 1.11
+ */
+#define USB_KBD_BOOT_REPORT_SIZE 8
+
int drv_usb_kbd_init(void);
int usb_kbd_deregister(int force);