-/* $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
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
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)