Changeset 4069f5c in mainline for uspace/drv/bus/usb/ohci/hc.h
- Timestamp:
- 2011-07-17T09:52:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64639256, ca1f1ec
- Parents:
- 27eddb52 (diff), 4118f5f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.h
r27eddb52 r4069f5c 51 51 #include "hw_struct/hcca.h" 52 52 53 #define OHCI_NEEDED_IRQ_COMMANDS 5 54 55 /** Main OHCI drier structure */ 53 /** Main OHCI driver structure */ 56 54 typedef struct hc { 57 55 /** USB bus driver, devices and addresses */ … … 76 74 fibril_mutex_t guard; 77 75 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 84 76 /** USB hub emulation structure */ 85 77 rh_t rh; 86 78 } hc_t; 87 79 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); 83 int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts); 88 84 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun); 89 int hc_init(hc_t *instance, uintptr_t regs, size_t reg_size, bool interrupts);90 void hc_start_hw(hc_t *instance);91 85 92 86 /** Safely dispose host controller internal structures
Note:
See TracChangeset
for help on using the changeset viewer.