summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/xhci.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2021-02-24 03:08:47 +0000
committerjsg <jsg@openbsd.org>2021-02-24 03:08:47 +0000
commitba16b6b0ad840ade0e325689d180e20bba82225d (patch)
tree101ce2b4b93abcc79d59a5821a2afe327444e0d9 /sys/dev/usb/xhci.c
parentsync (diff)
downloadwireguard-openbsd-ba16b6b0ad840ade0e325689d180e20bba82225d.tar.xz
wireguard-openbsd-ba16b6b0ad840ade0e325689d180e20bba82225d.zip
remove unused xhci_cmd_evaluate_ctx()
ok mpi@
Diffstat (limited to 'sys/dev/usb/xhci.c')
-rw-r--r--sys/dev/usb/xhci.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c
index a016dd0e68d..e6f4a802dd7 100644
--- a/sys/dev/usb/xhci.c
+++ b/sys/dev/usb/xhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xhci.c,v 1.120 2020/12/24 14:11:38 mglocker Exp $ */
+/* $OpenBSD: xhci.c,v 1.121 2021/02/24 03:08:47 jsg Exp $ */
/*
* Copyright (c) 2014-2015 Martin Pieuchot
@@ -115,7 +115,6 @@ int xhci_cmd_configure_ep(struct xhci_softc *, uint8_t, uint64_t);
int xhci_cmd_stop_ep(struct xhci_softc *, uint8_t, uint8_t);
int xhci_cmd_slot_control(struct xhci_softc *, uint8_t *, int);
int xhci_cmd_set_address(struct xhci_softc *, uint8_t, uint64_t, uint32_t);
-int xhci_cmd_evaluate_ctx(struct xhci_softc *, uint8_t, uint64_t);
#ifdef XHCI_DEBUG
int xhci_cmd_noop(struct xhci_softc *);
#endif
@@ -2083,26 +2082,6 @@ xhci_cmd_set_address(struct xhci_softc *sc, uint8_t slot, uint64_t addr,
return (error);
}
-int
-xhci_cmd_evaluate_ctx(struct xhci_softc *sc, uint8_t slot, uint64_t addr)
-{
- struct xhci_trb trb;
- int error;
-
- DPRINTF(("%s: %s dev %u\n", DEVNAME(sc), __func__, slot));
-
- trb.trb_paddr = htole64(addr);
- trb.trb_status = 0;
- trb.trb_flags = htole32(
- XHCI_TRB_SET_SLOT(slot) | XHCI_CMD_EVAL_CTX
- );
-
- rw_enter_write(&sc->sc_cmd_lock);
- error = xhci_command_submit(sc, &trb, XHCI_CMD_TIMEOUT);
- rw_exit_write(&sc->sc_cmd_lock);
- return (error);
-}
-
#ifdef XHCI_DEBUG
int
xhci_cmd_noop(struct xhci_softc *sc)