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

$ #ident  "@(#)ibhcatest.msg  1.2  05/01/24  SMI"

$ ibhcatest 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
$ VER_MSG 
1000	%s\n
1001	"Start Tavor Internal Loopback."
1002	"Test params: dev=%s, data=0x%x, loop=%d, cq=%d"
1003	"Start Tavor DDR Test: Start Addr 0x%x, Offset 0x%x."
1004	"Tavor DDR %s read"
1005	"%s test passed"
1006	"%s test failed"
1007	"%s test incomplete"
1008	"\tfirmware rev:\t%x_%x_%x (ma _min_sub)"
1009	"\thardware rev:\t\t%x"
1010	"\tflash size:\t\t%x"
1011	"\tDDR Start offset:\t%x"
1012	"\tDDR End offset:\t%x"
1013	"device[%d] = %s"
1014	"chk_tavor_confd: inst %d, configd %d, ppa %d %d"
1015	"port %d: guid=0x%x, state=0x%x"
1016	"loopback ioctl time = %d"
1017	"pass count %d completed out of %d"

$ INFO messages
$ ROUT1_MSG
2000	%s\n
2001	ibhcatest command arguments:\n\
\n\
lb=Enabled|Disabled:   turn off/off the loopback test\n\
tlbport=<1+2>:         Loopback test on Port 1 and/or 2, default is 1+2\n\
data=<Pattern>:        Specific data pattern (default patterns 0xa5a5a5a5)\n\
cq=<Time>:             Number of CQ polling time value (in microseconds per\n\
                       iteration), default: 55000; max: 1000000.\n\
loop=<Number>:         Number of loopback iteration for each pass\n\
                       default: 200; max: 1000.\n\
ddr=Enabled|Disabled:  Turn off/off the DDR Memory test\n\
rdoffset=<Offset>:     Starting offset of DDR Memory read, default is 0x0\n\
                       in hexadecimal.\n\
rdsz=<Size>:           Read number of byte of DDR Memory from Offset to Max\n\
                       address location, default: 0x2000; max: 256MB,\n\
                       in hexadecimal.\n\
warn=Enabled|Disabled: When enabled, prints a warning message.\n\
list:                  When set, prints device list, no testing.\n\n


2003	"Device %d  is plumbed up."
2004	"%d:\toffset 0x%0.7x  data=0x%0.8x"
$ LB_IOCTL_INFO
2005	"Ioctl Parameters: revision=%d, send_buf=%p, fail_buf=%p, \
	buf_sz=%d, num_itr=%d, cq_wait=%d, port=%d"

$ CONSOLE messages
$ ROUTINE_MESG
3000	"DVD test specific options:\n\
	 	dev = devicename\n\
		read = read access (random|sequential)\n\
		data = percentage of data to be read\n"

$ WARNING messages
$ WARN_STR
4000	%s\n
$ WARN_RCVFAIL
4001	"Mismatch encountered during loopback: port %d, pass count %d, completed out of %d,  %s failed" \
Probable_Cause(s):  System resource is unavailable \
Recommended_Action(s): <1. Check syslog has no port link up/down message. \
2. Reduce Max instance number. 3. Decrease ibhcatest number of iteration.  Retry after sometime>


$ ERROR messages
$ ER_EFAULT
6000	"%s"
$ ER_RCVFAIL
6001	"Error encountered during loopback: port %d, pass count %d, completed out of %d,  %s failed" \
Probable_Cause(s):  System resource is unavailable \
Recommended_Action(s): <1. Check syslog has no port link up/down message. \
2. Reduce Max instance number. 3. Decrease ibhcatest number of iteration.  Retry after sometime>

$ READ_FAIL
6002	"Fail to get tavor info errno=%d: %s" 
$ ER_DDR_READ_F
6003	"DDR read failed: offset=%d errno=%d"
$ ER_PORT_INFO
6004	"Failed to get port info, errno=%d"
$ ER_PORT_INV
6005	"Invalid number of ports, errno=%d"
$ ER_LB_ERRMSG
6006	"Error encountered during loopback test: %s"
$ ER_LB_ITER
6007	"Total pass count: %d completed out of %d"





$ FATAL messages
$ OPEN_FAIL
10001	"Fail to open device %s" Probable_Cause(s): <%s>
10002 "ERROR: %s(ibhcatest) is configured in the system."
10003 "ibhcatest probe: Bad ioctl IOCGLIFNUM for  %s."
10004 "ibhcatest probe: Bad ioctl SIOCGIFCONF for getting network configuration %s ."
10006 "ibhcatest probe: Bad ioctl SIOCGIFFLAGS for getting device flags %s."
10008 "ibhcatest probe: Cannot open a socket %s."


$ FATAL		8000 - 9999 
$ ER_OPEN
8000	"Fail open %s: errno=%d: %s" 
$ ER_IOCTL
8001	"ioctl Failed: %s" 
$ ER_MEM
8002	"Fail to allocate %d bytes of memory"
$ ER_CALLOC
8006	"Fail to calloc"
8007	"need to specify a device"
8008	"bad option: %s"
8009	"bad option: %d"
8010	"bad option: %d %s"
$ ER_DEVICE
8011	"Device Tavor not found"
$ ER_IOCTL2
8012	"%s ioctl Failed: %s" 


