Changes in uspace/drv/bus/usb/ohci/hc.h [1ef93fa:5203e256] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.h
r1ef93fa r5203e256 51 51 #include "hw_struct/hcca.h" 52 52 53 /** Main OHCI driver structure */ 53 #define OHCI_NEEDED_IRQ_COMMANDS 5 54 55 /** Main OHCI drier structure */ 54 56 typedef struct hc { 55 57 /** USB bus driver, devices and addresses */ … … 74 76 fibril_mutex_t guard; 75 77 78 /** Code to be executed in kernel interrupt handler */ 79 irq_code_t interrupt_code; 80 81 /** Commands that form interrupt code */ 82 irq_cmd_t interrupt_commands[OHCI_NEEDED_IRQ_COMMANDS]; 83 76 84 /** USB hub emulation structure */ 77 85 rh_t rh; 78 86 } hc_t; 79 87 80 size_t hc_irq_cmd_count(void); 81 int hc_get_irq_commands( 82 irq_cmd_t cmds[], size_t cmd_size, uintptr_t regs, size_t reg_size); 88 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun); 83 89 int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts); 84 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun);90 void hc_start_hw(hc_t *instance); 85 91 86 92 /** Safely dispose host controller internal structures
Note:
See TracChangeset
for help on using the changeset viewer.