Changes in uspace/drv/ohci/hc.h [7013b14:62265ce] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified uspace/drv/ohci/hc.h

    r7013b14 r62265ce  
    5151#include "hw_struct/hcca.h"
    5252
     53#define OHCI_NEEDED_IRQ_COMMANDS 5
     54
    5355typedef struct hc {
    5456        ohci_regs_t *registers;
     
    6567        fid_t interrupt_emulator;
    6668        fibril_mutex_t guard;
     69
     70        /** Code to be executed in kernel interrupt handler */
     71        irq_code_t interrupt_code;
     72
     73        /** Commands that form interrupt code */
     74        irq_cmd_t interrupt_commands[OHCI_NEEDED_IRQ_COMMANDS];
    6775} hc_t;
    6876
    6977int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun);
    7078
    71 int hc_init(hc_t *instance, ddf_fun_t *fun, ddf_dev_t *dev,
    72      uintptr_t regs, size_t reg_size, bool interrupts);
     79int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts);
     80
     81void hc_start_hw(hc_t *instance);
    7382
    7483/** Safely dispose host controller internal structures
Note: See TracChangeset for help on using the changeset viewer.