$  Copyright(c) 1998 Sun Microsystems, Inc.
$  All rights reserved.

$  #ident  "@(#)sptest.msg  1.32  01/12/18  SMI"


$ VERBOSE
1	"Msg received: Type %d %s"
2	"Device '%s' tested OK."
3	"*** Starting syncloop test on %s"
4	"Writing %d byte(s) to asynchronous port %s at %d baud."
5	"Trying %d byte to asynchronous port %s at %d baud."
6	"dlokack:  ctl.len > sizeof (dl_ok_ack_t):  %d"
7	"dlerrorack:  ctl.len > sizeof (dl_error_ack_t):  %d"
8	"%s:  MORECTL|MOREDATA"
9	"%s:  MORECTL"
10	"%s:  MOREDATA"
11	"getmsg:  control portion length < sizeof (long):  %d"
13	"speed=%d, loopback=%s, nrzi=%s, txc=%s, rxc=%s"
14	"Test using modem and not loopback set"
15	"Test using external data loop, internal clocking"
16	"[ %s: Trying first packet ]"
17	"poll: nothing to read"
18	"[ %s: Trying many packets ]"
19	"%s: %d"
20	"%s: Error or timeout detected%s, Retrying %d of %d"
21	"Unused message index"
22	"port %s locked up!"
23	"%s: %d packets sent, %d received"
24	"%s: CRC errors  Aborts  Overruns  Underruns        In <-Drops-> Out"
25	"%s: %9d  %7d  %8d  %9d  %8d  %12d"
26	"%s: Estimated line speed = %d bps"
27	"[ %s%d: checking for quiet line ]"
28	"packet received with none sent!"
29	"speed=%d, loopback=%s, echo=%s, nrzi=%s, txc=%s, rxc=%s"
30	 "[ Using %s ]"
31	"Internal Test (internal data loop, internal clocking)"
32	"Test using loopback plug (external data loop, internal clocking)"
33	 "\nTest using local or remote modem loopback (external data loop, external clocking)"
34	"Unused message index"
36	"device %s in normal state"
37	"[ src port %s ]"
38	"[ rcv port %s ]"
39	"Using internal Loopback path"


$ INFO ROUTINE_MSG
2000	%s specific arguments:\n\
	dev = <text>	Device name (example: zs0, zs2, se0)\n\
	                Specifies device instance. T option overrides this. \n\
	porta = <text>	Name of 1st device in device pair (a, c)\n\
			This option overrides T option as single port. \n\
        T = <text>	Test type (%c, %c, %c_%c, %c_%c_concurrent,\n\
			%c_to_%c, %c_to_%c_concurrent)\n\
			To test connection /dev/term/c to /dev/term/f\n\
			specify T=c_to_f ; To test c and e one after\n\
			another use T=c_e ; \n\
        M = <text>	Test mode (async, sync, or both)\n\
        L = <text>	Loop-back type, (I=Internal, P=Plug_%c_to_%c__%c_to_%c,\n\
			M=Modem_%c_to_%c, N=No_modem_%c_to_%c)\n\
			Specifying first letter is sufficient. \n\
			e.g. L=P is same as L=Plug_a_to_b. \n\
			(T option specifies src, dest ports not L)\n\
	D = <text>	Data type, default=sequential (a=alphanumeric,\n\
			r=random, s=sequential, 0xXX)\n\
	AB = <number>	Async baud rate, default=9600 (50, ..., 460800,\n\
			a=all_supported, r=random_selection).  The\n\
			random_selection option picks 4 supported baud\n\
			rates for the particular platform under test.\n\
			(50, ..., 460800, a=all_supported, r=random_selection)\n

$ ROUTINE_MSG2 =
2001	\
	BS = <number>	Async number of bytes in each write operation,\n\
			default=100 (1, 10, 100, 1000, 3000, 5000,\n\
			10000, default)\n\
	S = <number>	Async data size. Total number of bytes to write,\n\
			default=100 for baudrates below 1200,\n\
			default=400 for baudrates between 1200 and 4800,\n\
			default=3000 for baudrates greater than 4800.\n\
			(100, 1000, 3000, 5000, 10000, default)\n\
	PAR = <text>	Async parity, default=none (none, even, odd)\n\
	F = <text>	Async flow control, default depends on loopback type.\n\
			If external loopbacks are selected then\n\
			default=hardware (hardware flow control).  If\n\
			internal loopbacks are selected then default=none.\n\
			(n=none, h=hardware, s=software, d=default)\n\
	B = <number>	Sync baud rate, default=9600 (50, ..., 230400)\n\
	DP = <number>	Sync mode dropped packet tolerance, default=20%\n\
			(0%, ..., 99%)\n\
	P = <number>	Sync Poll wait = additional wait time in seconds\n\
			for synchronous read/write ports to become ready\n\
			(0 - 300)\n

