 INCLUDE ST_EQU
*$machine_name SCSI_DRIVER
*$global_recover state_10
*******************************************************
*state_1        standard
*               HWI_UTILS_hwiGetPhase
*$event_pairs
*               BusFree,state_3
*               BusBusy,state_2
*               ScsiErr,state_12
*******************************************************
*state_2        standard
*               MESSAGES_msgWaitTimeOrFree
*$event_pairs
*               BusFree,state_3
*               ScsiErr,state_12
*******************************************************
*state_3        mcall
*               EstablishPath
*$event_pairs
*               CmdPhase,state_4
*               BusBusy,state_2
*               StatusPhase,state_6
*               ScsiErr,state_12
*               BusFree,state_11
*               MsgIn,state_11
*               MsgOut,state_11
*               DataPhase,state_11
*******************************************************
*state_4        mcall
*               DoTransfer
*$event_pairs
*               DataPhase,state_5
*               StatusPhase,state_6
*               ScsiErr,state_12
*               BusBusy,state_11
*               CmdPhase,state_11
*               BusFree,state_11
*               MsgIn,state_11
*               MsgOut,state_11
*******************************************************
*state_5        mcall
*               DoTransfer
*$event_pairs
*               StatusPhase,state_6
*               ScsiErr,state_12
*               BusBusy,state_11
*               CmdPhase,state_11
*               DataPhase,state_11
*               BusFree,state_11
*               MsgIn,state_11
*               MsgOut,state_11
*******************************************************
*state_6        standard
*               COMMANDS_cmdGetStatus
*               HWI_UTILS_hwiGetPhase
*$event_pairs
*               MsgIn,state_7
*               ScsiErr,state_12
*               DataPhase,state_11
*               StatusPhase,state_11
*               BusBusy,state_11
*               CmdPhase,state_11
*               BusFree,state_11
*               MsgOut,state_11
*******************************************************
*state_7        mcall
*               TerminatePath
*$event_pairs
*               BusFree,state_8
*               ScsiErr,state_12
*               MsgIn,state_11
*               CmdPhase,state_11
*               DataPhase,state_11
*               StatusPhase,state_11
*               BusBusy,state_11
*               MsgOut,state_11
*******************************************************
*state_8        standard
*               COMMANDS_cmdTerminateSession
*$event_pairs_catch
*               state_exit
*******************************************************
*state_10       standard
*               COMMANDS_cmdStateErr
*$event_pairs_catch
*               state_12
*******************************************************
*state_11       standard
*               COMMANDS_cmdPhaseErr
*$event_pairs_catch
*               state_12
*******************************************************
*state_12       mcall
*               AbortPath
*$event_pairs_catch
*               BusFree,state_13
*               BusBusy,state_13
*               state_14
*******************************************************
*state_13       standard
*               COMMANDS_cmdTerminateSession
*$event_pairs_catch
*               state_exit
*******************************************************
*state_14       standard
*               HWI_UTILS_hwiHardReset
*               COMMANDS_cmdUnlinkAllSessions
*$event_pairs_catch
*               state_exit
*******************************************************
*state_exit     mexit
*               0
*******************************************************
*$end_machine
