Changeset 5a6cc679 in mainline for uspace/drv/bus/usb/ehci/res.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/res.c

    r132ab5d1 r5a6cc679  
    6363 * @return Error code.
    6464 */
    65 static int disable_extended_caps(async_sess_t *parent_sess, unsigned eecp)
     65static errno_t disable_extended_caps(async_sess_t *parent_sess, unsigned eecp)
    6666{
    6767        /* nothing to do */
     
    7171        /* Read the first EEC. i.e. Legacy Support register */
    7272        uint32_t usblegsup;
    73         int ret = pci_config_space_read_32(parent_sess,
     73        errno_t ret = pci_config_space_read_32(parent_sess,
    7474            eecp + USBLEGSUP_OFFSET, &usblegsup);
    7575        if (ret != EOK) {
     
    173173}
    174174
    175 int disable_legacy(hc_device_t *hcd)
     175errno_t disable_legacy(hc_device_t *hcd)
    176176{
    177177        hc_t *hc = hcd_to_hc(hcd);
     
    182182
    183183        usb_log_debug("Disabling EHCI legacy support.");
    184 
    185184
    186185        const uint32_t hcc_params = EHCI_RD(hc->caps->hccparams);
Note: See TracChangeset for help on using the changeset viewer.