Changes in uspace/drv/bus/usb/ohci/hc.h [7de1988c:7813516] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ohci/hc.h
r7de1988c r7813516 35 35 #define DRV_OHCI_HC_H 36 36 37 #include <ddf/interrupt.h> 37 #include <adt/list.h> 38 #include <ddi.h> 39 #include <ddf/driver.h> 40 #include <device/hw_res_parsed.h> 38 41 #include <fibril.h> 39 42 #include <fibril_synch.h> 40 #include < adt/list.h>41 #include < ddi.h>43 #include <stdbool.h> 44 #include <sys/types.h> 42 45 43 #include <usb/usb.h>44 46 #include <usb/host/hcd.h> 47 #include <usb/host/endpoint.h> 48 #include <usb/host/usb_transfer_batch.h> 45 49 46 #include "ohci_batch.h"47 50 #include "ohci_regs.h" 48 #include " root_hub.h"51 #include "ohci_rh.h" 49 52 #include "endpoint_list.h" 50 53 #include "hw_struct/hcca.h" … … 52 55 /** Main OHCI driver structure */ 53 56 typedef struct hc { 54 /** Generic USB hc driver */55 hcd_t generic;56 57 57 /** Memory mapped I/O registers area */ 58 58 ohci_regs_t *registers; … … 72 72 73 73 /** USB hub emulation structure */ 74 rh_t rh;74 ohci_rh_t rh; 75 75 } hc_t; 76 76 77 int hc_get_irq_code(irq_pio_range_t [], size_t, irq_cmd_t [], size_t, 78 addr_range_t *); 79 int hc_register_irq_handler(ddf_dev_t *, addr_range_t *, int, 80 interrupt_handler_t); 77 int hc_gen_irq_code(irq_code_t *code, const hw_res_list_parsed_t *hw_res); 81 78 int hc_register_hub(hc_t *instance, ddf_fun_t *hub_fun); 82 int hc_init(hc_t *instance, addr_range_t *regs, bool interrupts); 83 84 /** Safely dispose host controller internal structures 85 * 86 * @param[in] instance Host controller structure to use. 87 */ 88 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ }; 79 int hc_init(hc_t *instance, const hw_res_list_parsed_t *hw_res, bool interrupts); 80 void hc_fini(hc_t *instance); 89 81 90 82 void hc_enqueue_endpoint(hc_t *instance, const endpoint_t *ep); 91 83 void hc_dequeue_endpoint(hc_t *instance, const endpoint_t *ep); 84 int hc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch); 92 85 93 86 void hc_interrupt(hc_t *instance, uint32_t status);
Note:
See TracChangeset
for help on using the changeset viewer.