How linuxwacom/input-wacom works
input-wacom provides Linux kernel drivers that translate Wacom tablet input into Linux input-device events, with an additional serial-input attachment utility. The principal workflow is tablet reports entering a bus-specific driver, being interpreted and reported as input events. The HID system layer also manages device setup and shared features such as batteries, wireless devices, remotes, and LEDs. Excerpts are partial, so links between unsampled subsystems are omitted unless the README or indexed source references support them.
Main entry points: wacom_sys.c HID system layer · wacom_wac.c Report interpretation · wacom_w8001.c W8001 serial driver · inputattach.c Input line attachment
Components 16
HID tablet driver
- HID system layer
4.18/wacom_sys.c - Report interpretation
4.18/wacom_wac.c - Device definitions
4.18/wacom.h - Report types
4.18/wacom_wac.h - Tablet features
4.18/wacom_wac.c - Battery management
4.18/wacom_sys.c - Wireless management
4.18/wacom_sys.c - Remote management
4.18/wacom_sys.c - LED controls
4.18/wacom_sys.c
Other bus drivers
- I2C digitizer driver
4.18/wacom_i2c.c - W8001 serial driver
4.18/wacom_w8001.c
Serial attachment
- Input line attachment
inputattach/inputattach.c - Serio type IDs
inputattach/serio-ids.h
Other components
- Wacom tablet
- Linux input events
- Serial device
Connections 16
- Wacom tablet → HID system layer: sends reports
README.md - HID system layer → Report interpretation: dispatches reports
4.18/wacom_sys.c - Report interpretation → Linux input events: reports events
4.18/wacom_wac.c - HID system layer → Device definitions: uses definitions
4.18/wacom_sys.c - HID system layer → Report types: uses report types
4.18/wacom_sys.c - Report interpretation → Report types: uses report types
4.18/wacom_wac.c - Report interpretation → Tablet features: configures features
4.18/wacom_wac.c - HID system layer → Battery management: manages battery
4.18/wacom_sys.c - HID system layer → Wireless management: schedules work
4.18/wacom_sys.c - HID system layer → Remote management: manages remotes
4.18/wacom_sys.c - HID system layer → LED controls: configures LEDs
4.18/wacom_sys.c - I2C digitizer driver → Linux input events: reports events
4.18/wacom_i2c.c - Serial device → W8001 serial driver: sends packets
- W8001 serial driver → Linux input events: reports events
4.18/wacom_w8001.c - Serial device → Input line attachment: opens device
inputattach/inputattach.c - Input line attachment → Serio type IDs: uses type IDs
inputattach/inputattach.c