Changeset 925a21e in mainline for uspace/lib/usbhost/src/usb_device_manager.c
- Timestamp:
- 2011-09-24T14:20:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bf76c1
- Parents:
- 867e2555 (diff), 1ab4aca (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb_device_manager.c
r867e2555 r925a21e 31 31 */ 32 32 /** @file 33 * Device keeper structure and functions (implementation).33 * Device manager structure and functions (implementation). 34 34 */ 35 35 #include <assert.h> 36 36 #include <errno.h> 37 37 #include <usb/debug.h> 38 #include <usb/host/ device_keeper.h>39 40 /*----------------------------------------------------------------------------*/ 41 /** Initialize device keeper structure.38 #include <usb/host/usb_device_manager.h> 39 40 /*----------------------------------------------------------------------------*/ 41 /** Initialize device manager structure. 42 42 * 43 43 * @param[in] instance Memory place to initialize. … … 45 45 * Set all values to false/0. 46 46 */ 47 void usb_device_ keeper_init(usb_device_keeper_t *instance)47 void usb_device_manager_init(usb_device_manager_t *instance) 48 48 { 49 49 assert(instance); … … 63 63 /** Get a free USB address 64 64 * 65 * @param[in] instance Device keeper structure to use.65 * @param[in] instance Device manager structure to use. 66 66 * @param[in] speed Speed of the device requiring address. 67 67 * @return Free address, or error code. 68 68 */ 69 usb_address_t device_keeper_get_free_address(70 usb_device_ keeper_t *instance, usb_speed_t speed)69 usb_address_t usb_device_manager_get_free_address( 70 usb_device_manager_t *instance, usb_speed_t speed) 71 71 { 72 72 assert(instance); … … 97 97 /** Bind USB address to devman handle. 98 98 * 99 * @param[in] instance Device keeper structure to use.99 * @param[in] instance Device manager structure to use. 100 100 * @param[in] address Device address 101 101 * @param[in] handle Devman handle of the device. 102 102 */ 103 void usb_device_ keeper_bind(usb_device_keeper_t *instance,103 void usb_device_manager_bind(usb_device_manager_t *instance, 104 104 usb_address_t address, devman_handle_t handle) 105 105 { … … 117 117 /** Release used USB address. 118 118 * 119 * @param[in] instance Device keeper structure to use.119 * @param[in] instance Device manager structure to use. 120 120 * @param[in] address Device address 121 121 */ 122 void usb_device_ keeper_release(123 usb_device_ keeper_t *instance, usb_address_t address)122 void usb_device_manager_release( 123 usb_device_manager_t *instance, usb_address_t address) 124 124 { 125 125 assert(instance); … … 136 136 /** Find USB address associated with the device 137 137 * 138 * @param[in] instance Device keeper structure to use.138 * @param[in] instance Device manager structure to use. 139 139 * @param[in] handle Devman handle of the device seeking its address. 140 140 * @return USB Address, or error code. 141 141 */ 142 usb_address_t usb_device_ keeper_find(143 usb_device_ keeper_t *instance, devman_handle_t handle)142 usb_address_t usb_device_manager_find( 143 usb_device_manager_t *instance, devman_handle_t handle) 144 144 { 145 145 assert(instance); … … 161 161 * Intentionally refuse to find handle of default address. 162 162 * 163 * @param[in] instance Device keeper structure to use.163 * @param[in] instance Device manager structure to use. 164 164 * @param[in] address Address the caller wants to find. 165 165 * @param[out] handle Where to store found handle. 166 166 * @return Whether such address is currently occupied. 167 167 */ 168 bool usb_device_ keeper_find_by_address(usb_device_keeper_t *instance,168 bool usb_device_manager_find_by_address(usb_device_manager_t *instance, 169 169 usb_address_t address, devman_handle_t *handle) 170 170 { … … 191 191 /** Get speed associated with the address 192 192 * 193 * @param[in] instance Device keeper structure to use.193 * @param[in] instance Device manager structure to use. 194 194 * @param[in] address Address of the device. 195 195 * @return USB speed. 196 196 */ 197 usb_speed_t usb_device_ keeper_get_speed(198 usb_device_ keeper_t *instance, usb_address_t address)197 usb_speed_t usb_device_manager_get_speed( 198 usb_device_manager_t *instance, usb_address_t address) 199 199 { 200 200 assert(instance);
Note:
See TracChangeset
for help on using the changeset viewer.