mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-20 18:53:15 +08:00
ToolsCI / Tools (push) Has been cancelled
RT-Thread BSP Static Build Check / 🔍 Summary of Git Diff Changes (push) Has been cancelled
doc_doxygen / doxygen_doc generate (push) Has been cancelled
pkgs_test / change (push) Has been cancelled
utest_auto_run / A9 :components/dfs.cfg (push) Has been cancelled
utest_auto_run / A9 :components/lwip.cfg (push) Has been cancelled
utest_auto_run / A9 :components/netdev.cfg (push) Has been cancelled
utest_auto_run / A9 :components/sal.cfg (push) Has been cancelled
utest_auto_run / A9 :cpp11/cpp11.cfg (push) Has been cancelled
utest_auto_run / AARCH64-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / A9-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / XUANTIE-rtsmart :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64 :default.cfg (push) Has been cancelled
utest_auto_run / AARCH64-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :default.cfg (push) Has been cancelled
utest_auto_run / A9-smp :default.cfg (push) Has been cancelled
utest_auto_run / RISCV :default.cfg (push) Has been cancelled
utest_auto_run / RISCV-smp :default.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / RISCV :kernel/atomic_c11.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/ipc.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/kernel_basic.cfg (push) Has been cancelled
utest_auto_run / A9 :kernel/mem.cfg (push) Has been cancelled
RT-Thread BSP Static Build Check / ${{ matrix.legs.RTT_BSP }} (push) Has been cancelled
RT-Thread BSP Static Build Check / collect-artifacts (push) Has been cancelled
doc_doxygen / deploy (push) Has been cancelled
Weekly CI Scheduler / Trigger and Monitor CIs (push) Has been cancelled
Weekly CI Scheduler / Create Discussion Report (push) Has been cancelled
Signed-off-by: GuEe-GUI <2991707448@qq.com>
68 lines
1.4 KiB
C
Executable File
68 lines
1.4 KiB
C
Executable File
/*
|
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2022-3-08 GuEe-GUI the first version
|
|
*/
|
|
|
|
#ifndef __INPUT_UAPI_H__
|
|
#define __INPUT_UAPI_H__
|
|
|
|
#include <stdint.h>
|
|
#include <sys/time.h>
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <dt-bindings/input/event-codes.h>
|
|
|
|
struct input_event
|
|
{
|
|
struct timeval time;
|
|
uint16_t type;
|
|
uint16_t code;
|
|
int32_t value;
|
|
};
|
|
|
|
#define EV_VERSION 0x010001
|
|
|
|
struct input_id
|
|
{
|
|
uint16_t bustype;
|
|
uint16_t vendor;
|
|
uint16_t product;
|
|
uint16_t version;
|
|
};
|
|
|
|
struct input_absinfo
|
|
{
|
|
int32_t value;
|
|
int32_t minimum;
|
|
int32_t maximum;
|
|
int32_t fuzz;
|
|
int32_t flat;
|
|
int32_t resolution;
|
|
};
|
|
|
|
/* Get driver version */
|
|
#define EVIOCGVERSION _IOR('E', 0x01, int)
|
|
/* Get device ID */
|
|
#define EVIOCGID _IOR('E', 0x02, struct input_id)
|
|
|
|
/* Get device name */
|
|
#define EVIOCGNAME(len) _IOC(_IOC_READ, 'E', 0x06, len)
|
|
/* Get device properties */
|
|
#define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len)
|
|
|
|
/* Get event bits */
|
|
#define EVIOCGBIT(ev, len) _IOC(_IOC_READ, 'E', 0x20 + (ev), len)
|
|
|
|
/* Get abs value/limits */
|
|
#define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo)
|
|
|
|
/* Grab/Release device */
|
|
#define EVIOCGRAB _IOW('E', 0x90, int)
|
|
|
|
#endif /* __INPUT_UAPI_H__ */
|