Changeset 77d10f0 in mainline for uspace/drv/uhci-hcd/hc.h


Ignore:
Timestamp:
2011-04-22T21:29:57Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af81980
Parents:
6f122df
Message:

Do not use static irq_commnd structure, there is no enough shared data.

One less malloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/hc.h

    r6f122df r77d10f0  
    9191#define UHCI_DEBUGER_TIMEOUT 5000000
    9292#define UHCI_ALLOWED_HW_FAIL 5
     93#define UHCI_NEEDED_IRQ_COMMANDS 3
    9394
    9495/* Main HC driver structure */
     
    119120        /** Code to be executed in kernel interrupt handler */
    120121        irq_code_t interrupt_code;
     122
     123        /** Commands that form interrupt code */
     124        irq_cmd_t interrupt_commands[UHCI_NEEDED_IRQ_COMMANDS];
    121125
    122126        /** Fibril periodically checking status register*/
Note: See TracChangeset for help on using the changeset viewer.