Download VMEHSD
Transcript
2.9.8 HSDDEVSTS [Read Attached Device Status] Argument: pointer to hsdctl structure This call issues a device status request IOCB to the addressed VMEHSD and stores the VMEHSD and device status in the addressed hsdctl structure. The iocb_dsr field of the hsdctl is used as the source of the device-dependent portion of the device status request IOCB. This function can be issued to any VMEHSD which is operating as an HSD and which has no active I/O requests. 2.9.9 HSDDEVCMD [Issue Command to Attached Device] Argument: pointer to hsdctl structure This call issues a device command, optionally followed by a Device Status Request IOCB to the addressed VMEHSD and stores the VMEHSD and device status in the addressed hsdctl structure. The iocb_cmd1 and iocb_cmd2 fields of the addressed hsdctl provide the device-dependent portion of the device command IOCB. If the SACMD flag is set in the hsdctl, a Device Status Request IOCB will be command chained to the device command IOCB. The iocb_dsr field of the hsdctl provides the device-dependent portion of the Device Status Request IOCB. This function can be issued to any VMEHSD operating as an HSD and which has no active I/O requests. 2.9.10 HSDPRVSTS [Read Status of Previous Operation] Argument: pointer to hsdctl structure This call returns status from the last operation performed on the addressed device to the referenced hsdctl structure. The most recent board and external device status are stored in fields hsd_sts and dev_sts, respectively. The extended status code from the last operation is stored in the xstatus field and the value returned to the system errno variable from the last ioctl call is stored in the perrno field. This call is useful in obtaining more detailed information about a failed data transfer operation. It may be issued to any device at any time. The return value from this function is always zero, unless problems are encountered in accessing the user's hsdctl structure, in which case -1 will be returned and errno will be set to EFAULT. 2.9.11 HSDAUXCMD [Prefix Auxiliary IOCL to Read/Write] ____________________________________________________________________________________________ DRIVER FUNCTIONS 2-8 0900115