mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 06:41:21 +07:00
a877417ed4
This commit exposes in sysfs the HID country code that is stored in the country member of hid_device structure. It identifies the country code of localized hardware. For example some keyboards use it to exhibit the language of the key layout. It helps the upper layer to identify the localized hardware and setup the correct language to use. For USB HID devices the country code comes for the HID descriptor and for Bluetooth HID devices it is the HIDCountryCode attribute from the SDP database. Signed-off-by: Olivier Gay <ogay@logitech.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
What: For USB devices : /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/report_descriptor
|
|
For BT devices : /sys/class/bluetooth/hci<addr>/<hid-bus>:<vendor-id>:<product-id>.<num>/report_descriptor
|
|
Symlink : /sys/class/hidraw/hidraw<num>/device/report_descriptor
|
|
Date: Jan 2011
|
|
KernelVersion: 2.0.39
|
|
Contact: Alan Ott <alan@signal11.us>
|
|
Description: When read, this file returns the device's raw binary HID
|
|
report descriptor.
|
|
This file cannot be written.
|
|
Users: HIDAPI library (http://www.signal11.us/oss/hidapi)
|
|
|
|
What: For USB devices : /sys/bus/usb/devices/<busnum>-<devnum>:<config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/country
|
|
For BT devices : /sys/class/bluetooth/hci<addr>/<hid-bus>:<vendor-id>:<product-id>.<num>/country
|
|
Symlink : /sys/class/hidraw/hidraw<num>/device/country
|
|
Date: February 2015
|
|
KernelVersion: 3.19
|
|
Contact: Olivier Gay <ogay@logitech.com>
|
|
Description: When read, this file returns the hex integer value in ASCII
|
|
of the device's HID country code (e.g. 21 for US).
|
|
This file cannot be written.
|