$
$ Copyright © 2005 Sun Microsystems, Inc. All rights reserved.
$ Portions Copyright © 2004-2005 Emulex. All rights reserved.
$ Licensed to Sun Microsystems, Inc.
$ U.S. Government Rights - Commercial software. Government users are
$ subject to the Sun Microsystems, Inc. standard license agreement and
$ applicable provisions of the FAR and its supplements.
$ Use is subject to license terms. This distribution may include
$ materials developed by third parties.Sun, Sun Microsystems, the Sun
$ logo and Sun StorEdge are trademarks or registered trademarks of Sun
$ Microsystems, Inc. in the U.S. and other countries.
$
$ Copyright © 2005 Sun Microsystems, Inc. Tous droits réservés.
$ Portions Copyright  © 2004-2005 Emulex. Tous droits réservés.
$ Licencié à Sun Microsystems, Inc.
$ L'utilisation est soumise aux termes du contrat de licence.
$ Cette distribution peut comprendre des composants développés par des
$ tierces parties.
$

$ emlxtest messages
$ DEBUG            0
$ VERBOSE          1 - 1999
$ INFO          2000 - 3999 (also used for LOGFILE and CONSOLE messages)
$ WARNING       4000 - 5999
$ ERROR         6000 - 7999
$ FATAL         8000 - 9998
$ PROBE        10000 - 10999


$ --------------------------------------------------
$ DEBUG:	0
$ --------------------------------------------------

$ --------------------------------------------------
$ VERBOSE:	1-1999
$ --------------------------------------------------

$ EMLX_VERBOSE
1 "%s"

