diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-05 20:08:02 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-05 20:08:02 -0400 |
commit | eccaaf54d8e5ab90ed0cf9dd3be8204e35115692 (patch) | |
tree | 7dc48b6171dd6906671b6feab8bc2b15c084ff72 /sys/dev/usb | |
parent | f5325a0dec76f15ce2d0ba28719cc78710b63574 (diff) |
kernel: xhci: Remove unused functions
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/xhci.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index d68eeac..61e9b8b 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -79,23 +79,6 @@ xhci_set_erst_base(struct xhci_hc *hc, uintptr_t pa) } /* - * Set up an xHCI event ring segment. - */ -static int -xhci_init_evring_segment(struct xhci_evring_segment *seg) -{ - size_t evring_size; - void *event_ring; - - evring_size = XHCI_TRB_SIZE * XHCI_EVRING_LEN; - event_ring = dynalloc_memalign(evring_size, 64); - - seg->base = VIRT_TO_PHYS(event_ring); - seg->size = XHCI_EVRING_LEN; - return 0; -} - -/* * Submit a command by pushing a TRB to the * command ring. * @@ -364,25 +347,6 @@ xhci_alloc_cmdring(struct xhci_hc *hc) } /* - * Allocates the event ring segment - * and sets hc->evring_seg to the virtual address. - * - * Returns the physical address. - */ -static uintptr_t -xhci_alloc_evring(struct xhci_hc *hc) -{ - size_t evring_segment_sz; - - /* Allocate event ring segment */ - evring_segment_sz = sizeof(struct xhci_evring_segment); - hc->evring_seg = dynalloc_memalign(evring_segment_sz, 0x1000); - xhci_init_evring_segment(hc->evring_seg); - - return VIRT_TO_PHYS(hc->evring_seg); -} - -/* * Sets up the event ring. */ static void |