Lines Matching defs:iop
1 /* $NetBSD: iop.c,v 1.93 2023/09/07 20:07:03 ad Exp $ */
37 __KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.93 2023/09/07 20:07:03 ad Exp $");
39 #include "iop.h"
281 * Initialise the IOP and our interface.
304 /* Disable interrupts at the IOP. */
415 /* Initialise the IOP's outbound FIFO. */
431 /* Ensure interrupts are enabled at the IOP. */
472 struct iop_softc *sc, *iop;
495 if ((iop = device_lookup_private(&iop_cd, i)) == NULL)
497 if ((iop->sc_flags & IOP_HAVESTATUS) == 0)
499 if (iop_status_get(iop, 1) != 0) {
501 iop->sc_flags &= ~IOP_HAVESTATUS;
519 if ((iop = device_lookup_private(&iop_cd, i)) == NULL)
521 if ((iop->sc_flags & IOP_HAVESTATUS) == 0)
524 ste->orgid = iop->sc_status.orgid;
525 ste->iopid = device_unit(iop->sc_dev) + 2;
527 htole32(le32toh(iop->sc_status.segnumber) & ~4095);
528 ste->iopcaps = iop->sc_status.iopcaps;
530 iop->sc_status.inboundmframesize;
532 htole32(iop->sc_memaddr + IOP_REG_IFIFO);
538 * Post the system table to the IOP and bring it to the OPERATIONAL
553 * Set up an event handler for this IOP.
725 * trust the IOP (and the operator) to behave itself...
881 printf("shutting down iop devices...");
908 * Retrieve IOP status.
963 * Initialize and populate the IOP's outbound FIFO.
1065 * Read the specified number of bytes from the IOP's hardware resource table.
1090 * Read the IOP's hardware resource table.
1120 * Request the specified number of bytes from the IOP's logical
1160 * Read the IOP's logical configuration table.
1443 * Post the system table to the IOP.
1501 * Reset the IOP. Must be called with interrupts disabled.
1542 * IOP is now in the INIT state. Wait no more than 10 seconds for
1568 * `Utility initiators' don't make it onto the per-IOP initiator list
1607 * Handle a reply frame from the IOP.
1744 * Handle an interrupt from the IOP.
1762 /* Double read to account for IOP bug. */
1987 * potentially more efficient, both for us and the IOP.
2077 * Post a message frame to the IOP's inbound queue.
2091 /* Allocate a slot with the IOP. */
2111 /* Post the MFA back to the IOP. */
2119 * Post a message to the IOP and deal with completion.
2173 /* Double read to account for IOP bug. */
2181 * Return the reply frame to the IOP's
2200 printf("iop_msg_poll: IOP state = %d\n",
2230 printf("%s: IOP state = %d\n", __func__,
2239 * Release an unused message frame back to the IOP's inbound fifo.