usb_hid: support for Apple HID devices

Issue #3953
This commit is contained in:
Christian Helmuth 2018-09-14 16:58:35 +02:00 committed by Norman Feske
parent 2a659cb750
commit 496dc5508f
5 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
5b4e9aba1338a6b59d3edbe1b226639ef20c81ab 1753147f7ebf2d67447c6175687cf031605031b3

View File

@ -51,6 +51,9 @@ typedef __u32 __le32;
typedef __u64 __le64; typedef __u64 __le64;
typedef __u64 __be64; typedef __u64 __be64;
#define DECLARE_BITMAP(name,bits) \
unsigned long name[BITS_TO_LONGS(bits)]
#include <lx_emul/byteorder.h> #include <lx_emul/byteorder.h>
#include <lx_emul/atomic.h> #include <lx_emul/atomic.h>
#include <lx_emul/work.h> #include <lx_emul/work.h>
@ -617,6 +620,7 @@ int module_hid_init();
int module_hid_generic_init(); int module_hid_generic_init();
int module_ch_driver_init(); int module_ch_driver_init();
int module_holtek_mouse_driver_init(); int module_holtek_mouse_driver_init();
int module_apple_driver_init();
int module_ms_driver_init(); int module_ms_driver_init();
int module_mt_driver_init(); int module_mt_driver_init();
int module_wacom_driver_init(); int module_wacom_driver_init();

View File

@ -170,6 +170,7 @@ void Driver::main_task_entry(void * arg)
module_hid_generic_init(); module_hid_generic_init();
module_ch_driver_init(); module_ch_driver_init();
module_holtek_mouse_driver_init(); module_holtek_mouse_driver_init();
module_apple_driver_init();
module_ms_driver_init(); module_ms_driver_init();
module_mt_driver_init(); module_mt_driver_init();
module_wacom_driver_init(); module_wacom_driver_init();

View File

@ -11,6 +11,7 @@ INC_DIR += $(USB_CONTRIB_DIR)/drivers/usb/core
INC_DIR += $(PRG_DIR) INC_DIR += $(PRG_DIR)
INC_DIR += $(REP_DIR)/src/include INC_DIR += $(REP_DIR)/src/include
SRC_C += drivers/hid/hid-apple.c
SRC_C += drivers/hid/hid-cherry.c SRC_C += drivers/hid/hid-cherry.c
SRC_C += drivers/hid/hid-core.c SRC_C += drivers/hid/hid-core.c
SRC_C += drivers/hid/hid-generic.c SRC_C += drivers/hid/hid-generic.c

View File

@ -1,3 +1,4 @@
linux-x.x.x/drivers/hid/hid-apple.c
linux-x.x.x/drivers/hid/hid-cherry.c linux-x.x.x/drivers/hid/hid-cherry.c
linux-x.x.x/drivers/hid/hid-core.c linux-x.x.x/drivers/hid/hid-core.c
linux-x.x.x/drivers/hid/hid-generic.c linux-x.x.x/drivers/hid/hid-generic.c