Changeset e26a9d95 in mainline for uspace/drv/bus/usb/uhci/hc.c
- Timestamp:
- 2014-01-18T17:14:42Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e200736
- Parents:
- 19b3cc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.c
r19b3cc6 re26a9d95 412 412 } 413 413 414 int hc_status(hcd_t *hcd, uint32_t *status) 415 { 416 assert(hcd); 417 assert(status); 418 hc_t *instance = hcd->driver.data; 419 assert(instance); 420 421 *status = 0; 422 if (instance->registers) { 423 uint16_t s = pio_read_16(&instance->registers->usbsts); 424 pio_write_16(&instance->registers->usbsts, s); 425 *status = s; 426 } 427 return EOK; 428 } 429 414 430 /** Schedule batch for execution. 415 431 *
Note:
See TracChangeset
for help on using the changeset viewer.