Changeset 8300c72 in mainline for uspace/lib/usbhost
- Timestamp:
- 2025-03-03T22:58:05Z (5 months ago)
- Branches:
- master
- Children:
- 77a0119
- Parents:
- f35749e
- Location:
- uspace/lib/usbhost
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/hcd.h
rf35749e r8300c72 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2011 Jan Vesely 3 4 * Copyright (c) 2018 Ondrej Hlavaty … … 101 102 /** HC is gone. */ 102 103 int (*hc_gone)(hc_device_t *); 104 105 /** Quiesce HC. */ 106 int (*hc_quiesce)(hc_device_t *); 103 107 } hc_driver_t; 104 108 -
uspace/lib/usbhost/src/hcd.c
rf35749e r8300c72 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2011 Jan Vesely 3 4 * Copyright (c) 2018 Ondrej Hlavaty … … 58 59 int hc_dev_remove(ddf_dev_t *); 59 60 int hc_dev_gone(ddf_dev_t *); 61 int hc_dev_quiesce(ddf_dev_t *); 60 62 int hc_fun_online(ddf_fun_t *); 61 63 int hc_fun_offline(ddf_fun_t *); … … 65 67 .dev_remove = hc_dev_remove, 66 68 .dev_gone = hc_dev_gone, 69 .dev_quiesce = hc_dev_quiesce, 67 70 .fun_online = hc_fun_online, 68 71 .fun_offline = hc_fun_offline, … … 358 361 } 359 362 363 errno_t hc_dev_quiesce(ddf_dev_t *dev) 364 { 365 errno_t err = ENOTSUP; 366 hc_device_t *hcd = dev_to_hcd(dev); 367 368 if (hc_driver->hc_quiesce) 369 err = hc_driver->hc_quiesce(hcd); 370 371 return err; 372 } 373 360 374 errno_t hc_fun_online(ddf_fun_t *fun) 361 375 {
Note:
See TracChangeset
for help on using the changeset viewer.