$ Copyright 2004 Sun Microsystems, Inc. All rights reserved.
$ Use is subject to license terms.

$ #ident "@(#)pptest.msg   1.1     04/08/03 SMI"

$ * VERBOSE 1
$ * INFO 2000
$ * WARNING 4000
$ * ERROR 6000
$ * FATAL 8000


$ --------------------------------------------------
$ VERBOSE
$ --------------------------------------------------

1	"Options: %s"
2	"Begin %s test on %s."
3	"End %s test on %s."

20	"Starting TFIFO Loopback Test."
21	"Finished TFIFO Loopback Test."
22	"Starting Printer Test."
23	"Finished Printer Test (check for printed data pattern after transmit delay)."
24	"Starting Passive External Loopback test."
25	"Finished Passive External Loopback test."

100	"Start DMA memory test."
101	"Finished DMA memory test."
102	"Closing %s."
103	"Error in closing %s." Probable_Cause(s): <%s>
104	"Opened %s; file descriptor = %d."
105	"Initializing text data."
106	"Starting writing to %s."
107	"RANDOM: Wrote %d bytes to %s."
108	"FIXED: Wrote %d bytes to %s."
109	"Process %d is terminated." Probable_Cause(s): <%s>
110	"Process %d is being terminated."

$ --------------------------------------------------
$ INFO
$ --------------------------------------------------

2000	%s specific arguments:\n\
	dev=<device name>      (ex. dev=ecpp0) \n\
	ext_loop=Enable|Disable (external loopback test - requires\n\
				 passive loopback plug)\n\
	printer=Enable|Disable (printer test - requires printer)\n\
	data=ascii,postscript (printer data type)\n\
	delay=<number> (number of seconds to delay after printing)\n\
	dloop=Enable|Disable    (internal loopback testing during printer\n\
				 delay)\n\
	mode=frequency of printing(Allowed only for SBus Parallel port)\n

2001	"%s= must be followed by a valid text string."\n
2002	"%s must be followed by a number."\n
2003	"ECPPIOC_GETPARMS: write_timeout=%d, mode=0x%x"

2010	Busy: <%s: Could not open, error = %s>
2011	Error: <%s: Could not open, error = %s>
2012	Port mode = ECPP_CENTRONICS (non-IEEE 1284 compliant device mode - Centronics only)
2013 	Port Mode = ECPP_COMPAT_MODE(IEEE 1284 compliant device in Centronics mode)
2014 	Port Mode = ECPP_BYTE_MODE
2015	Port Mode = ECPP_NIBBLE_MODE(IEEE 1284 compliant device in nibble mode)
2016	Port Mode = ECPP_ECP_MODE(IEEE 1284 compliant device in ECP mode)
2017	Port Mode = ECPP_FAILURE_MODE(failure while attempting to detect device mode)
2018	Port Mode = ECPP_DIAG_MODE(ecpp port in diagnostics mode)
2019	Port Mode = ECPP_INIT_MODE(printer mode detection in progress)
2020	Port Mode = UNKNOWN MODE(0x%x)
2021	Idle: <%s: IEEE 1284 parallel port, %s>
2022	, Connector status = loopback connector or device attached, Pin Status = 0x%x(%s)
2023	, Connector status = device attached, Pin status = 0x%x(%s)
2024 	, Connector status = device not attached or offline, Pin status = 0x%x(%s)
2025 	, Connector status = unknown, Pin status = 0x%x(%s)

2100	Connected. <Connectivity test on %s passed.>


$ --------------------------------------------------
$ DEBUG
$ --------------------------------------------------

3000	"ECPPIOC_GETPARMS write_timeout=%d, mode=0x%x\n"
3001	"ECPPIOC_SETPORT: port=0x%x\n"
3002  	"ECPPIOC_GETPORT: port=0x%x, %s\n"
3003  	"%s: write(%d, 0x%x...0x%x, %d)\n"
3004  	"%s: ioctl %s, data = 0x%x\n"
3005  	"cmp_data: sbuf[%d]=0x%x,"
3007	"%s: write(%d, si=%d, ei=%d, size=0x%0x)"


$ --------------------------------------------------
$ WARNING
$ --------------------------------------------------

4000    "Printing test not performed!" Probable_Cause(s): <Printer not attached>

$ --------------------------------------------------
$ ERROR
$ --------------------------------------------------

6000	"Read compare failed, expected:0x%x, observed:0x%x." Probable_Cause(s):  <Suspect DMA circuitry or FIFO associated with bpp.> Recommended_Action(s): <Retry.  If the problem persists, contact your Sun Service representative.>

