11 #include <linux/export.h>
12 #include <asm/uaccess.h>
20 if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) {
21 struct input_event_compat compat_event;
24 sizeof(
struct input_event_compat)))
27 event->time.tv_sec = compat_event.time.tv_sec;
28 event->time.tv_usec = compat_event.time.tv_usec;
29 event->type = compat_event.type;
30 event->code = compat_event.code;
31 event->value = compat_event.value;
44 if (INPUT_COMPAT_TEST && !COMPAT_USE_64BIT_TIME) {
45 struct input_event_compat compat_event;
47 compat_event.time.tv_sec =
event->time.tv_sec;
48 compat_event.time.tv_usec =
event->time.tv_usec;
49 compat_event.type =
event->type;
50 compat_event.code =
event->code;
51 compat_event.value =
event->value;
54 sizeof(
struct input_event_compat)))
68 if (INPUT_COMPAT_TEST) {
69 struct ff_effect_compat *compat_effect;
71 if (size !=
sizeof(
struct ff_effect_compat))
79 compat_effect = (
struct ff_effect_compat *)effect;
82 sizeof(
struct ff_effect_compat)))
86 compat_effect->u.periodic.waveform ==
FF_CUSTOM)
88 compat_ptr(compat_effect->u.periodic.custom_data);