Changeset 6ab7f3e9 in mainline for uspace/drv/ohci/root_hub.c
- Timestamp:
- 2011-05-29T21:53:34Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 98e15b1
- Parents:
- 5c1a65e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
r5c1a65e r6ab7f3e9 117 117 */ 118 118 static const uint32_t hub_clear_feature_by_writing_one_mask = 119 RHS_CLEAR_PORT_POWER;119 RHS_CLEAR_PORT_POWER; 120 120 121 121 /** … … 412 412 request->transfered_size = 4; 413 413 uint32_t data = instance->registers->rh_port_status[port - 1]; 414 memcpy(request->data_buffer, &data,4);414 memcpy(request->data_buffer, &data, 4); 415 415 #if 0 416 416 int i; … … 445 445 uint32_t data = mask & instance->registers->rh_status; 446 446 //uint32_buffer[0] = mask & instance->registers->rh_status; 447 memcpy(request->data_buffer, &data,4);447 memcpy(request->data_buffer, &data, 4); 448 448 449 449 return EOK; … … 499 499 | (1 << (USB_HUB_FEATURE_C_HUB_OVER_CURRENT + 16)); 500 500 bzero(bitmap, instance->interrupt_mask_size); 501 if ((instance->registers->rh_status & mask) != 0) {501 if ((instance->registers->rh_status & mask) != 0) { 502 502 bitmap[0] = 1; 503 503 } … … 925 925 * @return 926 926 */ 927 static int process_interrupt_mask_in_instance(rh_t *instance, usb_transfer_batch_t * request) { 927 static int process_interrupt_mask_in_instance(rh_t *instance, 928 usb_transfer_batch_t * request) { 928 929 memcpy(request->data_buffer, instance->interrupt_buffer, 929 930 instance->interrupt_mask_size); … … 945 946 * @return 946 947 */ 947 static bool is_zeros(void * 948 static bool is_zeros(void *buffer, size_t size) { 948 949 if (!buffer) return true; 949 950 if (!size) return true;
Note:
See TracChangeset
for help on using the changeset viewer.