Changeset 71f211f in mainline for uspace/drv/bus/usb/usbhub/usbhub.c


Ignore:
Timestamp:
2018-01-13T20:47:58Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a0c52a
Parents:
7dddd7b
git-author:
Petr Manek <petr.manek@…> (2018-01-13 20:44:08)
git-committer:
Petr Manek <petr.manek@…> (2018-01-13 20:47:58)
Message:

usbdev: refactor polling data structs

Symbols related to USB device endpoint polling have been moved around
and renamed in this commit.

usb_device_auto_polling_t, which has the semantics of a configuration
parameter struct, has been renamed to usb_device_polling_config_t.

usb_device_auto_polling() is now called usb_device_poll().

A new data structure, usb_device_polling_t, has been introduced to
serve as a user handle to the active polling process (WIP).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/usbhub.c

    r7dddd7b r71f211f  
    164164
    165165        /* Start hub operation. */
    166         const usb_device_auto_polling_t auto_polling = {
     166        const usb_device_polling_config_t config = {
    167167                .debug = 1,
    168168                .auto_clear_halt = true,
     
    178178            usb_device_get_mapped_ep_desc(hub_dev->usb_device,
    179179            &hub_status_change_endpoint_description);
    180         opResult = usb_device_auto_polling(hub_dev->usb_device, epm,
    181             &auto_polling, ((hub_dev->port_count + 1 + 7) / 8));
     180        opResult = usb_device_poll(hub_dev->usb_device, epm, &config,
     181            ((hub_dev->port_count + 1 + 7) / 8), &hub_dev->polling);
    182182       
    183183        if (opResult != EOK) {
Note: See TracChangeset for help on using the changeset viewer.