Ignore:
File:
1 edited

Legend:

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

    re6b9182 r8d2dd7f2  
    5050#include <usb/usb.h>
    5151#include <usb/host/utils/malloc32.h>
    52 #include <usb/host/bandwidth.h>
    5352
    5453#include "uhci_batch.h"
     
    107106 * @return Error code.
    108107 */
    109 int uhci_hc_gen_irq_code(irq_code_t *code, hcd_t *hcd, const hw_res_list_parsed_t *hw_res)
     108int uhci_hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res)
    110109{
    111110        assert(code);
     
    215214 * interrupt fibrils.
    216215 */
    217 int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res)
     216int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts)
    218217{
    219218        assert(instance);
     
    223222            return EINVAL;
    224223
     224        instance->hw_interrupts = interrupts;
    225225        instance->hw_failures = 0;
    226226
     
    246246        }
    247247
    248         return EOK;
    249 }
    250 
    251 void hc_start(hc_t *instance)
    252 {
    253248        hc_init_hw(instance);
    254249        (void)hc_debug_checker;
    255250
    256251        uhci_rh_init(&instance->rh, instance->registers->ports, "uhci");
     252
     253        return EOK;
    257254}
    258255
     
    321318int hc_init_mem_structures(hc_t *instance)
    322319{
    323         int err;
    324         assert(instance);
    325 
    326         if ((err = usb2_bus_init(&instance->bus, BANDWIDTH_AVAILABLE_USB11, bandwidth_count_usb11)))
    327                 return err;
     320        assert(instance);
    328321
    329322        /* Init USB frame list page */
     
    447440        assert(batch);
    448441
    449         if (batch->ep->target.address == uhci_rh_get_address(&instance->rh))
     442        if (batch->ep->address == uhci_rh_get_address(&instance->rh))
    450443                return uhci_rh_schedule(&instance->rh, batch);
    451444
Note: See TracChangeset for help on using the changeset viewer.