$ EMLX_USAGE
3 emlxtest [-o option=value]\n\n\
\tdev=<device name>         (no default)\n\
\tselftest=<Enable|Disable> (default=Enable)\n\
\tilb=<Enable|Disable>      (default=Enable) (Internal loopback\n\
\telb=<Enable|Disable>      (default=Disable)(External loopback)\n\
\tlbfcount=<1|10|1000|5000> (default=10)     (lbf iteration count)\n\
\tlbfpattern=<0x7e7e7e7e|0xaa55aa55|0xff00ff00|0xdb6db6db>\n\
\t     (default=0x7e7e7e7e)\n\
\n\n NOTE: Do not run other tests while running emlxtest\n\
       Must use the -x option from the command line\n

$ EMLX_OPTIONS_LIST
4 "emlxtest called: (%s)"

$ EMLX_SELFTEST_PASSED
5 "Selftest Passed."

$ EMLX_ILB_PASSED
6 "%d: Internal Loopback Test: pattern=0x%08x  Passed."

$ EMLX_ELB_PASSED
7 "%d: External Loopback Test: pattern=0x%08x  Passed."

$ EMLX_PROG_VERSION
8 "Program Version is %s"

$ EMLX_ASSIGN_DEVICE
9 "Testing emlxs%d device at %s."

$ EMLX_SELFTEST_RUNNING
10 "Running selftest."

$ EMLX_ILB_RUNNING
11 "Running internal loopback test."

$ EMLX_ELB_RUNNING
12 "Running external loopback test."


$ --------------------------------------------------
$ INFO:		2000 - 3999
$ --------------------------------------------------

$ EMLX_INFO
2000 "%s"

$ FC_SUCCESS
2001 "Operation successful."

$ FC_CAP_FOUND
2002 "Capability found."

$ FC_CAP_SETTABLE
2003 "Capability settable."


$ --------------------------------------------------
$ WARNING:	4000 - 5999
$ --------------------------------------------------

$ EMLX_WARNING
4000 "%s"


$ --------------------------------------------------
$ ERROR:	6000 - 7999
$ --------------------------------------------------

$ EMLX_ERR
6000 "%s"

$ EMLX_SELFTEST_FAILED
6001 "Selftest Failed."

$ EMLX_ILB_FAILED
6002 "%d: Internal Loopback Test: pattern=0x%08x  Failed."

$ EMLX_ELB_FAILED
6003 "%d: External Loopback Test: pattern=0x%08x  Failed."

$ EMLX_ELB_LINKDOWN
6004 "Unable to run External Loopback Test. Link is down." \
Probable_Cause(s): <No loopback plug is inserted in HBA port.> \
<No cable is inserted in HBA port.> <Bad cable.> <Bad switch port.> <Bad HBA.> \
Recommended_Actions: <Ensure loopback plug or cable is inserted and connection is good.> <If the problem persists, contact authorized Sun service provider.>

$ EMLX_UNABLE_TO_CLOSE
7000 "ERROR: Unable to close device (%s). %s"

$ EMLX_IOCTL_FAILED
7001 "ERROR: IOCTL failed to device (%s). (%x,%x) %s." \
Probable_Cause(s): <wrong/missing emlxs driver> <system software> \
Recommended_Actions: <Reload correct revision driver> \
<if the problem persists, contact authorized Sun service provider>

$ EMLX_BAD_ARGS
7002 "Error parsing command line options.  Check command line and re-enter."

$ EMLX_NO_ASSOCIATION
7003 "Cannot associate an Emulex device with %s."

$ EMLX_BAD_OPTION
7004 "Bad option passed to test: %s"

$ EMLX_NO_HBAAPI
7005 "Couldn't load HBA library, %d"\
Probable_Cause(s): <libHBAAPI.so not installed>\
Recommended_Action(s): <Ensure all HBA drivers are installed correctly>

$ EMLX_LINKUP_FAILED
7006 "Unable to determine link state."


$ --------------------------------------------------
$ FATAL:	8000 - 9999
$ --------------------------------------------------

$ EMLX_FATAL
8000 "%s"

$ EMLX_UNABLE_TO_OPEN
8001 "Unable to open device (%s). %s" \
Probable_Cause(s): <system software> \
Recommended_Actions: <Contact your system admin for assistance> \
<if the problem persists, contact authorized Sun service provider>

$ EMLX_BAD_DEVICE_NAME
8002 "Bad device name passed to test: %s" \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>

$ EMLX_BAD_LBF_ICNT
8003 "Iteration count too large (icnt <= 10000): %s." \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>

$ EMLX_DI_INIT_FAIL
8004 "The call to di_init failed."

$ FC_UNDEFINED
9000 "Undefined ERROR: (%s)."

$ FC_FAILURE
9001 "Operation failed."

$ FC_FAILURE_SILENT
9002 "Operation failed silently."

$ FC_CAP_ERROR
9003 "Capability error."

$ FC_UNBOUND
9004 "Port not bound."

$ FC_NOMEM
9005 "No memory."

$ FC_BADPACKET
9006 "Bad packet."

$ FC_OFFLINE
9007 "Port offline."

$ FC_OLDPORT
9008 "Old port state."

$ FC_NO_MAP
9009 "No map available."

$ FC_TRANSPORT_ERROR
9010 "Transport error."

$ FC_ELS_FREJECT
9011 "ELS rejected by fabric."

$ FC_ELS_PREJECT
9012 "ELS rejected by Nport."

$ FC_ELS_BAD
9013 "Bad ELS request."

$ FC_ELS_MALFORMED
9014 "Malformed ELS request."

$ FC_TOOMANY
9015 "Too many commands."

$ FC_UB_BADTOKEN
9016 "Bad Unsolicited buffer token."

$ FC_UB_ERROR
9017 "Unsolicited buffer error."

$ FC_UB_BUSY
9018 "Unsolicited buffer busy."

$ FC_BADULP
9019 "Bad ULP."

$ FC_BADTYPE
9020 "Bad type."

$ FC_UNCLAIMED
9021 "Not claimed."

$ FC_ULP_SAMEMODULE
9022 "Same ULP module."

$ FC_ULP_SAMETYPE
9023 "Same ULP type."

$ FC_ABORTED
9024 "Command aborted."

$ FC_ABORT_FAILED
9025 "Abort failed."

$ FC_BADEXCHANGE
9026 "Bad Exchange."

$ FC_BADWWN
9027 "Bad World Wide Name."

$ FC_BADDEV
9028 "Bad device."

$ FC_BADCMD
9029 "Bad command."

$ FC_BADOBJECT
9030 "Bad object."

$ FC_BADPORT
9031 "Bad port."

$ FC_NOTTHISPORT
9032 "Not on this port."

$ FC_PREJECT
9033 "Rejected by Nport."

$ FC_FREJECT
9034 "Rejected by fabric."

$ FC_PBUSY
9035 "Nport busy."

$ FC_FBUSY
9036 "Fabric busy."

$ FC_ALREADY
9037 "Already done."

$ FC_LOGINREQ
9038 "PLOGI required."

$ FC_RESETFAIL
9039 "Reset operation failed."

$ FC_INVALID_REQUEST
9040 "Invalid request."

$ FC_OUTOFBOUNDS
9041 "Out of bounds."

$ FC_TRAN_BUSY
9042 "Command transport busy."

$ FC_STATEC_BUSY
9043 "State change busy."

$ FC_DEVICE_BUSY
9044 "Port driver is working on this device."

$ FC_DEVICE_NOT_TGT
9045 "Command being sent to non-target."

$ FC_TEST_FAILED
9100 "Diagnostic test returned failure."

$ FC_IMAGE_BAD
9101 "Data image contains corrupt or bad information."

$ FC_IMAGE_INCOMPATIBLE
9102 "Data image is not compatible with current hardware."

$ FC_IMAGE_FAILED
9103 "Attempt to download image to adapter failed."

$ FC_OFFLINE_FAILED
9104 "Unable to take adapter offline."



$ --------------------------------------------------
$ PROBE:	10000 - 10999
$ --------------------------------------------------

$ EMLX_PROBE 
10000 "%s"

$ EMLX_OPEN_FAILED 
10001 "Failed to open device: %s"

$ EMLX_NO_LBF_TEST
10002 "Loopback Test cannot be run. Reason:HBA link is not up."

$ EMLX_INVALID_DEV
10003 "Invalid dev option passed in: %s"








