Changeset e7bc999 in mainline for uspace/drv/ohci/ohci_hc.c


Ignore:
Timestamp:
2011-03-20T21:36:17Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1fb1339, 33577f81, fd9f6e4c
Parents:
42dbb26
Message:

Add interrupt support

Fix register structure
Interrupts disabled as there is no way to access mm registers in the handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/ohci_hc.c

    r42dbb26 re7bc999  
    4545
    4646int ohci_hc_init(ohci_hc_t *instance, ddf_fun_t *fun,
    47     uintptr_t regs, size_t reg_size)
     47    uintptr_t regs, size_t reg_size, bool interrupts)
    4848{
    4949        assert(instance);
     
    5353                return ret;
    5454        }
     55        instance->registers->interrupt_disable = 0;
     56        /* enable interrupt on root hub status change */
     57        instance->registers->interupt_enable |= IE_RHSC | IE_MIE;
     58
    5559
    5660        ohci_rh_init(&instance->rh, instance->registers);
     
    7579{
    7680        assert(instance);
     81        /* TODO: Check for interrupt cause */
    7782        ohci_rh_interrupt(&instance->rh);
    7883        /* TODO: implement */
Note: See TracChangeset for help on using the changeset viewer.