head     56.3;
access   paws bayes jws quist dew jwh;
symbols  ;
locks    ; strict;
comment  @# @;


56.3
date     93.01.27.13.54.43;  author jwh;  state Exp;
branches ;
next     56.2;

56.2
date     93.01.27.12.26.41;  author jwh;  state Exp;
branches ;
next     56.1;

56.1
date     91.11.05.10.02.35;  author jwh;  state Exp;
branches ;
next     55.1;

55.1
date     91.08.25.10.37.24;  author jwh;  state Exp;
branches ;
next     54.1;

54.1
date     91.03.18.15.37.58;  author jwh;  state Exp;
branches ;
next     53.1;

53.1
date     91.03.11.19.36.14;  author jwh;  state Exp;
branches ;
next     52.1;

52.1
date     91.02.19.09.22.22;  author jwh;  state Exp;
branches ;
next     51.1;

51.1
date     91.01.30.16.20.59;  author jwh;  state Exp;
branches ;
next     50.1;

50.1
date     90.10.29.16.34.50;  author jwh;  state Exp;
branches ;
next     49.1;

49.1
date     90.08.14.14.18.28;  author jwh;  state Exp;
branches ;
next     48.1;

48.1
date     90.07.26.11.25.04;  author jwh;  state Exp;
branches ;
next     47.1;

47.1
date     90.05.14.11.11.44;  author dew;  state Exp;
branches ;
next     46.1;

46.1
date     90.05.07.08.58.55;  author jwh;  state Exp;
branches ;
next     45.1;

45.1
date     90.04.19.16.06.41;  author jwh;  state Exp;
branches ;
next     44.1;

44.1
date     90.04.01.22.27.31;  author jwh;  state Exp;
branches ;
next     43.1;

43.1
date     90.03.20.14.17.19;  author jwh;  state Exp;
branches ;
next     42.4;

42.4
date     90.03.14.11.01.20;  author dew;  state Exp;
branches ;
next     42.3;

42.3
date     90.03.13.15.51.58;  author dew;  state Exp;
branches ;
next     42.2;

42.2
date     90.03.08.14.02.52;  author dew;  state Exp;
branches ;
next     42.1;

42.1
date     90.01.23.18.00.41;  author jwh;  state Exp;
branches ;
next     41.2;

41.2
date     90.01.18.23.05.24;  author dew;  state Exp;
branches ;
next     41.1;

41.1
date     89.12.22.11.42.19;  author jwh;  state Exp;
branches ;
next     40.2;

40.2
date     89.10.24.13.28.11;  author dew;  state Exp;
branches ;
next     40.1;

40.1
date     89.09.29.12.03.23;  author jwh;  state Exp;
branches ;
next     39.1;

39.1
date     89.09.26.16.48.24;  author dew;  state Exp;
branches ;
next     1.2;

1.2
date     89.09.15.10.09.33;  author dew;  state Exp;
branches ;
next     1.1;

1.1
date     89.09.14.10.29.21;  author dew;  state Exp;
branches ;
next     ;


desc
@State Machine Tables.
@


56.3
log
@
pws2rcs automatic delta on Wed Jan 27 13:14:25 MST 1993
@
text
@ 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
*******************************************************
@


56.2
log
@
pws2rcs automatic delta on Wed Jan 27 11:57:27 MST 1993
@
text
@d1 102
@


56.1
log
@Automatic bump of revision number for PWS version 3.25
@
text
@a0 102
 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
*******************************************************
@


55.1
log
@Automatic bump of revision number for PWS version 3.25A
@
text
@@


54.1
log
@Automatic bump of revision number for PWS version 3.24
@
text
@@


53.1
log
@Automatic bump of revision number for PWS version 3.24B
@
text
@@


52.1
log
@Automatic bump of revision number for PWS version 3.24A
@
text
@@


51.1
log
@Automatic bump of revision number for PWS version 3.24d
@
text
@@


50.1
log
@Automatic bump of revision number for PWS version 3.23c
@
text
@@


49.1
log
@Automatic bump of revision number for PWS version 3.24b
@
text
@@


48.1
log
@Automatic bump of revision number for PWS version 3.24a
@
text
@@


47.1
log
@Automatic bump of revision number for PWS version 3.23
@
text
@@


46.1
log
@Automatic bump of revision number for PWS version 3.23
@
text
@@


45.1
log
@Automatic bump of revision number for PWS version 3.23C
@
text
@@


44.1
log
@Automatic bump of revision number for PWS version 3.23B
@
text
@@


43.1
log
@Automatic bump of revision number for PWS version 3.23aA
@
text
@@


42.4
log
@Fix for optical disc problem with disconnect.  On reselect, the optical disc
was not setting the bus to a proper state very fast.  In fact, after the reselect,
the driver would check the bus phase and determine that it was not correct and
we would get a ScsiPhaseErr.  The fix? Update MsgWaitReselect to wait for a
message in phase before giving up control.  It used to be that any bus phase
after reselect was accepted, but this is no longer the case.  After reviewing the
ANSI spec and the fujitsu spec, it has become apparent that the device MUST
re-establish the path through an identify message.
@
text
@@


42.3
log
@Took out the WaitTimeOrFree call that follows msgSetDisc.
Added ScsiErr as a possible result code for SetDisc.
@
text
@a70 1
*               HWI_UTILS_hwiGetPhase
d75 1
a75 1
*               state_10
@


42.2
log
@Took out the call to msgResetXfer as it is not needed.
@
text
@d8 1
a56 1
*               MESSAGES_msgWaitTimeOrFree
@


42.1
log
@Automatic bump of revision number for PWS version 3.23e
@
text
@a26 1
*               ScsiErr,state_exit
a57 1
*               WaitForISR,state_7a
a60 3
*state_7a       suspend
*               state_7
*******************************************************
d84 1
a84 1
*               OriginalPhase,state_11
a85 5
*******************************************************
*state_11       standard
*               MESSAGES_msgResetXfer
*$event_pairs_catch
*               state_2
@


41.2
log
@After a reselect, treat an Identify message the same
as a restore pointers message.
@
text
@@


41.1
log
@Automatic bump of revision number for PWS version 3.23d
@
text
@d34 1
@


40.2
log
@Updated the DOTRANSFER state tables to allow resynchronization after a data
transfer.  It is legal, though seldom used, to resynchronize after command
phase, but before data phase.
@
text
@@


40.1
log
@Automatic bump of revision number for PWS version 3.23c
@
text
@d36 1
d95 7
@


39.1
log
@Automatic bump of revision number for PWS version 3.23b
@
text
@@


1.2
log
@Minor update to work with turn system
@
text
@@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
 INCLUDE ST_EQU.
@
