Changes in uspace/drv/bus/usb/uhci/hc.h [26858040:5203e256] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/uhci/hc.h
r26858040 r5203e256 84 84 /** SOF modification to match external timers */ 85 85 uint8_t sofmod; 86 } uhci_regs_t;86 } regs_t; 87 87 88 88 #define UHCI_FRAME_LIST_COUNT 1024 … … 100 100 101 101 /** Addresses of I/O registers */ 102 uhci_regs_t *registers;102 regs_t *registers; 103 103 104 104 /** Frame List contains 1024 link pointers */ … … 116 116 /** Pointer table to the above lists, helps during scheduling */ 117 117 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 118 125 /** Fibril periodically checking status register*/ 119 126 fid_t interrupt_emulator; 127 120 128 /** Indicator of hw interrupts availability */ 121 129 bool hw_interrupts; … … 124 132 unsigned hw_failures; 125 133 } 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 129 135 int hc_init(hc_t *instance, void *regs, size_t reg_size, bool interupts); 136 130 137 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch); 138 131 139 void hc_interrupt(hc_t *instance, uint16_t status); 132 140
Note:
See TracChangeset
for help on using the changeset viewer.