$ ROUTINE_MSG_DBG =
2002	\
	DU = <text>	Dump incorrect async data (enable, disable)\n\
	ST = <number>	Async number of stop bits, default=2 (1, 2)\n\
	CS = <number>	Async character size, default=8 (5, 6, 7, 8)\n\
	NOTH		No multi-threading mode, default=disable.  When\n\
			this is set to enable, the test does not use\n\
			multi-threading\n\
	DEBUG		This allows testing any baudrate even if it is\n\
			not officially supported.  Other functions may\n\
			also be enabled, default=disable.\n\
	W		Show all warning messages, default=disable\n

2003	"%s must be between 0 and 0xff"


$ INFO  2004 move to 36
2007	"Option ERROR: '%s=' must be followed by a valid number"\n
2008	"Option ERROR: '%s=' must be followed by a valid text string"\n
2010	"Option ERROR: %c to %c cable is not allowed on this test type"\n
2011	"Option ERROR: %c to %c Test requires %c to %c cable"\n
2012	"Option ERROR: '%s' is an invalid number of stop bits"\n
2013	"Option ERROR: Cannot enable flow control with internal loopbacks"\n
2014	"Option ERROR: %s=%d, argument out of range.  Must be between %d - %d"\n
2015	"Option ERROR: Cannot enable software flow control with %c_to_%c \
or %c_to_%c loopbacks"\n
2016	"Option ERROR: '%s' is an invalid option"\n
2020 Idle: <%s>
2021 Busy: <%s>
2022 Error: <%s>
2025 %s: Could not open, %s
2026 %s: Idle, current baud = %d, maximum baud = %d
2027 %s: Idle, maximum speed (internal) = %d
2028 %s: failed ioctl %s, error = %s
2029 %s: poll() failed, error = %s
2030 %s: poll() error, \
(revents & (POLLERR | POLLHUP | POLLNVAL)) = 0x%x
2031 USAGE ERROR: porta option supports only devices [a-z] in /dev/term\n
2032 USAGE ERROR: The two ports specified by T= option are of \n\
 different drivers type. This is currently not supported. \n
2033 INFO: porta option overrides the T option. T option ignored.\n
2034 INFO: porta option overrides dev option. dev option ignored.\n
2035 INFO: T option specifies ports inconsistent with the dev option.\n\
 dev option is ignored.\n
2036 ERROR: Invalid device /dev/term/%c specified in option.\n
  The device does not exist or not a se or zs driver device.\n
2037 INFO: Ignoring invalid dev option passed: %s\n
2038 INFO: Ignoring dev option passed as it is inconsistent with \n\
 other options specified to select ports.\n

$ WARNING
4000	"Could not open data dump file %s"
4001	"improper permissions for request"
4002	"DLSAP address in improper format or invalid"
4003	"sequence number not from outstanding DL_CONN_IND"
4004	"user data exceeded provider limit"
4005	"specified PPA was invalid"
4006	"primitive received is not known by DLS provider"
4007	"QOS parameters contained invalid values"
4008	"QOS structure type is unknown or unsupported"
4009	"bad LSAP selector"
4010	"token used not associated with an active stream"
4011	"attempted second bind with dl_max_conind or dl_conn_mgmt > 0 on same DLSAP or PPA"
4012	"physical link initialization failed"
4013	"provider couldn't allocate alternate address"
4014	"physical link not initialized"
4015	"primitive issued in improper state"
4016	"UNIX system error occurred"
4017	"requested service not supplied by provider"
4018	"previous data unit could not be delivered"
4019	"primitive is known but not supported by DLS provider"
4020	"unknown dlerrno %d"
4022	"sysinfo() failed (%s), could not determine machine type. Setting \
max baud to %d"
4023	%s: synchronous device statistics detected packet error: ipack=%d, \
opack=%d, ichar=%d, ochar=%d, abort=%d, crc=%d, cts=%d, dcd=%d, overrun=%d, \
underrun=%d, ierror=%d, oerror=%d, nobuffers=%d"
4024	"Baud rate = %d.  For baud rates greater then 153.6Kb the serial \
line drivers must be jumpered (on the motherboard) for RS423 mode and \
not RS232 mode.  If data errors are detected, then verify the jumper \
settings before examining other causes"
4025	"%s: Could not execute command ttymuxadm, %s"
4026	"sysinfo() failed (%s), could not determine machine type."


