mirror of
https://github.com/systemd/systemd
synced 2026-03-26 16:54:53 +01:00
Compare commits
2 Commits
6a3e4e43be
...
1feeb15a0c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1feeb15a0c | ||
|
|
be2c603ecb |
31
hwdb.d/70-analyzers.hwdb
Normal file
31
hwdb.d/70-analyzers.hwdb
Normal file
@ -0,0 +1,31 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# Database for protocol analyzers that should be accessible to the seat owner
|
||||
#
|
||||
# Permitted keys:
|
||||
# Specify if a device is a protocol analyzer
|
||||
# ID_PROTOCOL_ANALYZER=1|0
|
||||
|
||||
###########################################################
|
||||
# Total Phase
|
||||
###########################################################
|
||||
# Aarvark I2C/SPI Host Adapter
|
||||
usb_device:v0403pe0d0*
|
||||
ID_PROTOCOL_ANALYZER=1
|
||||
|
||||
# Beagle Protocol Analyzers
|
||||
usb_device:v1679p2001*
|
||||
ID_PROTOCOL_ANALYZER=1
|
||||
|
||||
# Cheetah SPI Host Adapter
|
||||
usb_device:v1679p2002*
|
||||
ID_PROTOCOL_ANALYZER=1
|
||||
|
||||
# Komodo CAN Duo Interface
|
||||
usb_device:v1679p3001*
|
||||
ID_PROTOCOL_ANALYZER=1
|
||||
|
||||
# Power Delivery Analyzers
|
||||
usb_device:v1679p6003*
|
||||
usb_device:v0483pdf11*
|
||||
ID_PROTOCOL_ANALYZER=1
|
||||
@ -27,6 +27,7 @@ hwdb_files_test = files('''
|
||||
60-keyboard.hwdb
|
||||
60-seat.hwdb
|
||||
60-sensor.hwdb
|
||||
70-analyzers.hwdb
|
||||
70-joystick.hwdb
|
||||
70-mouse.hwdb
|
||||
70-pointingstick.hwdb
|
||||
|
||||
@ -80,6 +80,7 @@ TYPES = {'mouse': ('usb', 'bluetooth', 'ps2', '*'),
|
||||
GENERAL_MATCHES = {'acpi',
|
||||
'bluetooth',
|
||||
'usb',
|
||||
'usb_device',
|
||||
'pci',
|
||||
'sdio',
|
||||
'vmbus',
|
||||
@ -147,6 +148,7 @@ def property_grammar():
|
||||
('ID_INPUT_TOUCHPAD', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_TOUCHSCREEN', Or((Literal('0'), Literal('1')))),
|
||||
('ID_INPUT_TRACKBALL', Or((Literal('0'), Literal('1')))),
|
||||
('ID_PROTOCOL_ANALYZER', Or((Literal('0'), Literal('1')))),
|
||||
('POINTINGSTICK_SENSITIVITY', INTEGER),
|
||||
('POINTINGSTICK_CONST_ACCEL', REAL),
|
||||
('ID_INPUT_JOYSTICK_INTEGRATION', Or(('internal', 'external'))),
|
||||
@ -206,9 +208,10 @@ def check_matches(groups):
|
||||
matches = sum((group[0] for group in groups), [])
|
||||
|
||||
# This is a partial check. The other cases could be also done, but those
|
||||
# two are most commonly wrong.
|
||||
grammars = { 'usb' : 'v' + upperhex_word(4) + Optional('p' + upperhex_word(4)),
|
||||
'pci' : 'v' + upperhex_word(8) + Optional('d' + upperhex_word(8)),
|
||||
# three are most commonly wrong.
|
||||
grammars = { 'usb' : 'v' + upperhex_word(4) + Optional('p' + upperhex_word(4)),
|
||||
'usb_device' : 'v' + upperhex_word(4) + Optional('p' + upperhex_word(4)),
|
||||
'pci' : 'v' + upperhex_word(8) + Optional('d' + upperhex_word(8)),
|
||||
}
|
||||
|
||||
for match in matches:
|
||||
|
||||
@ -12,6 +12,7 @@ SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
|
||||
|
||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
|
||||
ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
|
||||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="hwdb 'usb_device:v$attr{idVendor}p$attr{idProduct}:name:$attr{product}:'"
|
||||
|
||||
ACTION!="add", GOTO="default_end"
|
||||
|
||||
|
||||
@ -80,4 +80,7 @@ ENV{ID_SOFTWARE_RADIO}=="?*", TAG+="uaccess"
|
||||
# 3D printers, CNC machines, laser cutters, 3D scanners, etc.
|
||||
ENV{ID_MAKER_TOOL}=="?*", TAG+="uaccess"
|
||||
|
||||
# Protocol analyzers
|
||||
ENV{ID_PROTOCOL_ANALYZER}=="?*", TAG+="uaccess"
|
||||
|
||||
LABEL="uaccess_end"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user