L4Re Operating System Framework
Interface and Usage Documentation
Loading...
Searching...
No Matches
virtio_input.h
1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright (C) 2019, 2022 Kernkonzept GmbH.
4 * Author(s): Sarah Hoffmann <sarah.hoffmann@kernkonzept.com>
5 */
6#pragma once
7
14#include <l4/sys/types.h>
15
20{
21 L4VIRTIO_INPUT_CFG_UNSET = 0,
22 L4VIRTIO_INPUT_CFG_ID_NAME = 1,
23 L4VIRTIO_INPUT_CFG_ID_SERIAL = 2,
24 L4VIRTIO_INPUT_CFG_ID_DEVIDS = 3,
25 L4VIRTIO_INPUT_CFG_PROP_BITS = 0x10,
26 L4VIRTIO_INPUT_CFG_EV_BITS = 0x11,
27 L4VIRTIO_INPUT_CFG_ABS_INFO = 0x12
28};
29
34{
35 l4_uint32_t min;
36 l4_uint32_t max;
37 l4_uint32_t fuzz;
38 l4_uint32_t flat;
39 l4_uint32_t res;
41
46{
47 l4_uint16_t bustype;
48 l4_uint16_t vendor;
49 l4_uint16_t product;
50 l4_uint16_t version;
52
57{
58 l4_uint8_t select;
59 l4_uint8_t subsel;
60 l4_uint8_t size;
61 l4_uint8_t reserved[5];
62 union
63 {
64 char string[128];
65 l4_uint8_t bitmap[128];
66 struct l4virtio_input_absinfo_t abs;
67 struct l4virtio_input_devids_t ids;
68 } u;
70
80
unsigned char l4_uint8_t
Unsigned 8bit value.
Definition l4int.h:36
unsigned int l4_uint32_t
Unsigned 32bit value.
Definition l4int.h:40
unsigned short int l4_uint16_t
Unsigned 16bit value.
Definition l4int.h:38
L4virtio_input_config_select
Device information selectors.
struct l4virtio_input_absinfo_t l4virtio_absinfo_t
Information about the absolute axis in the underlying evdev implementation.
Common L4 ABI Data Types.
Information about the absolute axis in the underlying evdev implementation.
Device configuration for input devices.
Device ID information for the device.
Single event in event or status queue.