Changeset 9a7e5b4 in mainline for uspace/drv
- Timestamp:
- 2011-04-07T08:19:03Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41c1f7b
- Parents:
- dcaf819 (diff), 506d330 (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. - Location:
- uspace/drv
- Files:
-
- 2 added
- 6 edited
-
ohci/hc.h (modified) (1 diff)
-
ohci/hw_struct/completion_codes.h (added)
-
ohci/hw_struct/endpoint_descriptor.h (modified) (1 diff)
-
ohci/hw_struct/hcca.h (added)
-
ohci/hw_struct/iso_transfer_descriptor.h (modified) (1 diff)
-
ohci/hw_struct/transfer_descriptor.h (modified) (2 diffs)
-
ohci/iface.c (modified) (1 diff)
-
uhci-hcd/iface.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.h
rdcaf819 r9a7e5b4 48 48 #include "ohci_regs.h" 49 49 #include "root_hub.h" 50 #include "hw_struct/hcca.h" 50 51 51 52 typedef struct hc { -
uspace/drv/ohci/hw_struct/endpoint_descriptor.h
rdcaf819 r9a7e5b4 32 32 * @brief OHCI driver 33 33 */ 34 #ifndef DRV_OHCI_ ENDPOINT_DESCRIPTOR_H35 #define DRV_OHCI_ ENDPOINT_DESCRIPTOR_H34 #ifndef DRV_OHCI_HW_STRUCT_ENDPOINT_DESCRIPTOR_H 35 #define DRV_OHCI_HW_STRUCT_ENDPOINT_DESCRIPTOR_H 36 36 37 37 #include <stdint.h> 38 39 #include "completion_codes.h" 38 40 39 41 typedef struct ed { -
uspace/drv/ohci/hw_struct/iso_transfer_descriptor.h
rdcaf819 r9a7e5b4 32 32 * @brief OHCI driver 33 33 */ 34 #ifndef DRV_OHCI_ ISO_TRANSFER_DESCRIPTOR_H35 #define DRV_OHCI_ ISO_TRANSFER_DESCRIPTOR_H34 #ifndef DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H 35 #define DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H 36 36 37 37 #include <stdint.h> 38 39 #include "completion_codes.h" 38 40 39 41 typedef struct itd { -
uspace/drv/ohci/hw_struct/transfer_descriptor.h
rdcaf819 r9a7e5b4 32 32 * @brief OHCI driver 33 33 */ 34 #ifndef DRV_OHCI_ TRANSFER_DESCRIPTOR_H35 #define DRV_OHCI_ TRANSFER_DESCRIPTOR_H34 #ifndef DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H 35 #define DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H 36 36 37 37 #include <stdint.h> 38 39 #include "completion_codes.h" 38 40 39 41 typedef struct td { … … 66 68 * @} 67 69 */ 68 -
uspace/drv/ohci/iface.c
rdcaf819 r9a7e5b4 163 163 usb_str_speed(speed), direction, size, max_packet_size, interval); 164 164 // TODO use real endpoint here! 165 return usb_endpoint_manager_register_ep(&hc->ep_manager, 166 address, endpoint, direction, NULL, 0); 165 return usb_endpoint_manager_register_ep(&hc->ep_manager,NULL, 0); 167 166 } 168 167 /*----------------------------------------------------------------------------*/ -
uspace/drv/uhci-hcd/iface.c
rdcaf819 r9a7e5b4 168 168 if (ep == NULL) 169 169 return ENOMEM; 170 ret = endpoint_init(ep, transfer_type, speed, max_packet_size); 170 ret = endpoint_init(ep, address, endpoint, direction, 171 transfer_type, speed, max_packet_size); 171 172 if (ret != EOK) { 172 173 free(ep); … … 178 179 usb_str_speed(speed), direction, size, max_packet_size, interval); 179 180 180 ret = usb_endpoint_manager_register_ep(&hc->ep_manager, 181 address, endpoint, direction, ep, size); 181 ret = usb_endpoint_manager_register_ep(&hc->ep_manager, ep, size); 182 182 if (ret != EOK) { 183 183 endpoint_destroy(ep);
Note:
See TracChangeset
for help on using the changeset viewer.
