a dev/i2o/iopio.h . Note that the headers
a dev/i2o/i2o.h are prerequisites and must therefore be included beforehand. l -tag -width OTTF t Dv IOPIOCPT (struct ioppt) Submit a message to the IOP and return the reply. Note that the return value of this ioctl is not affected by completion status as indicated by the reply. d -literal struct ioppt { void *pt_msg; /* pointer to message buffer */ size_t pt_msglen; /* message buffer size in bytes */ void *pt_reply; /* pointer to reply buffer */ size_t pt_replylen; /* reply buffer size in bytes */ int pt_timo; /* completion timeout in ms */ int pt_nbufs; /* number of transfers */ struct ioppt_buf pt_bufs[IOP_MAX_MSG_XFERS]; /* transfers */ }; struct ioppt_buf { void *ptb_data; /* pointer to buffer */ size_t ptb_datalen; /* buffer size in bytes */ int ptb_out; /* non-zero if transfer is to IOP */ }; .Ed
p The minimum timeout value that may be specified is 1000ms. All other values must not exceed the .Nm driver's operational limits. t Dv IOPIOCGSTATUS (struct iovec) Request the latest available status record from the IOP. This special-case ioctl is provided as the I2O_EXEC_STATUS_GET message does not post replies, and can therefore not be safely issued using the IOPIOCPT ioctl. .El
p The following ioctls may block while attempting to acquire the .Nm driver's configuration lock, and may fail if the acquisition times out. l -tag -width OTTF t Dv IOPIOCGLCT (struct iovec) Retrieve the .Nm driver's copy of the logical configuration table. This copy of the LCT matches the current device configuration, but is not necessarily the latest available version of the LCT. t Dv IOPIOCRECONFIG Request that the .Nm driver scan all bus ports, retrieve the latest version of the LCT, and attach or detach devices as necessary. Note that higher-level reconfiguration tasks (such as logically re-scanning SCSI busses) will not be performed by this ioctl. t Dv IOPIOCGTIDMAP (struct iovec) Retrieve the TID to device map. This map indicates which targets are configured, and what the corresponding device name for each is. Although at any given point it contains the same number of entries as the LCT, the number of entries should be determined using the iov_len field from the returned iovec. d -literal struct iop_tidmap { u_short it_tid; u_short it_flags; char it_dvname[sizeof(((struct device *)NULL)->dv_xname)]; }; #define IT_CONFIGURED 0x02 /* target configured */ .Ed .El .Sh FILES l -tag -width /dev/iopn -compact t Pa /dev/iop Ns Ar u control device for IOP unit .Ar u .El .Sh SEE ALSO .Xr intro 4 , .Xr iopsp 4 , .Xr ld 4 , .Xr iopctl 8
p http://www.intelligent-io.com/ .Sh AUTHOR The .Nm driver was written by Andrew Doran .Aq ad (at] netbsd.org . .Sh HISTORY The .Nm driver first appeared in .Nx 1.6 .