Changes in uspace/drv/ohci/hc.h [7013b14:344925c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.h
r7013b14 r344925c 48 48 #include "ohci_regs.h" 49 49 #include "root_hub.h" 50 #include " endpoint_list.h"50 #include "transfer_list.h" 51 51 #include "hw_struct/hcca.h" 52 52 53 53 typedef struct hc { 54 54 ohci_regs_t *registers; 55 hcca_t *hcca;56 57 55 usb_address_t rh_address; 58 56 rh_t rh; 59 57 60 endpoint_list_t lists[4]; 61 link_t pending_batches; 58 hcca_t *hcca; 62 59 60 transfer_list_t transfers_isochronous; 61 transfer_list_t transfers_interrupt; 62 transfer_list_t transfers_control; 63 transfer_list_t transfers_bulk; 64 65 transfer_list_t *transfers[4]; 66 67 ddf_fun_t *ddf_instance; 63 68 usb_device_keeper_t manager; 64 69 usb_endpoint_manager_t ep_manager; 65 70 fid_t interrupt_emulator; 66 fibril_mutex_t guard;67 71 } hc_t; 68 72 … … 72 76 uintptr_t regs, size_t reg_size, bool interrupts); 73 77 78 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch); 79 80 void hc_interrupt(hc_t *instance, uint32_t status); 81 74 82 /** Safely dispose host controller internal structures 75 83 * … … 77 85 */ 78 86 static inline void hc_fini(hc_t *instance) { /* TODO: implement*/ }; 79 80 int hc_add_endpoint(hc_t *instance, usb_address_t address, usb_endpoint_t ep,81 usb_speed_t speed, usb_transfer_type_t type, usb_direction_t direction,82 size_t max_packet_size, size_t size, unsigned interval);83 84 int hc_remove_endpoint(hc_t *instance, usb_address_t address,85 usb_endpoint_t endpoint, usb_direction_t direction);86 87 endpoint_t * hc_get_endpoint(hc_t *instance, usb_address_t address,88 usb_endpoint_t endpoint, usb_direction_t direction, size_t *bw);89 90 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);91 92 void hc_interrupt(hc_t *instance, uint32_t status);93 87 94 88 /** Get and cast pointer to the driver data
Note:
See TracChangeset
for help on using the changeset viewer.