Changeset e50cd7f in mainline for uspace/lib/usb/include/usb/host/device_keeper.h
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/device_keeper.h
ref354b6 re50cd7f 54 54 usb_speed_t speed; 55 55 bool occupied; 56 link_t endpoints;57 uint16_t control_used;58 56 devman_handle_t handle; 59 57 }; … … 65 63 struct usb_device_info devices[USB_ADDRESS_COUNT]; 66 64 fibril_mutex_t guard; 67 fibril_condvar_t change;68 65 usb_address_t last_address; 69 66 } usb_device_keeper_t; 70 67 71 68 void usb_device_keeper_init(usb_device_keeper_t *instance); 72 73 void usb_device_keeper_add_ep(74 usb_device_keeper_t *instance, usb_address_t address, endpoint_t *ep);75 76 void usb_device_keeper_reserve_default_address(77 usb_device_keeper_t *instance, usb_speed_t speed);78 79 void usb_device_keeper_release_default_address(usb_device_keeper_t *instance);80 81 void usb_device_keeper_reset_if_need(usb_device_keeper_t *instance,82 usb_target_t target, const uint8_t *setup_data);83 69 84 70 usb_address_t device_keeper_get_free_address(usb_device_keeper_t *instance, … … 96 82 usb_speed_t usb_device_keeper_get_speed(usb_device_keeper_t *instance, 97 83 usb_address_t address); 98 99 void usb_device_keeper_use_control(usb_device_keeper_t *instance,100 usb_target_t target);101 102 void usb_device_keeper_release_control(usb_device_keeper_t *instance,103 usb_target_t target);104 105 84 #endif 106 85 /**
Note:
See TracChangeset
for help on using the changeset viewer.