Changeset 3538b0e in mainline for uspace/lib/usbdev/include/usb/dev/usb_device_connection.h
- Timestamp:
- 2011-12-12T13:28:51Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30ec5ea
- Parents:
- c804484
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/usb_device_connection.h
rc804484 r3538b0e 57 57 { 58 58 assert(connection); 59 60 if (hc_connection == NULL) { 59 if (hc_connection == NULL) 61 60 return EBADMEM; 62 } 63 64 if ((address < 0) || (address >= USB11_ADDRESS_MAX)) { 61 if ((address < 0) || (address >= USB11_ADDRESS_MAX)) 65 62 return EINVAL; 66 }67 63 68 64 connection->hc_connection = hc_connection; … … 70 66 return EOK; 71 67 } 72 /*----------------------------------------------------------------------------*/73 /** Initialize connection to USB device on default address.74 *75 * @param dev_connection Device connection structure to be initialized.76 * @param hc_connection Initialized connection to host controller.77 * @return Error code.78 */79 static inline int usb_device_connection_initialize_on_default_address(80 usb_device_connection_t *connection, usb_hc_connection_t *hc_conn)81 {82 return usb_device_connection_initialize(connection, hc_conn, 0);83 }84 85 68 /*----------------------------------------------------------------------------*/ 86 69 static inline int usb_device_register_endpoint(usb_device_connection_t *conn,
Note:
See TracChangeset
for help on using the changeset viewer.