//****************************************************************************
//                   INTEL CORPORATION PROPRIETARY INFORMATION
//       This software is supplied under the terms of a license agreement or
//       nondisclosure agreement with Intel Corporation and may not be copied
//       or disclosed except in accordance with the terms of that agreement.
//         Copyright (c) 2013 - 2014 Intel Corporation. All Rights Reserved.
//****************************************************************************
//
//  TITLE: Master.CFG             DATE CREATED: 02/18/2014
//****************************************************************************
//  Revision History:
//
//****************************************************************************

CONFIGURATION  "Master.cfg, Rev 1.13"
DISPLAY        "S2600JF platform FRU & SDR package version 1.13"
DISPLAY        "Copyright (c) 2014 Intel Corporation"
DISPLAY        " "

// Detect Product ID
PROBE          "BASEBOARD_PRODID" "4D"
FOUND          "JP" "WRONG_PKG"

IFSET "JP"
// {
    DISPLAY "Intel(R) Server Board S2600JF platform"


    //SET "FACTORY_MODE"

    IFSET "FACTORY_MODE"
    // {
        SET "SDR"
    // }
    ELSE
    // {
        SET "AUTO_DETECTION"

        MENUTITLE   "Select the function you want to perform:"
        MENU        "SDR"    "Update only the SDR repository"
        MENU        "FRU"    "Update only the FRU repository"
        MENU        "BOTH"   "Update both the FRU and the SDR repository"
        MENU        "ASSET"  "Modify the Product Asset Tag"
        MENU        "EXIT1"  "Exit"
        MENUPROMPT
        DISPLAY     " "
    // }
    ENDIF

    IFSET "EXIT1"
    // {
        DISPLAY "Exit without making any changes."
    // }
    ELSE
    // {
        IFSET "ASSET"
        // {
            FRUNAME     "SYSTEM"
            FRUADDRESS  "IMBDEVICE" FF 20
            FRUAREA     "PRODUCT"
            FRUFIELD    "AT" "@STDIN:ASCII"
        // }
        ELSE
        // {
            IFSET "BOTH"
                SET "SDR"
                SET "FRU"
            ENDIF

            IFSET "SDR"
            // {
                IFSET "AUTO_DETECTION"
                // {
                    DISPLAY " "
                    DISPLAY "Auto-detecting chassis model and attached hardware."
                    DISPLAY "This may take up to 1 minute to complete."
                    DISPLAY " "

                    // Processor
					// We assume CPU1 always exist.
					DISPLAY "CPU1 is detected."
					
                    PROBE "PROCESSOR" 2
                    FOUND "PROCESSOR_2" ""

                    IFSET "PROCESSOR_2"
                        DISPLAY "CPU2 is detected."
                    ENDIF


					PROBE "PING" "05" "90"
                    FOUND "SAS_MODULE" ""

                    IFSET "SAS_MODULE"
						DISPLAY "SAS module is detected."
					ELSE
						// I/O Module
						// Due to an issue with some IO Module temperature sensor devices, do not probe for it.
						// To probe IO Module FRU instead of it.
						// If the FRU device is present, assume the temperature device is present also.
						//PROBE "PING" "05" "94"
						PROBE "PING" "05" "A4"
						FOUND "IO_MODULE" ""

						IFSET "IO_MODULE"
							DISPLAY "I/O module is detected."
						ENDIF
					ENDIF


                    // Power Supply
                    PROBE "PING" "0F" "B0"
                    FOUND "PS1" ""

                    PROBE "PING" "0F" "B2"
                    FOUND "PS2" ""

                    IFSET "PS1"
                    // {
                        PROBE "IMBDEVICE" "02"
                        FOUND "PS1_FRU" ""

                        IFSET "PS1_FRU"
                        // {
                            FRUNAME     "SYSTEM"
                            FRUADDRESS  02
                            FRUAREA     "PRODUCT" VALIDATE PS1_FRU_IPMI

                            IFSET "PS1_FRU_IPMI"
                            // {
                                FRUAREA  "PRODUCT"
                                PROBE    FRUFIELD "PN" "DPS-750XB A"
                                FOUND    "PS1_750W" ""

                                IFSET "PS1_750W"
                                // {
                                    DISPLAY "Power supply 1 is detected. Model Number: DPS-750XB A"
                                // }
                                ELSE
                                // {
                                    PROBE FRUFIELD "PN" "DPS-1200TB A"
                                    FOUND "PS1_1200W" ""

                                    IFSET "PS1_1200W"
                                    // {
                                        DISPLAY "Power supply 1 is detected. Model Number: DPS-1200TB A"
                                    // }
                                    ELSE
                                    // {
                                        PROBE FRUFIELD "PN" "IS162F22"
                                        FOUND "PS1_1600WAC" ""

                                        IFSET "PS1_1600WAC"
                                        // {
                                            DISPLAY "Power supply 1 is detected. Model Number: IS162F22"
                                        // }
                                        ELSE
                                        // {
											PROBE FRUFIELD "PN" "PSSW162201A"
											FOUND "PS1_1600WDC" ""

											IFSET "PS1_1600WDC"
											// {
												DISPLAY "Power supply 1 is detected. Model Number: PSSW162201A"
											// }
											ELSE
											// {
												DISPLAY " "
												DISPLAY "Power supply 1 is detected but unable to identify model."
												DISPLAY "Sensors for power supply 1 will not be installed."
											// }
											ENDIF
                                        // }
                                        ENDIF
                                    // }
                                    ENDIF
                                // }
                                ENDIF
                            // }
                            ELSE
                            // {
                                DISPLAY " "
                                DISPLAY "Power supply 1 is detected but its FRU data is invalid."
                                DISPLAY "Sensors for power supply 1 will not be installed."
                            // }
                            ENDIF
                        // }
                        ELSE
                        // {
                            DISPLAY "Power supply 1 is detected but can not get FRU data."
                        // }
                        ENDIF
                    // }
                    ENDIF

                    IFSET "PS2"
                    // {
                        PROBE "IMBDEVICE" "03"
                        FOUND "PS2_FRU" ""

                        IFSET "PS2_FRU"
                        // {
                            FRUNAME     "SYSTEM"
                            FRUADDRESS  03
                            FRUAREA     "PRODUCT" VALIDATE PS2_FRU_IPMI

                            IFSET "PS2_FRU_IPMI"
                            // {
                                FRUAREA  "PRODUCT"
                                PROBE    FRUFIELD "PN" "DPS-750XB A"
                                FOUND    "PS2_750W" ""

                                IFSET "PS2_750W"
                                // {
                                    DISPLAY "Power supply 2 is detected. Model Number: DPS-750XB A"
                                // }
                                ELSE
                                // {
                                    PROBE FRUFIELD "PN" "DPS-1200TB A"
                                    FOUND "PS2_1200W" ""

                                    IFSET "PS2_1200W"
                                    // {
                                        DISPLAY "Power supply 2 is detected. Model Number: DPS-1200TB A"
                                    // } 
                                    ELSE
                                    // {
                                        PROBE FRUFIELD "PN" "IS162F22"
                                        FOUND "PS2_1600WAC" ""

                                        IFSET "PS2_1600WAC"
                                        // {
                                            DISPLAY "Power supply 2 is detected. Model Number: IS162F22"
                                        // }
                                        ELSE
                                        // {
											PROBE FRUFIELD "PN" "PSSW162201A"
											FOUND "PS2_1600WDC" ""

											IFSET "PS2_1600WDC"
											// {
												DISPLAY "Power supply 2 is detected. Model Number: PSSW162201A"
											// }
											ELSE
											// {
												DISPLAY " "
												DISPLAY "Power supply 2 is detected but unable to identify model."
												DISPLAY "Sensors for power supply 2 will not be installed."
											// }
											ENDIF
                                        // }
                                        ENDIF
                                    // }
                                    ENDIF
                                // }
                                ENDIF
                            // }
                            ELSE
                            // {
                                DISPLAY " "
                                DISPLAY "Power supply 2 is detected but its FRU data is invalid."
                                DISPLAY "Sensors for power supply 2 will not be installed."
                            // }
                            ENDIF
                        // }
                        ELSE
                        // {
                            DISPLAY "Power supply 2 is detected but can not get FRU data."
                        // }
                        ENDIF
                    // }
                    ENDIF

                    IFSET "PS1_750W" "PS2_750W"
                        DISPLAY "Redundant Power Supply Configuration"
                        SET "REDUNDANT_PS"
                    ENDIF

                    IFSET "PS1_1200W" "PS2_1200W"
                        DISPLAY "Redundant Power Supply Configuration"
                        SET "REDUNDANT_PS"
                    ENDIF

                    IFSET "PS1_1600WAC" "PS2_1600WAC"
                        DISPLAY "Redundant Power Supply Configuration"
                        SET "REDUNDANT_PS"
                    ENDIF

                    IFSET "PS1_1600WDC" "PS2_1600WDC"
                        DISPLAY "Redundant Power Supply Configuration"
                        SET "REDUNDANT_PS"
                    ENDIF


                    // HSBP
                    PROBE "PING" "03" "AC"
                    FOUND "HSBP_FRU" ""

                    IFSET "HSBP_FRU"
                    // {
                        DISPLAY "Hot-swap HDD backplane is detected."
                        SET "HSBP_TEMP"

                        // HSBP PSOC
                        PROBE "PING" "0B" "D0"
                        FOUND "PSOC_TEMP" ""

                        IFSET "PSOC_TEMP"
                            DISPLAY "HSBP PSOC is detected."
                        ENDIF


                        // Node Power
                        PROBE "PING" "07" "40"
                        FOUND "NODE_PWR" ""

                        IFSET "NODE_PWR"
                        // {
                            DISPLAY "Power Docking Board is detected."
                            PROBE "PING" "07" "44"
                            FOUND "OTHER" "BCP_2U4N"

                            IFSET "OTHER"
                                DISPLAY "GPU node power board is detected."
								DISPLAY "Other Chassis SKU is detected"
                            ENDIF
                        // }
                        ELSE
                        // {
                            DISPLAY "Power Docking Board is not detected."
                            DISPLAY "Falling back to user chassis selection as auto detection is not possible."
                            SET "USER_SELECT"
                        // }
                        ENDIF
                    // }
                    ELSE
                    // {
                        DISPLAY "Hot-swap HDD backplane is not detected"
                        DISPLAY "Other Chassis SKU is detected"
                        SET "OTHER"
                    // }
                    ENDIF
                // }
                ENDIF


                //********************************************************************
                // Display configuration selection menu only if FACTORY_MODE is set
                //********************************************************************

                IFSET "FACTORY_MODE"
                // {
                    DISPLAY     " "
                    MENUTITLE   "Select the configuration:"
                    MENU        "TEST_PLATE"  "Test Plate for NPI:PO Kit"
                    MENU        "OTHER"       "Other Chassis"
                    MENU        "SHIP"        "Only for Shipping use"
                    MENU        "FCT"         "Only for FCT use"
                    MENU        "FOQM"        "Only for FOQM use"
                    MENUPROMPT
                    DISPLAY     " "
                // }
                ELSE
                // {
                    //***************************************************************
                    // Display SKU selection menu only if auto-detection fails
                    //***************************************************************

                    IFSET "USER_SELECT"
                    // {
                        DISPLAY " "
                        MENUTITLE   "Select the SKU:"
                        MENU        "BCP_2U4N"  "Intel(R) Server Chassis - H2216/H2312"
						MENU        "OTHER"     "Other Chassis"
                        MENUPROMPT
                        DISPLAY " "
                    // }
                    ENDIF
                // }
                ENDIF


                IFSET "BCP_2U4N"
                // {
                    SET "SYS_FAN_2U4N"

                    FRUNAME     "SYSTEM"
                    FRUADDRESS  08
                    FRUAREA     "BOARD" VALIDATE HSBP_FRU_IPMI

                    IFSET "HSBP_FRU_IPMI"
                    // {
                        FRUAREA  "BOARD"
                        PROBE    FRUFIELD "PN" "FH2K12X35HSBP"
                        FOUND    "2U4N_BP_X35" ""

                        IFSET "2U4N_BP_X35"
                        // {
                            DISPLAY "Intel(R) Server Chassis - H2312."
                        // }
                        ELSE
                        // {
                            PROBE FRUFIELD "PN" "FH2K16X25HSBP"
                            FOUND "2U4N_BP_X25" ""

                            IFSET "2U4N_BP_X25"
                                DISPLAY "Intel(R) Server Chassis - H2216."
                            ELSE
                                DISPLAY "Unknown HSBP FRU data."
                                SET "SELECT_CHASSIS"
                            ENDIF
                        // }
                        ENDIF
                    // }
                    ELSE
                    // {
                        DISPLAY "HSBP FRU data is invalid."
                        SET "SELECT_CHASSIS"
                    // }
                    ENDIF

                    FRUNAME     "SYSTEM"
                    FRUADDRESS  0
                    FRUAREA     "BOARD" VALIDATE MB_FRU_IPMI

                    IFSET "MB_FRU_IPMI"
                    // {
                        PROBE FRUFIELD "P#" "G17104"
                        FOUND "IB_QDR" "NO_IB_QDR"

                        PROBE FRUFIELD "P#" "G45674"
                        FOUND "IB_QDR" "NO_IB_QDR"

                        PROBE FRUFIELD "P#" "G49052"
                        FOUND "IB_QDR" "NO_IB_QDR"

                        PROBE FRUFIELD "P#" "G34057"
                        FOUND "IB_FDR" "NO_IB_FDR"

                        PROBE FRUFIELD "P#" "G49053"
                        FOUND "IB_FDR" "NO_IB_FDR"

                        PROBE FRUFIELD "P#" "G32168"
                        FOUND "IB_10G" "NO_IB_10G"

                        PROBE FRUFIELD "P#" "G28033"
                        FOUND "IB_DEPOP" "NO_IB_DEPOP"

                        IFSET "IB_QDR"
                        // {
                            DISPLAY "IB-QDR SKU"
                        // }
                        ELSE
                        // {
                            IFSET "IB_FDR"
                            // {
                                DISPLAY "IB-FDR SKU"
                            // }
                            ELSE
                            // {
                                IFSET "IB_10G"
                                // {
                                    DISPLAY "IB-10G SKU"
                                // }
                                ELSE
                                // {
                                    IFSET "IB_DEPOP"
                                        DISPLAY "IB De-pop SKU"
                                    ELSE
                                        DISPLAY "No IB SKU is detected"
                                        SET "IB_DEPOP"
                                    ENDIF
                                // }
                                ENDIF
                            // }
                            ENDIF
                        // }
                        ENDIF
                    // }
                    ENDIF
                // }
                ENDIF

                //***************************************************************
                // Display chassis selection menu only if auto-detection fails
                //***************************************************************

                IFSET "SELECT_CHASSIS"
                // {
                    DISPLAY " "
                    MENUTITLE   "Select the chassis:"
                    MENU        "2U4N_BP_X35"  "Intel(R) Server Chassis - H2312 "
                    MENU        "2U4N_BP_X25"  "Intel(R) Server Chassis - H2216 "
                    MENU        "OTHER"        "Other Chassis"
                    MENUPROMPT
                    DISPLAY " "
                // }
                ENDIF


                IFSET "2U4N_BP_X35"
                    SET "LAN_LEASH"
                ENDIF


                IFSET "2U4N_BP_X25"
                    SET "LAN_LEASH"
                ENDIF


                IFSET "TEST_PLATE"
                // {
                    // System Fans
                    DISPLAY " "
                    PROMPT  "Is System Fan 1A installed (Y/N)?"
                    YES     "SYSTEM_FAN_1A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 1B installed (Y/N)?"
                    YES     "SYSTEM_FAN_1B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 2A installed (Y/N)?"
                    YES     "SYSTEM_FAN_2A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 2B installed (Y/N)?"
                    YES     "SYSTEM_FAN_2B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 3A installed (Y/N)?"
                    YES     "SYSTEM_FAN_3A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 3B installed (Y/N)?"
                    YES     "SYSTEM_FAN_3B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 4A installed (Y/N)?"
                    YES     "SYSTEM_FAN_4A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 4B installed (Y/N)?"
                    YES     "SYSTEM_FAN_4B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 5A installed (Y/N)?"
                    YES     "SYSTEM_FAN_5A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 5B installed (Y/N)?"
                    YES     "SYSTEM_FAN_5B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 6A installed (Y/N)?"
                    YES     "SYSTEM_FAN_6A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 6B installed (Y/N)?"
                    YES     "SYSTEM_FAN_6B"
                    NO      ""


                    // Processor
                    PROBE "PROCESSOR" 2
                    FOUND "PROCESSOR_2" ""

                    IFSET "PROCESSOR_2"
                        DISPLAY "CPU2 is detected."
                    ENDIF


                    // I/O Module
                    PROBE "PING" "05" "94"
                    FOUND "IO_MODULE" ""

                    IFSET "IO_MODULE"
                        DISPLAY "I/O module is detected."
                    ENDIF


                    // HSBP
                    PROBE "PING" "03" "AE"
                    FOUND "HSBP_TEMP" ""

                    IFSET "HSBP_TEMP"
                        DISPLAY "Hot-swap HDD backplane is detected."
                    ENDIF


                    SET "PSOC_TEMP"
                // }
                ENDIF


                IFSET "OTHER"
                // {
                    DISPLAY     " "
                    DISPLAY     "The options provided are intended for OEMs and system integrators to allow the"
                    DISPLAY     "thermal control of fans in a third-party chassis. OEMs and system integrators"
                    DISPLAY     "must perform their own thermal testing for any changes made using these"
                    DISPLAY     "options. Intel cannot provide support for any changes made to fan settings to"
                    DISPLAY     "support third-party chassis. Third-party chassis vendors may have recommended"
                    DISPLAY     "settings for these configuration options for specific chassis."
                    DISPLAY     " "
                    DISPLAY     "INTEL ASSUMES NO RESPONSIBILITY FOR UNDESIRED RESULTS WHEN USING ANY CUSTOM FAN CONTROL CONFIGURATION ON INTEL(R) SERVER PRODUCTS"
                    DISPLAY     " "

                    MENUTITLE   "Select the fan speed for the chassis"
                    MENU        "OTHER_SR"  "Slow Ramp"
                    MENU        "OTHER_MR"  "Medium Ramp"
                    MENU        "OTHER_FR"  "Fast Ramp"
                    MENUPROMPT
                    DISPLAY     " "

                    // System Fans
                    DISPLAY " "
                    PROMPT  "Is System Fan 1A installed (Y/N)?"
                    YES     "OTHER_FAN_1A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 1B installed (Y/N)?"
                    YES     "OTHER_FAN_1B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 2A installed (Y/N)?"
                    YES     "OTHER_FAN_2A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 2B installed (Y/N)?"
                    YES     "OTHER_FAN_2B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 3A installed (Y/N)?"
                    YES     "OTHER_FAN_3A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 3B installed (Y/N)?"
                    YES     "OTHER_FAN_3B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 4A installed (Y/N)?"
                    YES     "OTHER_FAN_4A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 4B installed (Y/N)?"
                    YES     "OTHER_FAN_4B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 5A installed (Y/N)?"
                    YES     "OTHER_FAN_5A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 5B installed (Y/N)?"
                    YES     "OTHER_FAN_5B"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 6A installed (Y/N)?"
                    YES     "OTHER_FAN_6A"
                    NO      ""

                    DISPLAY " "
                    PROMPT  "Is System Fan 6B installed (Y/N)?"
                    YES     "OTHER_FAN_6B"
                    NO      ""


                    // Processor
                    IFSET "PROCESSOR_2"
                    // {
                    // }
                    ELSE
                    // {
                        PROBE "PROCESSOR" 2
                        FOUND "PROCESSOR_2" ""

                        IFSET "PROCESSOR_2"
                            DISPLAY "CPU2 is detected."
                        ENDIF
                    // }
                    ENDIF


                    // I/O Module
                    IFSET "IO_MODULE"
                    // {
                    // }
                    ELSE
                    // {
                        PROBE "PING" "05" "94"
                        FOUND "IO_MODULE" ""

                        IFSET "IO_MODULE"
                            DISPLAY "I/O module is detected."
                        ENDIF
                    // }
                    ENDIF


                    CLEAR "BCP_2U4N"
                    CLEAR "SYS_FAN_2U4N"
                    CLEAR "HSBP_TEMP"
                    CLEAR "PSOC_TEMP"
                    CLEAR "PS1_750W"
                    CLEAR "PS2_750W"
                    CLEAR "PS1_1200W"
                    CLEAR "PS2_1200W"
                    CLEAR "PS1_1600WAC"
                    CLEAR "PS2_1600WAC"
                    CLEAR "PS1_1600WDC"
                    CLEAR "PS2_1600WDC"
                    CLEAR "REDUNDANT_PS"
                // }
                ENDIF


                SDRNAME "S2600JF.sdr"  // Update SDR Repository
                BMC_REFRESH
            // }
            ENDIF


            IFSET "FRU"
            // {
                IFSET "JP"
                // {
                    FRUNAME     "SYSTEM"
                    FRUADDRESS  0
                    FRUAREA     "BOARD"

                    PROBE FRUFIELD "PN" "S2600JF"
                    FOUND "JP_FRU_IPMI" ""

                    IFSET "JP_FRU_IPMI"
                    // {
                        DISPLAY " "
                        DISPLAY "Updating FRU areas"

                        FRUNAME     "S2600JF.fru"
                        FRUAREA     "HEADER"
                        FRUAREA     "INTERNALUSE"
                        FRUAREA     "CHASSIS"
                        FRUFIELD    "CT"

                        PROMPT      "Do you want to update the chassis info area of the FRU (Y/N)?"
                        YES         "UPD_CHS"
                        NO          ""

                        IFSET "UPD_CHS"
                        // {
                            DISPLAY     " "
                            PROMPT      "Do you want to enter the chassis serial number (Y/N)?"
                            YES         "CHAS_SN"
                            NO          ""

                            IFSET "CHAS_SN"
                                FRUFIELD    "S#" "@STDIN:ASCII"
                            ENDIF

                            DISPLAY     " "
                            PROMPT      "Do you want to enter the chassis part number (Y/N)?"
                            YES         "CHAS_PN"
                            NO          ""

                            IFSET "CHAS_PN"
                                FRUFIELD    "P#" "@STDIN:ASCII"
                            ENDIF

                            DISPLAY     " "
                            PROMPT      "Do you want to enter data into the additional chassis field 1 (Y/N)?"
                            YES         "CHASS_INFO_1"
                            NO          ""

                            IFSET "CHASS_INFO_1"
                                FRUFIELD     "AM1" "@STDIN:ASCII"
                            ENDIF
                        // }
                        ENDIF

                        FRUAREA     "BOARD"
                        FRUFIELD    "MN"
                        FRUFIELD    "PN"
                        FRUFIELD    "ID"
                        FRUAREA     "PRODUCT"

                        DISPLAY     " "
                        PROMPT      "Do you want to update the product info area of the FRU (Y/N)?"
                        YES         "UPD_PRD"
                        NO          ""

                        IFSET "UPD_PRD"
                        // {
                            FRUFIELD    "MN"
                            FRUFIELD    "PN"

                            DISPLAY     " "
                            PROMPT      "Do you want to enter the product part number (Y/N)?"
                            YES         "PROD_PN"
                            NO          ""

                            IFSET "PROD_PN"
                                FRUFIELD    "P#" "@STDIN:ASCII"
                            ENDIF

                            DISPLAY     " "
                            PROMPT      "Do you want to enter the product serial number (Y/N)?"
                            YES         "PROD_SN"
                            NO          ""

                            IFSET "PROD_SN"
                                FRUFIELD    "S#" "@STDIN:ASCII"
                            ENDIF

                            DISPLAY     " "
                            PROMPT      "Do you want to enter the product asset tag (Y/N)?"
                            YES         "PROD_ASSET"
                            NO          ""

                            IFSET "PROD_ASSET"
                                FRUFIELD    "AT" "@STDIN:ASCII"
                            ENDIF
                        // }
                        ENDIF
                    // }
                    ELSE
                    // {
                        DISPLAY " "
                        DISPLAY "FRU data is invalid."
                    // }
                    ENDIF
                // }
                ENDIF
            // }
            ENDIF
        // }
        ENDIF
    // }
    ENDIF
// }
ELSE
// {
    DISPLAY "This is either the incorrect FRU/SDR package for this baseboard"
    DISPLAY "or your platform ID is incorrectly programmed."
// }
ENDIF
