2021-01-28 15:26:56 +01:00
|
|
|
"""Constants for hardware."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
ATTR_BY_ID = "by_id"
|
|
|
|
ATTR_SUBSYSTEM = "subsystem"
|
|
|
|
ATTR_SYSFS = "sysfs"
|
|
|
|
ATTR_DEV_PATH = "dev_path"
|
|
|
|
ATTR_ATTRIBUTES = "attributes"
|
|
|
|
|
|
|
|
|
|
|
|
class UdevSubsystem(str, Enum):
|
|
|
|
"""Udev subsystem class."""
|
|
|
|
|
|
|
|
SERIAL = "tty"
|
|
|
|
USB = "usb"
|
|
|
|
INPUT = "input"
|
|
|
|
DISK = "block"
|
|
|
|
PCI = "pci"
|
|
|
|
AUDIO = "sound"
|
2021-01-29 11:28:16 +01:00
|
|
|
VIDEO = "video4linux"
|
|
|
|
MEDIA = "media"
|
2021-01-29 17:17:41 +01:00
|
|
|
GPIO = "gpio"
|
|
|
|
GPIOMEM = "gpiomem"
|
2021-01-29 11:28:16 +01:00
|
|
|
VCHIQ = "vchiq"
|
|
|
|
GRAPHICS = "graphics"
|
|
|
|
CEC = "CEC"
|
|
|
|
DRM = "drm"
|
2021-01-28 15:26:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
class PolicyGroup(str, Enum):
|
|
|
|
"""Policy groups backend."""
|
|
|
|
|
|
|
|
UART = "uart"
|
|
|
|
GPIO = "gpio"
|
|
|
|
USB = "usb"
|
|
|
|
VIDEO = "video"
|
|
|
|
AUDIO = "audio"
|