Changeset 18e9eeb in mainline for uspace/lib/usb/src/request.c
- Timestamp:
- 2011-03-07T19:03:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c0f5a5d, ec4538d
- Parents:
- a7e2f0d (diff), f16a76b (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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/request.c
ra7e2f0d r18e9eeb 110 110 * (must be in USB endianness). 111 111 * @param data Buffer where to store data accepted during the DATA stage. 112 * (they will come in USB endian ess).112 * (they will come in USB endianness). 113 113 * @param data_size Size of the @p data buffer 114 114 * (in native endianness). … … 161 161 * the new address. 162 162 * 163 * @see usb_drv_reserve_default_address164 * @see usb_drv_release_default_address165 * @see usb_drv_request_address166 * @see usb_drv_release_address167 * @see usb_drv_bind_address168 *169 163 * @param pipe Control endpoint pipe (session must be already started). 170 164 * @param new_address New USB address to be set (in native endianness). … … 528 522 return EEMPTY; 529 523 } 530 /* Sub stract first 2 bytes (length and descriptor type). */524 /* Subtract first 2 bytes (length and descriptor type). */ 531 525 string_descriptor_size -= 2; 532 526 … … 548 542 size_t i; 549 543 for (i = 0; i < langs_count; i++) { 550 /* Language code from the descriptor is in USB endian ess. */544 /* Language code from the descriptor is in USB endianness. */ 551 545 /* FIXME: is this really correct? */ 552 546 uint16_t lang_code = (string_descriptor[2 + 2 * i + 1] << 8) … … 569 563 * 570 564 * @param[in] pipe Control endpoint pipe (session must be already started). 571 * @param[in] index String index (in native endian ess),565 * @param[in] index String index (in native endianness), 572 566 * first index has number 1 (index from descriptors can be used directly). 573 * @param[in] lang String language (in native endian ess).567 * @param[in] lang String language (in native endianness). 574 568 * @param[out] string_ptr Where to store allocated string in native encoding. 575 569 * @return Error code. … … 613 607 goto leave; 614 608 } 615 /* Sub stract first 2 bytes (length and descriptor type). */609 /* Subtract first 2 bytes (length and descriptor type). */ 616 610 string_size -= 2; 617 611
Note:
See TracChangeset
for help on using the changeset viewer.