Ignore:
Timestamp:
2011-03-06T17:38:37Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e37964
Parents:
40a5d40
Message:

Add toggle tracking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/utils/device_keeper.h

    r40a5d40 redb5f837  
    4444        usb_speed_t speed;
    4545        bool occupied;
     46        uint16_t toggle_status;
    4647        devman_handle_t handle;
    4748};
     
    5556
    5657void device_keeper_init(device_keeper_t *instance);
     58
    5759void device_keeper_reserve_default(
    5860    device_keeper_t *instance, usb_speed_t speed);
     61
    5962void device_keeper_release_default(device_keeper_t *instance);
     63
     64int device_keeper_get_toggle(device_keeper_t *instance, usb_target_t target);
     65
     66int device_keeper_set_toggle(device_keeper_t *instance, usb_target_t target, bool toggle);
    6067
    6168usb_address_t device_keeper_request(
    6269    device_keeper_t *instance, usb_speed_t speed);
     70
    6371void device_keeper_bind(
    6472    device_keeper_t *instance, usb_address_t address, devman_handle_t handle);
     73
    6574void device_keeper_release(device_keeper_t *instance, usb_address_t address);
     75
    6676usb_address_t device_keeper_find(
    6777    device_keeper_t *instance, devman_handle_t handle);
Note: See TracChangeset for help on using the changeset viewer.