Changes in uspace/lib/usbhost/src/hcd.c [8300c72:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/hcd.c
r8300c72 rfafb8e5 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2011 Jan Vesely 4 3 * Copyright (c) 2018 Ondrej Hlavaty … … 59 58 int hc_dev_remove(ddf_dev_t *); 60 59 int hc_dev_gone(ddf_dev_t *); 61 int hc_dev_quiesce(ddf_dev_t *);62 60 int hc_fun_online(ddf_fun_t *); 63 61 int hc_fun_offline(ddf_fun_t *); … … 67 65 .dev_remove = hc_dev_remove, 68 66 .dev_gone = hc_dev_gone, 69 .dev_quiesce = hc_dev_quiesce,70 67 .fun_online = hc_fun_online, 71 68 .fun_offline = hc_fun_offline, … … 98 95 * TODO: Make the bus mechanism less flexible in irq handling and remove the 99 96 * lookup. 100 * 101 * @param call Interrupt notification 102 * @param arg Argument (hc_device_t *) 103 */ 104 static void irq_handler(ipc_call_t *call, void *arg) 105 { 106 hc_device_t *hcd = (hc_device_t *)arg; 97 */ 98 static void irq_handler(ipc_call_t *call, ddf_dev_t *dev) 99 { 100 assert(dev); 101 hc_device_t *hcd = dev_to_hcd(dev); 107 102 108 103 const uint32_t status = ipc_get_arg1(call); … … 183 178 cap_irq_handle_t ihandle; 184 179 ret = register_interrupt_handler(hcd->ddf_dev, irq, irq_handler, 185 (void *)hcd,&irq_code, &ihandle);180 &irq_code, &ihandle); 186 181 irq_code_clean(&irq_code); 187 182 if (ret != EOK) { … … 361 356 } 362 357 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 374 358 errno_t hc_fun_online(ddf_fun_t *fun) 375 359 {
Note:
See TracChangeset
for help on using the changeset viewer.