Changeset ccbcd895 in mainline
- Timestamp:
- 2011-04-02T20:13:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b8f7a0d2, f9c03b5
- Parents:
- c2be0e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/root_hub.c
rc2be0e5 rccbcd895 275 275 if(port<1 || port>instance->port_count) 276 276 return EINVAL; 277 uint32_t * uint32_buffer = (uint32_t*)request-> buffer;277 uint32_t * uint32_buffer = (uint32_t*)request->transport_buffer; 278 278 request->transfered_size = 4; 279 279 uint32_buffer[0] = instance->registers->rh_port_status[port -1]; … … 292 292 static int process_get_hub_status_request(rh_t *instance, 293 293 usb_transfer_batch_t * request){ 294 uint32_t * uint32_buffer = (uint32_t*)request-> buffer;294 uint32_t * uint32_buffer = (uint32_t*)request->transport_buffer; 295 295 //bits, 0,1,16,17 296 296 request->transfered_size = 4; … … 457 457 if(request->buffer_size != 1) 458 458 return EINVAL; 459 request-> buffer[0] = 1;459 request->transport_buffer[0] = 1; 460 460 request->transfered_size = 1; 461 461 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.