Changeset 52fb76e in mainline
- 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
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/pipes.h
r3e9074f r52fb76e 82 82 int usb_device_connection_initialize_from_device(usb_device_connection_t *, 83 83 device_t *); 84 int usb_device_connection_initialize(usb_device_connection_t *, 85 devman_handle_t, usb_address_t); 84 86 85 87 int usb_endpoint_pipe_initialize(usb_endpoint_pipe_t *, -
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.