$ ERROR
6003	"data miscompare, cnt = %d, exp = 0x%x, obs = 0x%x, \
receive device = %s, source device = %s, baud rate = %d" \
Probable_Cause(s): <system load too heavy for selected baud rate> \
<loopback connection defective> \
<bad serial port hardware> <system software error> Recommended_Actions: \
<reduce system load> <lower baud rate> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6004	"Unused message index"
6005	"Unused message index"
6006	"Unused message index"
6007	"Unused message index"
6008	"Unused message index"
6009	"Unused message index"
6010	"Unused message index"
6011	"%s: packet read failed, error = %s, speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6012	"%s: packet write failed, error = %s, speed = %d" \
Probable_Cause(s): <system load too heavy> <bad serial port hardware> \
<system software error> Recommended_Actions: <reduce system load> \
<if the problem persists, contact authorized Sun service provider>
6013	"Device '%s' not responding.  No data detected \
after %d seconds.  Received %d bytes out of %d sent.  Baud rate = %d." \
Probable_Cause(s): <system load too heavy for selected baud rate> \
<loopback connection missing or defective> <bad serial port hardware> \
<system software error> \
Recommended_Actions: <reduce system load> <lower baud rate> \
<check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6014	"%s:  expected %s got %s.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6015	"Incomplete write on Port %s, len %d should be %d, speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6016	"Incomplete read on Port %s, len %d should be %d, speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6018	"%s: port never became ready for writing (timeout = %d seconds), \
speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6020	"packet data miscompare, cnt = %d exp = 0x%x, obs = 0x%x, \
device = %s, speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection defective> \
<bad serial port hardware> <system software error> Recommended_Actions: \
<reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6021	"%s: port not ready for reading after %d seconds, no data available, \
speed = %d" \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6022	"%s: port not ready for writing after %d seconds, wrote \
%d bytes out of %d.  Baud rate = %d." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
6023	"Port %c is not available.  Check port usage with /sbin/ttymuxadm.  \
Probable_Cause: <the port is being used by the tty mux or other devices>"
6024	"Port %c is not available.  Check port usage with /sbin/ttymuxadm.  \
Probable_Cause: <the port is being used by the tty mux or other devices>"


