Changeset 52fb76e in mainline for uspace/lib/usb/src/pipes.c
- Timestamp:
- 2011-02-01T23:16:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a11192
- Parents:
- 3e9074f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipes.c
r3e9074f r52fb76e 85 85 } 86 86 87 connection->hc_handle = hc_handle; 88 connection->address = my_address; 87 rc = usb_device_connection_initialize(connection, 88 hc_handle, my_address); 89 90 return rc; 91 } 92 93 /** Initialize connection to USB device. 94 * 95 * @param connection Connection structure to be initialized. 96 * @param host_controller_handle Devman handle of host controller device is 97 * connected to. 98 * @param device_address Device USB address. 99 * @return Error code. 100 */ 101 int usb_device_connection_initialize(usb_device_connection_t *connection, 102 devman_handle_t host_controller_handle, usb_address_t device_address) 103 { 104 assert(connection); 105 106 if ((device_address < 0) || (device_address >= USB11_ADDRESS_MAX)) { 107 return EINVAL; 108 } 109 110 connection->hc_handle = host_controller_handle; 111 connection->address = device_address; 112 89 113 return EOK; 90 114 } 91 92 115 93 116 /** Initialize USB endpoint pipe.
Note:
See TracChangeset
for help on using the changeset viewer.