Changeset 4069f5c in mainline for uspace/drv/bus/usb/ohci/root_hub.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/root_hub.h
r27eddb52 r4069f5c 41 41 #include "batch.h" 42 42 43 #define HUB_DESCRIPTOR_MAX_SIZE (7 + 2 + 2) 44 43 45 /** 44 46 * ohci root hub representation … … 51 53 /** hub port count */ 52 54 size_t port_count; 53 /** hubs descriptors */54 usb_device_descriptors_t descriptors;55 55 /** interrupt transfer waiting for an actual interrupt to occur */ 56 usb_transfer_batch_t * unfinished_interrupt_transfer; 57 /** pre-allocated interrupt mask 58 * 59 * This is allocated when initializing instance, so that memory 60 * allocation is not needed when processing request. Buffer is used for 61 * interrupt bitmask. 62 */ 63 uint8_t * interrupt_buffer; 56 usb_transfer_batch_t *unfinished_interrupt_transfer; 64 57 /** size of interrupt buffer */ 65 58 size_t interrupt_mask_size; 66 /** instance`s descriptor*/ 67 uint8_t * hub_descriptor; 59 /** Descriptors */ 60 struct { 61 usb_standard_configuration_descriptor_t configuration; 62 usb_standard_interface_descriptor_t interface; 63 usb_standard_endpoint_descriptor_t endpoint; 64 uint8_t hub[HUB_DESCRIPTOR_MAX_SIZE]; 65 } __attribute__ ((packed)) descriptors; 68 66 /** size of hub descriptor */ 69 size_t descriptor_size; 70 67 size_t hub_descriptor_size; 71 68 72 69 } rh_t; 73 70 74 intrh_init(rh_t *instance, ohci_regs_t *regs);71 void rh_init(rh_t *instance, ohci_regs_t *regs); 75 72 76 intrh_request(rh_t *instance, usb_transfer_batch_t *request);73 void rh_request(rh_t *instance, usb_transfer_batch_t *request); 77 74 78 75 void rh_interrupt(rh_t *instance);
Note:
See TracChangeset
for help on using the changeset viewer.