Ignore:
File:
1 edited

Legend:

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

    r26858040 r5203e256  
    8484        /** SOF modification to match external timers */
    8585        uint8_t sofmod;
    86 } uhci_regs_t;
     86} regs_t;
    8787
    8888#define UHCI_FRAME_LIST_COUNT 1024
     
    100100
    101101        /** Addresses of I/O registers */
    102         uhci_regs_t *registers;
     102        regs_t *registers;
    103103
    104104        /** Frame List contains 1024 link pointers */
     
    116116        /** Pointer table to the above lists, helps during scheduling */
    117117        transfer_list_t *transfers[2][4];
     118
     119        /** Code to be executed in kernel interrupt handler */
     120        irq_code_t interrupt_code;
     121
     122        /** Commands that form interrupt code */
     123        irq_cmd_t interrupt_commands[UHCI_NEEDED_IRQ_COMMANDS];
     124
    118125        /** Fibril periodically checking status register*/
    119126        fid_t interrupt_emulator;
     127
    120128        /** Indicator of hw interrupts availability */
    121129        bool hw_interrupts;
     
    124132        unsigned hw_failures;
    125133} hc_t;
    126 size_t hc_irq_cmd_count(void);
    127 int hc_get_irq_commands(
    128     irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size);
     134
    129135int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts);
     136
    130137int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);
     138
    131139void hc_interrupt(hc_t *instance, uint16_t status);
    132140
Note: See TracChangeset for help on using the changeset viewer.