Changes in uspace/lib/usb/src/hc.c [a76b01b4:da2f1c9e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hc.c
ra76b01b4 rda2f1c9e 59 59 return EOK; 60 60 } 61 61 /*----------------------------------------------------------------------------*/ 62 62 static int usb_hc_connection_del_ref(usb_hc_connection_t *connection) 63 63 { … … 125 125 return rc; 126 126 } 127 127 /*----------------------------------------------------------------------------*/ 128 128 void usb_hc_connection_deinitialize(usb_hc_connection_t *connection) 129 129 { … … 140 140 fibril_mutex_unlock(&connection->guard); 141 141 } 142 142 /*----------------------------------------------------------------------------*/ 143 143 /** Open connection to host controller. 144 144 * … … 150 150 return usb_hc_connection_add_ref(connection); 151 151 } 152 152 /*----------------------------------------------------------------------------*/ 153 153 /** Close connection to the host controller. 154 154 * … … 160 160 return usb_hc_connection_del_ref(connection); 161 161 } 162 162 /*----------------------------------------------------------------------------*/ 163 163 /** Ask host controller for free address assignment. 164 164 * … … 182 182 return ret == EOK ? address : ret; 183 183 } 184 184 /*----------------------------------------------------------------------------*/ 185 185 int usb_hc_bind_address(usb_hc_connection_t * connection, 186 186 usb_address_t address, devman_handle_t handle) … … 194 194 return ret; 195 195 } 196 196 /*----------------------------------------------------------------------------*/ 197 197 /** Get handle of USB device with given address. 198 198 * … … 213 213 return ret; 214 214 } 215 215 /*----------------------------------------------------------------------------*/ 216 216 int usb_hc_release_address(usb_hc_connection_t *connection, 217 217 usb_address_t address) … … 225 225 return ret; 226 226 } 227 227 /*----------------------------------------------------------------------------*/ 228 228 int usb_hc_register_endpoint(usb_hc_connection_t *connection, 229 229 usb_address_t address, usb_endpoint_t endpoint, usb_transfer_type_t type, … … 239 239 return ret; 240 240 } 241 241 /*----------------------------------------------------------------------------*/ 242 242 int usb_hc_unregister_endpoint(usb_hc_connection_t *connection, 243 243 usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction) … … 252 252 return ret; 253 253 } 254 254 /*----------------------------------------------------------------------------*/ 255 255 int usb_hc_read(usb_hc_connection_t *connection, usb_address_t address, 256 256 usb_endpoint_t endpoint, uint64_t setup, void *data, size_t size, … … 266 266 return ret; 267 267 } 268 268 /*----------------------------------------------------------------------------*/ 269 269 int usb_hc_write(usb_hc_connection_t *connection, usb_address_t address, 270 270 usb_endpoint_t endpoint, uint64_t setup, const void *data, size_t size)
Note:
See TracChangeset
for help on using the changeset viewer.