Changeset b5f813c in mainline for uspace/lib/usbhost/src/ddf_helpers.c
- Timestamp:
- 2015-07-04T03:28:02Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55346870
- Parents:
- 2dbfe44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/ddf_helpers.c
r2dbfe44 rb5f813c 690 690 } 691 691 692 //TODO: Move this to generic ddf? 692 693 int hcd_ddf_get_registers(ddf_dev_t *device, hw_res_list_parsed_t *hw_res) 693 694 { … … 779 780 assert(dev); 780 781 hcd_t *hcd = dev_to_hcd(dev); 781 if (!hcd || !hcd-> driver.irq_hook) {782 if (!hcd || !hcd->ops.irq_hook) { 782 783 usb_log_error("Interrupt on not yet initialized device.\n"); 783 784 return; 784 785 } 785 786 const uint32_t status = IPC_GET_ARG1(*call); 786 hcd-> driver.irq_hook(hcd, status);787 hcd->ops.irq_hook(hcd, status); 787 788 } 788 789 … … 791 792 hcd_t *hcd = arg; 792 793 assert(hcd); 793 if (!hcd-> driver.status_hook || !hcd->driver.irq_hook)794 if (!hcd->ops.status_hook || !hcd->ops.irq_hook) 794 795 return ENOTSUP; 795 796 uint32_t status = 0; 796 while (hcd-> driver.status_hook(hcd, &status) == EOK) {797 hcd-> driver.irq_hook(hcd, status);797 while (hcd->ops.status_hook(hcd, &status) == EOK) { 798 hcd->ops.irq_hook(hcd, status); 798 799 status = 0; 799 800 /* We should wait 1 frame - 1ms here, but this polling is a … … 885 886 886 887 /* Need working irq replacement to setup root hub */ 887 if ((irq < 0) && hcd-> driver.status_hook) {888 if ((irq < 0) && hcd->ops.status_hook) { 888 889 hcd->polling_fibril = fibril_create(interrupt_polling, hcd); 889 890 if (hcd->polling_fibril == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.