; ----------------------------------------------------------------------------- ; iop command list structure ; many devices, such as qttys, use the following list of commands struct 0 ds 2 ; (not used) cm_open: ds 2 ; open cm_close: ds 2 ; close cm_read: ds 2 ; read cm_write: ds 2 ; write cm_gmode: ds 2 ; get device parameters (mode) cm_smode: ds 2 ; set device parameters cml equ $ mend cmd NCMDS equ cml/2 ; number of commands ; command type. ; the upper bits of the command byte sent to the iop specify the type ; of command. (the lower bits specify the iop channel number. ; NCHANS is the number of iop channels. NCHANS is a power of 2.) cIOPABORT equ 0 * NCHANS cIOPOPEN equ CM_OPEN/2 * NCHANS cIOPCLOSE equ CM_CLOSE/2 * NCHANS cIOPREAD equ CM_READ/2 * NCHANS cIOPWRITE equ CM_WRITE/2 * NCHANS cIOPGMODE equ CM_GMODE/2 * NCHANS cIOPSMODE equ CM_SMODE/2 * NCHANS cIOPWAKE equ 7 * NCHANS