 INCLUDE ST_EQU
*$machine_name DoTransfer
*$global_recover exec_err
*******************************************************
*state_1        standard
*               MESSAGES_msgSetXfer
*$event_pairs_catch
*               ScsiErr,state_exit
*               state_2
*******************************************************
*state_2        standard
*               MESSAGES_msgDoXfer
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               WaitForISR,state_2a
*               MsgIn,state_4
*               MsgOut,state_3
*               state_exit
*******************************************************
*state_2a       suspend
*               state_2
*******************************************************
*state_3        standard
*               MESSAGES_msgSawErrMsg
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               MsgIn,state_4
*               state_exit
*******************************************************
*state_4        standard
*               MESSAGES_msgGetMsg
*$event_pairs_catch
*               SaveDataPtr,state_5
*               Identify,state_6
*               RestorePtrs,state_6
*               Disconnect,state_7
*               Synch,state_12
*               ScsiErr,state_exit
*               state_8
*******************************************************
*state_5        standard
*               MESSAGES_msgPrepareDisc
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               MsgIn,state_4
*               state_10
*******************************************************
*state_6        standard
*               MESSAGES_msgPrepareRetry
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               MsgIn,state_4
*               state_10
*******************************************************
*state_7        standard
*               MESSAGES_msgSetDisc
*$event_pairs
*               BusFree,state_9
*               ScsiErr,state_exit
*******************************************************
*state_8        standard
*               MESSAGES_msgRejectMsg
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               MsgIn,state_4
*               ScsiErr,state_exit
*               state_10
*******************************************************
*state_9        standard
*               MESSAGES_msgWaitReselect
*$event_pairs_catch
*               WaitForISR,state_9a
*               MsgIn,state_4
*               ScsiErr,state_exit
*               state_exit
*******************************************************
*state_9a       suspend
*               state_9
*******************************************************
*state_10       standard
*               MESSAGES_msgIsOriginalPhase
*$event_pairs_catch
*               OriginalPhase,state_2
*               state_exit
*******************************************************
*state_12       standard
*               MESSAGES_msgTargetSynchParms
*               HWI_UTILS_hwiGetPhase
*$event_pairs_catch
*               ScsiErr,state_exit
*               state_10
*******************************************************
*exec_err       standard
*               COMMANDS_cmdStateErr
*$event_pairs_catch
*               state_exit
*******************************************************
*state_exit     mexit
*               0
*******************************************************
*$end_machine
*******************************************************
