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


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.h

    r7dddd7b r71f211f  
    4444#include <usb/dev/pipes.h>
    4545#include <usb/dev/driver.h>
     46#include <usb/dev/poll.h>
    4647
    4748#include <fibril_synch.h>
     
    5960        /** Generic usb device data*/
    6061        usb_device_t *usb_device;
    61 
     62        /** Data polling handle. */
     63        usb_device_polling_t *polling;
    6264        /** Number of pending operations on the mutex to prevent shooting
    6365         * ourselves in the foot.
Note: See TracChangeset for help on using the changeset viewer.