Changeset e7bc999 in mainline for uspace/drv/ohci/ohci_regs.h


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_regs.h

    r42dbb26 re7bc999  
    4242        volatile uint32_t control;
    4343        volatile uint32_t command_status;
     44        volatile uint32_t interrupt_status;
    4445        volatile uint32_t interupt_enable;
     46#define IE_SO   (1 << 0)
     47#define IE_WDH  (1 << 1)
     48#define IE_SF   (1 << 2)
     49#define IE_RD   (1 << 3)
     50#define IE_UE   (1 << 4)
     51#define IE_FNO  (1 << 5)
     52#define IE_RHSC (1 << 6)
     53#define IE_OC   (1 << 30)
     54#define IE_MIE  (1 << 31)
     55
    4556        volatile uint32_t interrupt_disable;
    4657        volatile uint32_t hcca;
     
    6071        volatile uint32_t rh_status;
    6172        volatile uint32_t rh_port_status[];
    62 } ohci_regs_t;
     73} __attribute__((packed)) ohci_regs_t;
    6374#endif
    6475/**
Note: See TracChangeset for help on using the changeset viewer.