Changeset e26a9d95 in mainline for uspace/drv/bus/usb/ohci/hc.c


Ignore:
Timestamp:
2014-01-18T17:14:42Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3e200736
Parents:
19b3cc6
Message:

libusbhost: Add status hook.

Implement in UHCI, OHCI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hc.c

    r19b3cc6 re26a9d95  
    273273}
    274274
     275int hc_status(hcd_t *hcd, uint32_t *status)
     276{
     277        assert(hcd);
     278        assert(status);
     279        hc_t *instance = hcd->driver.data;
     280        assert(instance);
     281
     282        async_usleep(10000);
     283        if (instance->registers){
     284                *status = OHCI_RD(instance->registers->interrupt_status);
     285                OHCI_WR(instance->registers->interrupt_status, *status);
     286        }
     287        return EOK;
     288}
     289
    275290/** Add USB transfer to the schedule.
    276291 *
Note: See TracChangeset for help on using the changeset viewer.