$ FATAL
8001	"Test Type %c_to_%c is not allowed on Quick test"
8002	"%s: open() failed, error = %s"
8003	"Invalid Data Type: I=%s"
8004	"%s: poll() error, \
(revents & (POLLERR | POLLHUP | POLLNVAL)) = 0x%x"
8005	"Siemens serial device (se) does not support synchronous \
internal loopback test."
8006	"Invalid port parameter: %s"
8007	"Invalid device name '%s', \
must specify either zs<X> or se<X>, where X is the first instance \
number of a device pair (ex., zs0)"
8008	"Concurrent testing is not valid in no thread mode (NOTH=enable)"
8009	"Failed ioctl %s, device = %s, error = %s"
8010	"%s: Not able to push Tty compatibility STREAMS module."
8011	"Invalid Test Type: T=%s"
8012	"Invalid Mode: M=%s"
8013	"%s device does not exist"
8014	"Invalid baud_rate: %d"
8015	"write() to %s failed: %s, baud rate = %d"
8016	"read() to %s failed: %s, baud rate = %d"
8017	"Invalid size, requested = %d bytes, min = %d, max %d"
8018	"Could not open %s after waiting %d seconds" \
Probable_Cause(s): <another process is using the port> \
<port is hung> <bad serial port hardware> <system software error> \
Recommended_Actions: <stop other process using port> \
<if the problem persists, contact authorized Sun service provider>
8021	"%s: No valid packets returned after %d attempts, last error = %s, \
wrote %d packets, read %d packets, device accounting shows %d packets sent \
and %d packets received" \
Probable_Cause(s): <system load too heavy> <timeout too short> \
<loopback connection missing or defective> <bad serial port hardware> \
<system software error> Recommended_Actions: <reduce system load> \
<Increase Sync_Poll_Count from pop menu> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8022	"printdlprim:  unsupported primitive type 0x%x"
8023	"stringtoaddr:  invalid input string:  %s"
8024	"%s (%s)"
8025	"dlinfoack:  response ctl.len too short:  %d.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8026	"dlinfoack:  DL_INFO_ACK was not M_PCPROTO.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8027	"dlokack:  response ctl.len too short:  %d.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8028	"dlokack:  DL_OK_ACK was not M_PCPROTO.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8029	"dlerrorack:  response ctl.len too short:  %d.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8030	"dlerrorack:  DL_OK_ACK was not M_PCPROTO.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8031	"dlbindack:  response ctl.len too short:  %d.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8032	"dlbindack:  DL_OK_ACK was not M_PCPROTO.  Synchronous Port could \
not be initialized." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8033	"sigalrm:  TIMEOUT during synchronous Port initialization." \
Probable_Cause(s): <system load too heavy> <loopback connection missing or \
defective> <bad serial port hardware> <system software error> \
Recommended_Actions: <reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider>
8037	"invalid packet length: %d"
8038	"%s: poll() failed, error = %s" \
Probable_Cause(s): <system load too heavy> <bad serial port hardware> \
<system software error> Recommended_Actions: <reduce system load> \
<if the problem persists, contact authorized Sun service provider>
8039	"Failed I_STR ioctl, cmd = %s, device = %s, error = %s"
8040	"%s: No packets sent, last error = %s, wrote %d packets, \
read %d packets, device accounting shows %d packets sent and %d packets \
received" \
Probable_Cause(s): <no transmit clock present> \
<loopback connection missing or defective> <system load too heavy> \
<timeout too short> <bad serial port hardware> <system software error> \
Recommended_Actions: <check loopback connection> <reduce system load> \
<Increase Sync_Poll_Count from pop menu> \
<if the problem persists, contact authorized Sun service provider>
8041	"Sporatic packets detected on %s.  The port must be quiescent \
before running test" \
Probable_Cause(s): <another process is generating activity on the port> \
<bad serial port hardware> <system software error> \
Recommended_Actions: <stop other process using port> \
<if the problem persists, contact authorized Sun service provider>
8042	"syncinit: %s missing minor device number"
8046	"Test requires local or remote modem loopback (external data loop, external clocking)"
8047	"%s loopback type not allowed on connectivity mode"
8048	"%s loopback type not allowed on online mode"
8049	"Invalid baud rate for device %s, select between %d and %d"
8050	"%s internal loopback test not allowed on %s device"
8051	"Thread creation failed, %s."
8054	"%s: At least %d packets dropped (tolerance = %d), last \
error = %s.  Wrote %d packets, read %d packets.  Device statistics \
shows %d packets sent and %d packets received.  %d packets dropped in \
outbound queueing, %d packets dropped in inbound queueing." \
Probable_Cause(s): <system load too heavy> <loopback connection defective> \
<bad serial port hardware> <system software error> Recommended_Actions: \
<reduce system load> <increase drop tolerance option> \
<check loopback connection> \
<if the problem persists, contact authorized Sun service provider.>
8055	"%s: %d bad packets received, last error = %s, wrote %d packets, \
read %d packets, device accounting shows %d packets sent and %d \
packets received" \
Probable_Cause(s): <system load too heavy> <loopback connection defective> \
<bad serial port hardware> <system software error> Recommended_Actions: \
<reduce system load> <check loopback connection> \
<if the problem persists, contact authorized Sun service provider.>

$ PROBE
10001	"WARNING: Could not get platform type, sysinfo(SI_PLATFORM) failed (%s)\n"
10002	"WARNING: Unmatched 'se' serial port device %s/%c, probe failed for this device\n"
10003	"WARNING: Could not execute command ttymuxadm, system() failed (%s)\n"
10004	"WARNING: Could not open directory %s"
10005	"ERROR: Could not execute command ttymuxadm, system() failed(%s)"
10006	"ERROR: Invalid sync baud rate (%d) for device, max=%d"
10007	"ERROR: Invalid async baud rate (%d) for device, max=%d"
10008	"ERROR: This system does not support synchronous port"
10009	"ERROR: This system does not support second synchronous port -- not term/b"
10010	"ERROR: Invalid option setting, port %c is not available. Check port usage with /sbin/ttymuxadm."
10011	"ERROR: Invalid option setting, port %c is not available. Check port usage with /sbin/ttymuxadm."
10012	"ERROR: Invalid option setting, %c to %c loopback is not allowed with this test type"
10013	"ERROR: The asynchronous device on this system does not support internal loopbacks"
10014	"ERROR: The synchronous device on this system does not support internal loopbacks"
10015	"ERROR: Flow control is invalid for internal loopbacks"
10016	"ERROR: Software flow control is invalid for %c_to_%c or %c_to_%c loopbacks"
10017	"ERROR: The asynchronous device on this system does not support internal loopbacks"
10018	"ERROR: The synchronous device on this system does not support internal loopbacks"
10019	"ERROR: Invalid option setting, sync %c to %c Test requires external sync %c to %c loopback"
10020	"ERROR: %c_to_%c is not supported in online mode"
10021	"ERROR: %c_to_%c is not supported in connectivity mode"
10022	"ERROR: Only Test type <a> allowed for this device. "
