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

$  #ident  "@(#)sunpci2test.msg  1.7  02/03/27  SMI"


$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.

$ *********************************************
$ VERBOSE messages
$ *********************************************
$ TEST_RUN_VMSG 1
1	"SunPCi open success, running functional test..."\n

$ *****************************************************
$ INFO messages (includeing INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************

$ TEST_USAGE_INFOMSG 2000
2000	%s specific arguments [defaults]:\n\
\tnumeric=<numeric>		number in range\n\
\texc_choice=<choice>        	exclusive choice\n\
\tinc_choice=<choice>		inclusive choice\n\
\ttoggle=<choices>         	toggle between choices\n\
\ttext=<text_input>		text field\n\
\tslidebar=<numeric>      	number in range\n\
\terror=<small_cycle>	      	just like toggle with 2 choices\n\
\tlarge_cycle=<value>		distinct exclusive choices\n\
\tdev=<device name>		test device name\n

$ TEST_ARGLIST_INFOMSG 2001
2001	[numeric= ][,exc_choice= ][,inc_choice= ]\
[,toggle= ][,text= ][,slidebar= ][,error= ][,large_cycle= ][,dev= ]
$ TEST_INFOSCRATCHPAD0    2002
2002 "SCRATCHPAD0 = 0x%x"\n
$ DISPLAY_LOOP_CODE       2003
2003 "current pc_postcode=0x%x"\n
$ TEST_DONE_MSG           2004 
2004 "SunPCi Diagnostics finished with code 0x%x"\n
$ CFG_DISPLAY_HEADER      2005
2005 "DEC21554 configuration registers as seen from the primary side"\n
$ CSR_DISPLAY_HEADER      2006
2006 "DEC21554 CSR"\n
$ CFG_DISPLAY_ONE_REG     2007
2007 " CFG 0x%x = 0x%x"\n
$ CSR_DISPLAY_ONE_REG     2008
2008 " CSR 0x%x = 0x%x"\n

$ CONNMSG
2010 Found <%s>

$ 
$ *********************************
$ WARNING messages
$ *********************************
$ TEST_WARNMSG           4000
4000	"This is an warning message."\n

$ TIMEOUT_WARNMSG        4001
4001    "Time out: newpostcode = 0x%x." Probable_Cause(s): <Lack of system resource to run the test.> Recommended_Action(s): <Test will re-run itself. Ignore this message.>


$ TIMEOUT_ERRMSG        4002
4002    "Time out: newpostcode = 0x%x"  Probable_Cause(s): <Failed on postcode.> Recommended_Action(s): < If the problem persists, \
call your authorized Sun service provider.>


$ ********************************
$ ERROR messages
$ ********************************
$ TEST_ARGUMENT_ERRMSG  6000	
6000	"Please enter an appropriate value, %s=?"
$ BAD_OPTIONS_ERRMSG 6001
6001	"Bad test option: %s"\n
$ SUBTEST_ERRMSG  6002 
6002	"Found error in subtest"\n
$ TEST_SUNPCI_ERRMSG  6003
6003	"This is an error message."\n
$ TEST_FINAL_ERRMSG 6004
6004	"Test Failed.  Found %d errors."\n
$ TEST_CONNECTION_ERRMSG 6005
6005    "Test Failed. Check the presence of the card and connection."\n
$ PRIMARY_ID_ERRMSG    6006
6006    "PCI-PCI Bridge Primary ID detection failed"\n
$ SECONDARY_ID_ERRMSG  6007
6007    "PCI-PCI Bridge Secondary ID detection failed"\n
$ SRATCHPAD_WALK1_ERRMSG  6008
6008    "PCI-PCI Bridge SRATCHPAD walk1 failed at pattern 0x%x"\n
$ SRATCHPAD_WALK0_ERRMSG  6009
6009    "PCI-PCI Bridge SRATCHPAD walk0 failed at pattern 0x%x"\n
$ CSR_REG_READ_ERRMSG     6010
6010    "PCI-PCI Bridge control and status register read failure, pattern 0x%x"\n
$ CSR_REG_WRITE_ERRMSG    6011
6011    "PCI-PCI Bridge control and status register write failure, pattern 0x%x"\n
$ CSR_REG_COMPARE_ERRMSG  6012
6012    "PCI-PCI Bridge register compare failure"\n
$ CFG_REG_READ_ERRMSG     6013
6013    "PCI-PCI Bridge configuration space register read failure, offset 0x%x"\n
$ CFG_REG_WRITE_ERRMSG    6014
6014    "PCI-PCI Bridge configuration space register write failure, offset 0x%x"\n
$ DEVICE_OPEN_FAILURE     6015
6015    "Can not open device SunPCi Card %s. Probable_Cause(s): < One instance may be already running.> <Need to run sunpcload  after add/remove sunpci2 card> Recommended_Action(s): <run sunpcload from /opt/SUNWspci2/drivers/solaris/>


Probable_Cause(s): <Failed on postcode.> Recommended_Action(s): < If the problem persists, \
call your authorized Sun service provider.>



$ READ_BIST_FAILURE       6016
6016    "Reading BiST failed"\n
$ WRITE_BIST_FAILURE      6017
6017    "Writing BiST failed"\n
$ NO_BOOT_SIGNATURE       6018
6018    "expected boot signature is not seen"\n
$ UNKNOW_PROBLEM          6019
6019    "An unknown error is detected"\n
$ SCRATCH7_READ_FAILURE   6020
6020    "CSR SCRATCHPAD7 read failure"\n
$ POST_REPORT_BASE        8000
8000    "Unexpected error occurred"\n
$ PROCESSOR_TEST_1                       = 1
8001    "X86 Processor test 1 failed"\n
$ PROCESSOR_TEST_2,                    /* 2 */
8002    "X86 CPU register test failed"\n
$ INITIALIZE_CHIPS,                    /* 3 */
8003    "Initialization of on-board chips failed"\n
$ TEST_MEMORY_REFRESH_TOGGLE           /* 4 */
8004    "Memory Refresh function failed"\n
$ BLANK_VIDEO_INIT_KEYBOARD,           /* 5 */
8005    "keyboard controller initialization failed"\n
$ Reserved
8006    "Unexpected error occurred"\n
$ TEST_CMOS_INTERFACE_AND_BATTERY_STATUS = 7
8007    "CMOS failed/battery low"\n
$ SET_UP_LOW_MEMORY,                   /* 8 */
8008    "Either early chipset initialization failed or first 64K memory undetected"\n
$ EARLY_CACHE_INITAILIZATION,          /* 9 */
8009    "Cache Initialization failed"\n
$ SETUP_INTERRUPT_VECTOR_TABLE,        /* A */
8010    "Initialization of the interrupt vectors failed"\n
$ TEST_CMOS_RAM_CHECKSUM,              /* B */
8011    "CMOS checksum error detected"\n
$ INITIALIZE_KEYBOARD,                 /* C */
8012    "Keyboard controller detection failure"\n
$ INITIALIZE_VIDEO_INTERFACE,          /* D */
8013    "Detect and initialize video adapter"\n
$ TEST_VIDEO_MEMORY,                   /* E */
8014    "Test video memory failed"\n
$ TEST_DMA_CONTROLLER_0,               /* F */
8015    "Test DMA controller 0 failed"\n
$ TEST_DMA_CONTROLLER_1,               /* 0x10 */
8016    "Test DMA controller 1 failed"\n
$ TEST_DMA_PAGE_REGISTERS,             /* 0X11 */
8017    "Test DMA page registers failed"\n
$ TEST_DEC21554,                       /* 0X12 */
8018    "Test PCI-PCI bridge 21554 failed"\n
$ reserved
8019    "Unexpected error occurred"\n
$ TEST_TIMER_COUNTER2                    = 0X14
8020    "Test 8254 Timer 0 counter 2 failed"\n
$ TEST_8259_1_MASK_BITS,               /* 0X15 */
8021    "Test 8259 channel 1 masked interrupts failed"\n
$ TEST_8259_2_MASK_BITS,               /* 0X16 */
8022    "Test 8259 channel 2 masked interrupts failed"\n
$ TEST_STUCK_8259_INTERRUPT,           /* 0X17 */
8023    "Some of the 8259 interrupts is struck"\n
$ TEST_8259_INTERRUPT_FUNCTION,        /* 0X18 */
8024    "An interrupt in 8259 was forced but not seen"\n
$ TEST_STRUCK_NMI_BITS,                /* 0X19 */
8025    "NMI is struck and can not be cleared"\n   
$ DISPLAY_CPU_CLOCK,                   /* 0X1A */
8026    "read CPU clock failed"\n
$ SET_EISA_MODE                          = 0X1F
8027    "Obsolete function failed"\n
$ reserved      
8028    "Unexpected error occurred"\n
$ reseverd
8029    "Unexpected error occurred"\n
$ reserved
8030    "Unexpected error occurred"\n
$ reserved
8031    "Unexpected error occurred"\n
$ reserved
8032    "Unexpected error occurred"\n
$ reserved
8033    "Unexpected error occurred"\n
$ reserved
8034    "Unexpected error occurred"\n
$ reserved
8035    "Unexpected error occurred"\n
$ reserved
8036    "Unexpected error occurred"\n
$ reserved
8037    "Unexpected error occurred"\n
$ reserved
8038    "Unexpected error occurred"\n
$ reserved
8039    "Unexpected error occurred"\n
$ reserved
8040    "Unexpected error occurred"\n
$ reserved
8041    "Unexpected error occurred"\n
$ reserved
8042    "Unexpected error occurred"\n
$ reserved
8043    "Unexpected error occurred"\n
$ reserved
8044    "Unexpected error occurred"\n
$ reserved
8045    "Unexpected error occurred"\n
$ reserved
8046    "Unexpected error occurred"\n
$ reserved
8047    "Unexpected error occurred"\n
$ SIZE_BASE_AND_EXTENDED_MEMORY,       /* 0X30 */
8048    "Sizing base memory failed"\n
$ TEST_BASE_AND_EXTENDED_MEMORY
8049    "Testing base memory failed"\n
$ reserved
8050    "Unexpected error occurred"\n
$ reserved
8051    "Unexpected error occurred"\n    
$ reserved
8052    "Unexpected error occurred"\n
$ reserved
8053    "Unexpected error occurred"\n
$ reserved
8054    "Unexpected error occurred"\n
$ reserved
8055    "Unexpected error occurred"\n
$ reserved
8056    "Unexpected error occurred"\n
$ reserved
8057    "Unexpected error occurred"\n
$ reserved
8058    "Unexpected error occurred"\n
$ reserved
8059    "Unexpected error occurred"\n
$ SETUP_ENABLED                        = 0X3C,
8060    "Setup enabled"\n
$ INITIALIZE_AND_INSTALL_MOUSE,        /* 0X3D */
8061    "Mouse detection/interrupt vector install failed"\n
$ SETUP_CACHE_CONTROLLER,              /* 0X3E */
8062    "Initialize cache controller"\n
$ reserved
8063    "Unexpected error occurred"\n
$ DISPLAY_VIRUS_PROTECT_SWITCH         = 0X40
8064    "Virus protection switch toggle failed"\n
$ INITIALIZE_FD_AND_CONTROLLER,        /* 0X41 */
8065    "Initialization of (emulated) floppy drive or its controller failed"\n 
$ INITIALIZE_HD_AND_CONTROLLER,        /* 0X42 */
8066    "Initialization of (emulated) hard drive or its controller failed"\n
$ DETECT_INITIALIZE_S_P_PORTS,         /* 0X43 */
8067    "Initialization of serial, parallel or game port failed"\n
$ reserved
8068    "Initialization of math coprocessor failed"\n
$ reserved
8069    "Unexpected error occurred"\n
$ reserved
8070    "Unexpected error occurred"\n
$ reserved
8071    "Unexpected error occurred"\n
$ reserved
8072    "Unexpected error occurred"\n
$ reserved
8073    "Unexpected error occurred"\n
$ reserved
8074    "Unexpected error occurred"\n
$ reserved
8075    "Unexpected error occurred"\n
$ reserved
8076    "Unexpected error occurred"\n
$ reserved
8077    "Unexpected error occurred"\n
$ MFG_POST_LOOP_DISPLAY_MESSAGE        = 0X4E
8078    "There has been a fatal error detected"\n
$ SECURITY_CHECK,                      /* 0X4F */
8079    "Set password function failed"\n
$ WRITE_CMOS,                          /* 0X50 */
8080    "Write CMOS back to RAM failed"\n
$ PRE_BOOT_ENABLE,                     /* 0X51 */
8081    "Enable parity checking, NMI and cache failed"\n
$ INITIALIZE_OPTION_ROMS,              /* 0X52 */
8082    "Initialization of option ROM failed"\n
$ INITIALIZE_TIME_VALUE,               /* 0X53 */
8083    "Initialization of time value in BIOS"\n
$ reserved
8084    "Unexpected error occurred"\n
$ reserved
8085    "Unexpected error occurred"\n
$ reserved
8086    "Unexpected error occurred"\n
$ reserved
8087    "Unexpected error occurred"\n
$ reserved
8088    "Unexpected error occurred"\n
$ reserved
8089    "Unexpected error occurred"\n
$ reserved
8090    "Unexpected error occurred"\n
$ reserved
8091    "Unexpected error occurred"\n
$ reserved
8092    "Unexpected error occurred"\n
$ reserved
8093    "Unexpected error occurred"\n
$ reserved
8094    "Unexpected error occurred"\n
$ reserved
8095    "Unexpected error occurred"\n
$ SETUP_VIRUS_PROTECT                  = 0X60
8096    "Setup of virus protect according to setup menu failed"\n
$ SET_BOOT_SPEED,                      /* 0X61 */
8097    "Setup speed for system boot failed"\n
$ SETUP_NUMLOCK,                       /* 0X62 */
8098    "Setup num lock according to menu failed"\n
$ BOOT_ATTEMPT,                        /* 0X63 */
8099    "set low stack and attempting to boot failed"\n

$  ERR_READ_CMOS
8102	"Error reading /opt/SUNWspci2/bios/cmos.bin\n"

$ BIOS_OPEN_ERR
8104   "Can't Open bios.bin\n"

$ UNKNOWN_OP
8106 "Unknown Op: %x\n"

$ UNKNOWN_LibSoftLoad_OP
8108 "Unknown LibSoftLoad Op %x\r\n"

$ UNKNOWN_DEST
8110  "Unknown Dest: %x\r\n"

$ OPEN_CMOS_ERR
8112 "Can't Open /opt/SUNWspci2/bios/cmos.bin\n"

$ MISC_ERR
8114 "error : %d \n"


