Ignore:
File:
1 edited

Legend:

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

    r5203e256 r26858040  
    8484        /** SOF modification to match external timers */
    8585        uint8_t sofmod;
    86 } regs_t;
     86} uhci_regs_t;
    8787
    8888#define UHCI_FRAME_LIST_COUNT 1024
     
    100100
    101101        /** Addresses of I/O registers */
    102         regs_t *registers;
     102        uhci_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 
    125118        /** Fibril periodically checking status register*/
    126119        fid_t interrupt_emulator;
    127 
    128120        /** Indicator of hw interrupts availability */
    129121        bool hw_interrupts;
     
    132124        unsigned hw_failures;
    133125} hc_t;
    134 
     126size_t hc_irq_cmd_count(void);
     127int hc_get_irq_commands(
     128    irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size);
    135129int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts);
    136 
    137130int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);
    138 
    139131void hc_interrupt(hc_t *instance, uint16_t status);
    140132
Note: See TracChangeset for help on using the changeset viewer.