Changeset 09ab0a9a in mainline for uspace/drv/bus/usb
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- Location:
- uspace/drv/bus/usb
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ehci/ehci_batch.c
rb2aaaa0 r09ab0a9a 380 380 * @} 381 381 */ 382 -
uspace/drv/bus/usb/ehci/ehci_batch.h
rb2aaaa0 r09ab0a9a 81 81 * @} 82 82 */ 83 -
uspace/drv/bus/usb/ehci/ehci_bus.c
rb2aaaa0 r09ab0a9a 108 108 } 109 109 110 111 110 static int ehci_register_ep(endpoint_t *ep) 112 111 { -
uspace/drv/bus/usb/ehci/ehci_regs.h
rb2aaaa0 r09ab0a9a 74 74 75 75 } ehci_caps_regs_t; 76 77 76 78 77 /** EHCI memory mapped operational registers structure */ … … 170 169 * @} 171 170 */ 172 -
uspace/drv/bus/usb/ehci/ehci_rh.c
rb2aaaa0 r09ab0a9a 392 392 } 393 393 394 395 394 /** Port clear feature request handler. 396 395 * @param device Virtual hub device -
uspace/drv/bus/usb/ehci/endpoint_list.c
rb2aaaa0 r09ab0a9a 184 184 * @} 185 185 */ 186 -
uspace/drv/bus/usb/ehci/endpoint_list.h
rb2aaaa0 r09ab0a9a 76 76 * @} 77 77 */ 78 -
uspace/drv/bus/usb/ehci/hc.c
rb2aaaa0 r09ab0a9a 377 377 fibril_mutex_unlock(&hc->guard); 378 378 379 380 379 } 381 380 … … 435 434 usb_log_debug("HC(%p): Enabled periodic list.", instance); 436 435 437 438 436 /* Enable Async schedule */ 439 437 phys_base = addr_to_phys((void *)instance->async_list.list_head); -
uspace/drv/bus/usb/ehci/hw_struct/fstn.h
rb2aaaa0 r09ab0a9a 46 46 * @} 47 47 */ 48 -
uspace/drv/bus/usb/ehci/hw_struct/mem_access.h
rb2aaaa0 r09ab0a9a 48 48 * @} 49 49 */ 50 -
uspace/drv/bus/usb/ehci/hw_struct/queue_head.h
rb2aaaa0 r09ab0a9a 162 162 #define QH_BUFFER_POINTER_FTAG_SHIFT 0 163 163 164 165 164 static inline void qh_append_qh(qh_t *qh, const qh_t *next) 166 165 { -
uspace/drv/bus/usb/ehci/hw_struct/split_iso_transfer_descriptor.h
rb2aaaa0 r09ab0a9a 108 108 * @} 109 109 */ 110 -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.c
rb2aaaa0 r09ab0a9a 43 43 #include "mem_access.h" 44 44 #include "transfer_descriptor.h" 45 46 45 47 46 errno_t td_error(const td_t *td) -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
rb2aaaa0 r09ab0a9a 112 112 * @} 113 113 */ 114 -
uspace/drv/bus/usb/ehci/res.h
rb2aaaa0 r09ab0a9a 44 44 * @} 45 45 */ 46 -
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
rb2aaaa0 r09ab0a9a 94 94 * @} 95 95 */ 96 -
uspace/drv/bus/usb/ohci/hw_struct/iso_transfer_descriptor.h
rb2aaaa0 r09ab0a9a 76 76 * @} 77 77 */ 78 79 -
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c
rb2aaaa0 r09ab0a9a 99 99 * @} 100 100 */ 101 -
uspace/drv/bus/usb/ohci/ohci_bus.c
rb2aaaa0 r09ab0a9a 114 114 } 115 115 116 117 116 static int ohci_register_ep(endpoint_t *ep) 118 117 { … … 190 189 }; 191 190 192 193 191 int ohci_bus_init(ohci_bus_t *bus, hc_t *hc) 194 192 { -
uspace/drv/bus/usb/ohci/ohci_regs.h
rb2aaaa0 r09ab0a9a 212 212 #define I_MI (1 << 31) /* Master interrupt (any/all) */ 213 213 214 215 214 /* 216 215 * ohci_regs_t.hcca -
uspace/drv/bus/usb/uhci/hc.c
rb2aaaa0 r09ab0a9a 104 104 static errno_t hc_debug_checker(void *arg); 105 105 106 107 106 /** Generate IRQ code. 108 107 * @param[out] code IRQ code structure. … … 479 478 list_initialize(&instance->pending_endpoints); 480 479 usb_log_debug("Initialized transfer lists."); 481 482 480 483 481 /* Set all frames to point to the first queue head */ -
uspace/drv/bus/usb/uhci/hw_struct/link_pointer.h
rb2aaaa0 r09ab0a9a 64 64 * @} 65 65 */ 66 -
uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h
rb2aaaa0 r09ab0a9a 98 98 } __attribute__((packed, aligned(16))) td_t; 99 99 100 101 100 void td_init(td_t *instance, int error_count, size_t size, bool toggle, 102 101 bool iso, bool low_speed, usb_target_t target, usb_packet_id pid, -
uspace/drv/bus/usb/uhci/uhci_batch.c
rb2aaaa0 r09ab0a9a 218 218 assert(dir == USB_DIRECTION_OUT || dir == USB_DIRECTION_IN); 219 219 220 221 220 const usb_packet_id pid = direction_pids[dir]; 222 221 const bool low_speed = -
uspace/drv/bus/usb/usbhub/main.c
rb2aaaa0 r09ab0a9a 44 44 #include "usbhub.h" 45 45 46 47 46 /** USB hub driver operations. */ 48 47 static const usb_driver_ops_t usb_hub_driver_ops = { -
uspace/drv/bus/usb/usbhub/port.c
rb2aaaa0 r09ab0a9a 96 96 } 97 97 98 99 98 static usb_speed_t get_port_speed(usb_hub_port_t *port, uint32_t status) 100 99 { … … 337 336 } 338 337 339 340 338 /** 341 339 * @} -
uspace/drv/bus/usb/usbmid/explore.c
rb2aaaa0 r09ab0a9a 107 107 continue; 108 108 } 109 110 109 111 110 usb_log_info("Creating child for interface %d (%s).", -
uspace/drv/bus/usb/vhc/conndev.c
rb2aaaa0 r09ab0a9a 135 135 } 136 136 137 138 137 /** 139 138 * @} -
uspace/drv/bus/usb/vhc/devconn.c
rb2aaaa0 r09ab0a9a 30 30 #include "vhcd.h" 31 31 #include "hub/virthub.h" 32 33 32 34 33 static vhc_virtdev_t *vhc_virtdev_create(void) -
uspace/drv/bus/usb/vhc/hub/hub.c
rb2aaaa0 r09ab0a9a 43 43 44 44 #include "hub.h" 45 46 45 47 46 /** Produce a byte from bit values. … … 388 387 } 389 388 390 391 389 /* 392 390 * … … 516 514 } 517 515 518 519 520 516 /** 521 517 * @} -
uspace/drv/bus/usb/vhc/hub/hub.h
rb2aaaa0 r09ab0a9a 114 114 uint8_t hub_get_status_change_bitmap(hub_t *); 115 115 116 117 116 #endif 118 117 /** -
uspace/drv/bus/usb/vhc/hub/virthub.c
rb2aaaa0 r09ab0a9a 47 47 #include "virthub.h" 48 48 #include "hub.h" 49 50 49 51 50 /** Standard device descriptor. */ -
uspace/drv/bus/usb/vhc/hub/virthub.h
rb2aaaa0 r09ab0a9a 51 51 #define HUB_CONFIGURATION_ID 1 52 52 53 54 53 /** Hub descriptor. 55 54 */ -
uspace/drv/bus/usb/vhc/hub/virthubops.c
rb2aaaa0 r09ab0a9a 84 84 } 85 85 86 87 86 uint8_t change_map = hub_get_status_change_bitmap(hub); 88 87 … … 340 339 } 341 340 342 343 344 341 /** Recipient: other. */ 345 342 #define REC_OTHER USB_REQUEST_RECIPIENT_OTHER … … 347 344 #define REC_DEVICE USB_REQUEST_RECIPIENT_DEVICE 348 345 349 350 346 /** Hub operations on control endpoint zero. */ 351 347 static usbvirt_control_request_handler_t endpoint_zero_handlers[] = { … … 409 405 } 410 406 }; 411 412 407 413 408 /** Hub operations. */ -
uspace/drv/bus/usb/xhci/bus.c
rb2aaaa0 r09ab0a9a 41 41 42 42 #include "bus.h" 43 44 43 45 44 static const bus_ops_t xhci_bus_ops = { -
uspace/drv/bus/usb/xhci/commands.h
rb2aaaa0 r09ab0a9a 150 150 #endif 151 151 152 153 154 152 /** 155 153 * @} -
uspace/drv/bus/usb/xhci/device.c
rb2aaaa0 r09ab0a9a 360 360 } 361 361 362 363 362 /** 364 363 * @} -
uspace/drv/bus/usb/xhci/endpoint.c
rb2aaaa0 r09ab0a9a 191 191 } 192 192 193 194 193 /** 195 194 * Register an andpoint to the xHC. -
uspace/drv/bus/usb/xhci/hc.c
rb2aaaa0 r09ab0a9a 356 356 }; 357 357 358 359 358 /** 360 359 * Generates code to accept interrupts. The xHCI is designed primarily for -
uspace/drv/bus/usb/xhci/transfers.c
rb2aaaa0 r09ab0a9a 492 492 } 493 493 494 495 494 errno_t err; 496 495 fibril_mutex_lock(&xhci_ep->guard); -
uspace/drv/bus/usb/xhci/trb_ring.c
rb2aaaa0 r09ab0a9a 54 54 55 55 static_assert(sizeof(trb_segment_t) == PAGE_SIZE); 56 57 56 58 57 /**
Note:
See TracChangeset
for help on using the changeset viewer.