Changeset e6b9182 in mainline for uspace/drv/bus/usb/uhci


Ignore:
Timestamp:
2017-10-13T08:49:29Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741bcdeb
Parents:
0a5833d7
Message:

WIP usbhost refactoring: ohci completed

Along with that we noticed hcd_t in bus_t is superfluous and it complicates initialization (and breaks isolation), so we removed it. Also, type of the toggle has changed to bool in the functions.

Location:
uspace/drv/bus/usb/uhci
Files:
2 edited

Legend:

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

    r0a5833d7 re6b9182  
    5050#include <usb/usb.h>
    5151#include <usb/host/utils/malloc32.h>
     52#include <usb/host/bandwidth.h>
    5253
    5354#include "uhci_batch.h"
     
    320321int hc_init_mem_structures(hc_t *instance)
    321322{
    322         assert(instance);
     323        int err;
     324        assert(instance);
     325
     326        if ((err = usb2_bus_init(&instance->bus, BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11)))
     327                return err;
    323328
    324329        /* Init USB frame list page */
  • uspace/drv/bus/usb/uhci/main.c

    r0a5833d7 re6b9182  
    4545#include <usb/debug.h>
    4646#include <usb/host/ddf_helpers.h>
    47 #include <usb/host/bandwidth.h>
    4847
    4948#include "hc.h"
     
    8281
    8382        if ((err = hc_init(instance, res)) != EOK)
    84                 goto err;
    85 
    86         if ((err = usb2_bus_init(&instance->bus, hcd, BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11)))
    8783                goto err;
    8884
Note: See TracChangeset for help on using the changeset viewer.