Changeset e50cd7f in mainline for uspace/drv/ohci/hc.h
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (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/ohci/hc.h
ref354b6 re50cd7f 48 48 #include "ohci_regs.h" 49 49 #include "root_hub.h" 50 #include "endpoint_list.h" 50 51 #include "hw_struct/hcca.h" 51 52 52 53 typedef struct hc { 53 54 ohci_regs_t *registers; 55 hcca_t *hcca; 56 54 57 usb_address_t rh_address; 55 58 rh_t rh; 56 ddf_fun_t *ddf_instance; 59 60 endpoint_list_t lists[4]; 61 link_t pending_batches; 62 57 63 usb_device_keeper_t manager; 58 64 usb_endpoint_manager_t ep_manager; 59 65 fid_t interrupt_emulator; 66 fibril_mutex_t guard; 60 67 } hc_t; 61 68 … … 65 72 uintptr_t regs, size_t reg_size, bool interrupts); 66 73 67 int hc_schedule(hc_t *instance, usb_transfer_batch_t *batch);68 69 void hc_interrupt(hc_t *instance, uint32_t status);70 71 74 /** Safely dispose host controller internal structures 72 75 * … … 74 77 */ 75 78 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); 76 93 77 94 /** Get and cast pointer to the driver data
Note:
See TracChangeset
for help on using the changeset viewer.