diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-24 03:08:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-24 03:08:48 +0000 |
commit | 0b2ff0ad77613b3b487d93bbc14a0b1291029108 (patch) | |
tree | 2dea597319880288a526615a06cee2f15d2a3352 /sys/dev/usb | |
parent | 99fa4d452f2af9249797f8a08ae7df484fb0e608 (diff) |
remove unused xhci_cmd_evaluate_ctx()
ok mpi@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/xhci.c | 23 |
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) |