6001	"Error occured while accessing %s; \n Time out Error: %x; Bus Error: %x; Pin Status: %x" Probable_Cause(s): <%s>

6002    "The printer is not connected or is busy. Please check the printer and try again."

$ --------------------------------------------------
$ FATAL
$ --------------------------------------------------

8000	"External loop test and printer test cannot be enabled at the same time." Probable_Cause(s): <Operator error.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8001 	"Must select data type to send to printer" Probable_Cause(s): <Operatorerror.>

8003 	"mode option is available only for SBus Parallel port devices" Probable_Causes(s) : <Operator error.>

8004 	"%s: device busy." Probable_Cause(s): <Another process is using the device.> <Someone is printing with the device.> <Faulty parallel port device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Make sure no other process is using the device.> <Make sure no one is printing to the device.> <Examine system message files (/var/adm/messages) for other information.>

8005 	"Must be super user (root) to execute." Probable_Cause(s): <Operator error.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8006 	"Failed to open %s (%s)." Probable_Cause(s): <Faulty parallel port device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8007 	"Failed ioctl %s, device = %s, error = %s." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8008 	"%s: device does not exist or is otherwise inaccessible." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8009	"%s: Failed to allocate %d bytes of memory, error = %s." Probable_Cause(s): <System resources temporarily not available, try again.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8010 	"Options available for only 1284 Compatible parallel port
device" Probable_Causes(s) : <Operator error.>



8020 	"Device not in correct mode, device = %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8021	"Printer unplugged: device %s, expected mode = 0x%x, observed mode = 0 x%x." Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8022	"Unrecognized printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8023	"Paper out: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Printer out of paper.> <Faulty printer.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer.> <Examine system message files (/var/adm/messages) for other information.>"

8024	"Printer offline: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <No printer connected or printer offline.> <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>

8025	"Printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty printer or cable.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Check printer and cable.> <Examine system message files (/var/adm/messages) for other information.>"

8026	"ecpp device busy: device %s, expected mode = 0x%x, observed mode = 0x%x." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8027 	"%s: write() failed, device = %s, error = %s." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8028	"%s: write count is wrong, expected = %d, observed = %d." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8029	"%s: data miscompare, expected = 0x%x, observed = 0x%x, xor = 0x%x, off set = %d." Probable_Cause(s): <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8030	"mmap() failed on %s (%s)" Probable_Cause(s): <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8031	"Failed to open %s (%s)" Probable_Cause(s): <File not installed in current directory.> <User does not have read privileges.> <System software problem.>

8032	"fstat() failed on %s (%s)" Probable_Cause(s): <File not installed in current directory.> <User does not have read privileges.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8033	"%s: status line miscompare, expected = 0x%x, observed = 0x%x, xor = 0x%x." Probable_Cause(s): <Faulty or missing external loopback connector.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8034	"Could not set correct port type, expected = 0x%x (%s), observed = 0x%x , device = %s." Probable_Cause(s): <System software problem.> <Faulty ecpp device or motherboard hardware.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8035	"ECPP_nACK wrong state, expected = 0x%x, observed = 0x%x, xor = 0x%x." Probable_Cause(s): <Faulty or missing external loopback connector.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8036	"%s: data miscompare, expected = 0x%x, observed = 0x%x, xor = 0x%x." Probable_Cause(s): <Faulty or missing external loopback connector.> <Faulty ecpp device or motherboard hardware.> <System software problem.> Recommended_Action(s): <Examine system message files (/var/adm/messages) for other information.>

8100	"Encountered error while writing to %s;\n Requested bytes to write: %d; Bytes successfuly written: %d" Probable_Cause(s): <Device not configured correctly or does not exist.> <Too many print requests are queued up.> <Printer is out of paper.> Recommended_Action(s): <Ensure device exists and is configured correctly.> <Retry after sometime.> <If the problem persists, contact Sun Sevice representative.>

$ --------------------------------------------------
$ Probe
$ --------------------------------------------------

10001 	"WARNING: ecpp device (%s) exists but could not be opened, error = %s. \n"
10002 	"ERROR: External loop test and printer test cannot be enabled at the same time."
10003 	"ERROR: Must select data to send to printer."
10005	"ERROR: Only writeonly mode supported at this time.\n"
10006   "WARNING: The ecpp device is not connected or is busy. Please check the that the printer is connected and working properly. \n"
