$ #ident  "@(#)socaltest.msg  1.8  00/08/28  SMI."

$ socaltest messages
$ VERBOSE          1 - 1999
$ INFO          2000 - 3999 (also used for LOGFILE and CONSOLE messages)
$ WARNING       4000 - 5999
$ ERROR         6000 - 7999
$ FATAL         8000 - 9999

$ ----------------------------------------------
$ VERBOSE messages
$ ----------------------------------------------

$ SOCALT_GEN_TESTSTART
1000	"Begin socaltest on %s"

$ SOCALT_PASS_INTLOOP
1001	"SOC+ host adapter internal loopback test successful"

$ SOCALT_PASS_HOSTLOOP
1002	"{SOC+ host adapter}--{host} loopback test successful"

$ SOCALT_PASS_EXTLOOP
1003	"External loopback test successful"

$ SOCALT_GEN_TESTDONE
1004	"socaltest on %s done"
 
$ SOCALT_FAIL_ILB
1005	"SOC+ host adapter internal loopback test failed"

$ SOCALT_PASS_HCB
1006	"Host control buffer test passes"

$ SOCALT_START_LBF
1007	"Starting Loop Back Frame test. Pattern: %x"

$ SOCALT_PASS_LBF
1008	"Loop Back Frame Test passed.  Pattern: %x"

$ SOCALT_ROUTINE_USAGE
1009	Test Specific options:\n\
    dev=<device_name>    : The name of the socal port to be tested.\n\
    elb=<enable|disable> : Enables or disables the External Loopback test.\n\
    ilb=<enable|disable> : Enables or disables the Internal Loopback test.\n\
    lbf=<enable|disable> : Enables or disables the Loopback Frame test.\n\
    ptn=<pattern>        : Specify the pattern in hex, e.g. ptn=0x7e7e7e7e\n\n

$ ----------------------------------------------
$ ERROR messages
$ ----------------------------------------------

$ ----------------------------------------------
$ FATAL messages
$ ----------------------------------------------

$ SOCALT_ERR_OPEN
8000	"Couldn't open %s. Probable_Cause(s): <%s> <SOC+ card not installed>\
Recommended_Action(s): <Verify that target SOC+ card is installed properly>

$ SOCALT_ERR_HOSTLOOP
8002	"{SOC+ host adapter}--{host memory} loopback test failed!\
Probable_Cause(s): <Fault in DMA between host and SOC+ host adapter>\
Recommended_Action(s): <Contact your authorized service provider>

$ SOCALT_ERR_EXTLOOP
8006	"SOC+ host adapter external loopback test failed! Probable_Cause(s): \
<Loopback cable not connected> <OEC module faulty or not installed properly>\
Recommended_Action(s): <Connect loopback cable> <Replace OEC module and retry>\
<Call your authorized service representative>

$ SOCALT_ERR_INTLOOP (ilbtest failed)
8009	"SOC+ host adapter internal loopback test failed! Probable_Cause(s): \
<SOC+ host adapter faulty or not properly installed>\
Recommended_Action(s): <Verify that SOC+ host adapter is installed properly>\
<Replace host adapter and retry> <Call your authorized service representative>

$ SOCALT_ERR_FAILIOCTL
8010	"Failed ioctl %s" Probable_Cause(s): <%s>

$ SOCALT_ERR_HCBFAIL
8011	"Host control buffer test failed" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALT_ERR_DIAGFAIL
8012	"SOC+ selftest fails" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALT_ERR_XRAMFAIL
8013	"XRAM test fails" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALTEST_ERR_STATFAIL
8014	"Failed to stat %s" Probable_Cause(s): <Incorrect device name>

$ SOCALT_ERR_LBFMISCOMPARE
8015	"Loop Back Frame test failed.  Mismatch in looped back frame.\
Expected: %x; Observed: %x"

$ PROBE Messages

$ ERR_LINK_EXISTS
10000	"Link %s exists!Please remove this link and retry\n"

$ ERR_LINK_STATFAIL
10001	""Could not get info on %s; will not proceed further. \
 Please retry later\n"

$ ERR_OPEN_FAIL
10002	"Failed to open %s(%s)\n"

$ ERR_DEVICE_OPEN_FAIL
10003	"Couldn't open %s.  Probable_Cause: Stale device node\n"

$ ERR_WRITE_FAIL
10004	"couldn't write to %s!(%s)\n"	

$ ERR_TMPFILE
10005	"ERROR:Required temp file %s missing!  Please Reprobe and retry"

$ ERR_STATE_INCOMP
10006	"ERROR: Incomplete or incorrect state data detected.  Please Reprobe and retry"

$ ERR_TEST_NOTALLOW
10007	"ERROR:Testing on this port not allowed. Reason:Connected to an online loop"

$ ERR_LOOPBACK_RUN
10008	"ERROR: Loopback Frame Test cannot be run. Reason:Loop not online" 

$ ERR_LOOPBACK_ONLY
10009	"ERROR: Only Loopback Frame Test allowed. Reason:Connected to an online loop"
