diff options
Diffstat (limited to 'kvmd/usb.py')
-rw-r--r-- | kvmd/usb.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kvmd/usb.py b/kvmd/usb.py index 4a5a130d..42156e44 100644 --- a/kvmd/usb.py +++ b/kvmd/usb.py @@ -38,6 +38,15 @@ def find_udc(udc: str) -> str: return udc # fe980000.usb +# ===== +U_STATE = "state" + + +def get_udc_path(udc: str, *parts: str) -> str: + return os.path.join(f"{env.SYSFS_PREFIX}/sys/class/udc", udc, *parts) + + +# ===== G_UDC = "UDC" G_FUNCTIONS = "functions" G_PROFILE_NAME = "c.1" |