Changes in uspace/drv/bus/usb/xhci/hc.c [a36c4aa:bb97118] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/xhci/hc.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
ra36c4aa rbb97118 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2018 Ondrej Hlavaty, Petr Manek, Jaroslav Jindrak, Jan Hrach, Michal Staruch 4 3 * All rights reserved. … … 166 165 speeds[psiv].major = major; 167 166 speeds[psiv].minor = minor; 168 memcpy(speeds[psiv].name, name.str, 4);167 str_ncpy(speeds[psiv].name, 4, name.str, 4); 169 168 speeds[psiv].usb_speed = USB_SPEED_MAX; 170 169 … … 747 746 } 748 747 749 /**750 * Quiesce host controller.751 */752 errno_t hc_quiesce(xhci_hc_t *hc)753 {754 hc_stop(hc);755 usb_log_info("HC quiesced.");756 return EOK;757 }758 759 748 unsigned hc_speed_to_psiv(usb_speed_t speed) 760 749 { … … 897 886 } 898 887 899 /* Issue configure endpoint command (sec 4.3.5). */888 /* Issue configure endpoint command (sec 4.3.5). */ 900 889 dma_buffer_t ictx_dma_buf; 901 890 if ((err = create_configure_ep_input_ctx(dev, &ictx_dma_buf))) … … 939 928 xhci_cmd_t cmd; 940 929 941 /* Issue configure endpoint command (sec 4.3.5). */930 /* Issue configure endpoint command (sec 4.3.5). */ 942 931 dma_buffer_t ictx_dma_buf; 943 932 errno_t err = create_configure_ep_input_ctx(dev, &ictx_dma_buf); … … 968 957 return EOK; 969 958 970 /* Issue configure endpoint command (sec 4.3.5) with the DC flag. */959 /* Issue configure endpoint command (sec 4.3.5) with the DC flag. */ 971 960 xhci_cmd_init(&cmd, XHCI_CMD_CONFIGURE_ENDPOINT); 972 961 cmd.slot_id = dev->slot_id; … … 992 981 xhci_cmd_t cmd; 993 982 994 /* Issue configure endpoint command (sec 4.3.5). */983 /* Issue configure endpoint command (sec 4.3.5). */ 995 984 dma_buffer_t ictx_dma_buf; 996 985 errno_t err = create_configure_ep_input_ctx(dev, &ictx_dma_buf); … … 1031 1020 return EOK; 1032 1021 1033 /* Issue configure endpoint command (sec 4.3.5). */1022 /* Issue configure endpoint command (sec 4.3.5). */ 1034 1023 dma_buffer_t ictx_dma_buf; 1035 1024 errno_t err = create_configure_ep_input_ctx(dev, &ictx_dma_buf);
Note:
See TracChangeset
for help on using the changeset viewer.
