[Identify]
    Debug-Output "HPVGPCI: Identify."
    read-syms Identification
    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media      = #("Source Media Descriptions", 1, 1)
    Return $(Status) $(Identifier) $(Media)

[Identification]
    OptionType = NetAdapter
[PlatformsSupported]
    PCI
    ISA
    EISA
[Options]
;J2585A
J2585AIO
;J2585ASLOT
[FileConstants]
UtilityInf      = "UTILITY.INF"
ParamInf        = "NCPARAM.INF"
subroutineinf   = "SUBROUTN.INF"
SoftwareType    = "driver"
Exit_Code       = 0
DialogDllName   = "hpvg1dlg.dll"
NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
Manufacturer    = "Hewlett-Packard"
ProductMajorVersion     = "7"
ProductMinorVersion     = "0"
ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName     = "Hpfend"
ProductSoftwareTitle    = "HP 10/100VG LAN Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\hpfend.sys"
NetRuleSoftwareType     = "hpfendSys ndisDriver hpfendDriver"
NetRuleSoftwareUse      = $(SoftwareType)
NetRuleSoftwareBindForm = """HpfendSys"" yes no container"
NetRuleSoftwareClass    = {"hpfendDriver basic"}
NetRuleSoftwareBindable = {"hpfendDriver hpfendAdapter non exclusive 100"}
ProductHardwareName     = "Hpfend"
ProductHardwareJ2585AIOTitle = "HP J2585A"
;ProductHardwareJ2585ASLOTTitle = "HP J2585A"
NetRuleHardwareType     = "hpfend hpfendAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass    = {"hpfendAdapter basic"}
ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
[GeneralConstants]
from      = ""
to        = ""
ExitCodeOk     = 0
ExitCodeCancel = 1
ExitCodeFatal  = 2
KeyNull         = ""
MAXIMUM_ALLOWED   = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct      = ""
KeyParameters   = ""
TRUE            = 1
FALSE           = 0
NoTitle            = 0
ExitState   = "Active"
OldVersionExisted = $(FALSE)
DriverPath      = $(!STF_NTPATH)\drivers
[date]
    Now = {} ? $(!LIBHANDLE) GetSystemDate

[ReturnOptions]
    Debug-Output "HPVGPCI: ReturnOptions."
    set Status        = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
	ifstr(i) $($1) == ""
			goto returnoptions
	endif
	set PlatformList = ^(PlatformsSupported, 1)
	Ifcontains(i) $($1) in $(PlatformList)
			goto returnoptions
	else
			set Status = STATUS_NOTSUPPORTED
			goto finish_ReturnOptions
	endif
    else
		set Status = STATUS_NOLANGUAGE
		goto finish_ReturnOptions
    endif
returnoptions = +
    set OptionList     = ^(Options, 1)
    set OptionTextList = ^(OptionsText$($0), 1)
    set Status         = STATUS_SUCCESSFUL
    Debug-Output "HPVGPCI: ReturnOptions successful."
finish_ReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)

[InstallOption]
    set Status   = STATUS_FAILED
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
	Return STATUS_NOLANGUAGE
    endif
    set-subst LF = "\n"
    read-syms GeneralConstants
    read-syms FileConstants
    read-syms DialogConstants$(!STF_LANGUAGE)
    ifstr(i) $(!NTN_Origination) == "NCPA"
	set Continue = "OK"
    endif
    read-syms FileConstants$(!STF_LANGUAGE)
    detect date
    set-title  $(FunctionTitle)
    set to   = Begin
    set from = Begin
    set CommonStatus = STATUS_SUCCESSFUL
    EndWait
Begin = +
    Set ActivateDetection = FALSE
    Ifstr(i) $(!NTN_InstallMode) == deinstall
	set StartLabel = removeadapter
    else-Ifstr(i) $(!NTN_InstallMode) == Update
	set StartLabel = UpgradeSoftware
    else-Ifstr(i) $(!NTN_InstallMode) == bind
	set StartLabel = bindingadapter
    else-Ifstr(i) $(!NTN_InstallMode) == configure
	set StartLabel = configureadapter
	Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	    Debug-Output "Cannot configure the Hpfend driver software."
	    Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
	    ifint $($ShellCode) != $(!SHELL_CODE_OK)
		Debug-Output "ShellCode error: cannot get an error string."
		goto ShellCodeError
	    endif
	    set Error = $($R0)
	    set from = end
	    set to = end
	    goto nonfatalinfo
	endif
    else
	set StartLabel = installadapter
	set OEM_ABANDON_OPTIONS = {}
	set OEM_ABANDON_SOFTWARE = FALSE
	set OEM_ABANDON_ON = TRUE
    endif
    Debug-Output "HPVGPCI.INF: =================================================="
    Debug-Output "HPVGPCI.INF: STF_CWDIR is: "$(!STF_CWDIR)
    Debug-Output "HPVGPCI.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
    Debug-Output "HPVGPCI.INF: Option is: "$(Option)
    Debug-Output "HPVGPCI.INF: =================================================="
    Set DetectedCard = FALSE
    Goto $(StartLabel)
installadapter = +
    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
    Ifstr $(KeyProduct) != $(KeyNull)
	CloseRegKey $(KeyProduct)
	ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
	   Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
	       $(ProductVersion)
	   ifint $($ShellCode) != $(!SHELL_CODE_OK)
	       Debug-Output "ShellCode error: cannot get an error string."
	       goto ShellCodeError
	   endif
	   goto end
	else
	   Shell $(UtilityInf), CardExistedDlg
	   ifint $($ShellCode) != $(!SHELL_CODE_OK)
	       Debug-Output "ShellCode error: cannot get an error string."
	       goto ShellCodeError
	   endif
	   ifstr(i) $($R1) != "OK"
	       goto end
	   endif
	   set OldVersionExisted = $(TRUE)
	endif
    endif
    Set CurrParamSettings = {}
    set   OldSource =  $(!STF_SRCDIR)
    Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(!STF_SRCDIR)
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
	  Goto fatal
    Else-Ifstr(i) $($R0) == STATUS_FAILED
	  Goto fatal
    Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
	  Goto installstep1
    Endif
    Set !STF_SRCDIR = $($R1)
    install "Install-Dll"
    Set !STF_SRCDIR = $(OldSource)
;Set Defaults
;    set IRQValue = *($(IRQList), $($(Option)IRQDefault))
    set IOBaseAddrValue = *($(IOBaseAddrList), $($(Option)IOBaseAddrDefault))
;    set MemoryMapValue = *($(MemoryMapList), $($(Option)MemoryMapDefault))
    Goto adaptersetup
configureadapter = +
    Ifstr $(KeyProduct) == $(KeyNull)
	OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
	Ifstr $(KeyProduct) == $(KeyNull)
	    set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
	    Debug-Output "Cannot find component product key"
	    goto fatalregistry
	Endif
    Endif
    Debug-Output "HPVGPCI.INF: Shelling to FindService"
    Shell $(UtilityInf) FindService, $(KeyProduct)
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "HPVGPCI.INF: FindService shell failure"
	Goto ShellCodeError
    Endif
    Ifstr(i) $($R0) != NO_ERROR
	Debug-Output "HPVGPCI.INF: FindService Shell error: "$($R0)
	Goto fatalregistry
    endif
    Set KeyParameters = $($R2)
    CloseRegKey $($R1)
    Ifstr $(KeyParameters) == $(KeyNull)
	set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
	Debug-Output "HPVGPCI.INF: Cannot find component service"
	goto fatalregistry
    endif
    set OldVersionExisted = $(TRUE)
    set ValueName = ""
    set ValueData = ""
    set ValueStr  = ""
    set ValueList = {}
    EnumRegValue $(KeyParameters) ValueList

    ForListDo $(ValueList)
	set ValueItem = $($)
	set ValueName = *($(ValueItem),1)
	set ValueData = *($(ValueItem),4)
	ifstr(i) $(ValueName) == "InterruptNumber"
	    set IRQValueIndex = $(ValueData)
	else-ifstr(i) $(ValueName) == "IoBaseAddress"
	    set IOBaseAddrIndex = $(ValueData)
	else-ifstr(i) $(ValueName) == "SlotNumber"
	    set IOBaseAddrIndex = $(ValueData)
;        else-ifstr(i) $(ValueName) == "MemoryMappedBaseAddress"
;           set MemoryMapIndex = $(ValueData)
	endif

    EndForListDo

;    set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
;    ifstr(i) $(IRQValue) == ""
;       set IRQValue = *($(IRQList), 2)
;    endif


;    set MemoryMapValue = *($(MemoryMapList), ~($(MemoryMapValues),$(MemoryMapIndex)))
;    ifstr(i) $(MemoryMapValue) == ""
;       set MemoryMapValue = *($(MemoryMapList), 2)
;    endif


    set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))

    ifstr(i) $(IOBaseAddrValue) == ""
	set IOBaseAddrValue = *($(IOBaseAddrList), 1)
    endif

adaptersetup = +
    Shell "" DebugConfiguration "before displaying dialog"
    Set from = adapteroptions
    goto adapteroptions
adapteroptions = +
    read-syms FileDependentDlg$(!STF_LANGUAGE)
    Debug-Output "HPVGPCI: Start the dialog box."
    LoadLibrary "Disk 1" $(DialogDllName) !hLib
    SetHelpFile "hpvgp.hlp" $(MinID) $(MaxID)
    ui start "InputDlg"  $(!hLib)
    FreeLibrary $(!hLib)
    ifstr(i) $(DLGEVENT) == "CONTINUE"
;                set IRQValueIndex = $(Combo1Out)
;                set IOBaseAddrIndex = $(Combo2Out)
		set IOBaseAddrIndex = $(Combo1Out)
;                set MemoryMapIndex = $(Combo3Out)
		ui pop 1
		goto nextstep
    else-ifstr(i) $(DLGEVENT) == "BACK"
		set CommonStatus = STATUS_USERCANCEL
		Debug-Output "Action: exit. Bye."
		ui pop 1
		goto end
    else
		ui pop 1
		Debug-Output "Action: unknown. Bye."
		goto end
    endif
nextstep = +
    Shell "" DebugConfiguration "after running dialog"
    Set from = adapteroptions
    Set to = skipoptions
    goto skipoptions
skipoptions =+
    ifint $(OldVersionExisted) == $(TRUE)
	ifstr(i) $(!NTN_InstallMode) == configure
	    goto writeparameters
	endif
    endif
    StartWait
    ifint $(OldVersionExisted) == $(FALSE)
	ifstr(i) $(!NTN_InstallMode) == "install"
	   Ifstr(i) $(DoCopy) == "YES"
	      Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
	      Ifint $($ShellCode) != $(!SHELL_CODE_OK)
		  Goto ShellCodeError
	      Else-Ifstr(i) $($R0) == STATUS_FAILED
		  Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
		  ifint $($ShellCode) != $(!SHELL_CODE_OK)
		      goto ShellCodeError
		  endif
		  set Error = $($R0)
		  Goto fatal
	      Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
		  Goto successful
	      Endif
	      Set SrcDir = $($R1)
	   Endif
	   install "Install-Option"
	   ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
	      Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
	      ifint $($ShellCode) != $(!SHELL_CODE_OK)
		  goto ShellCodeError
	      endif
	      set Error = $($R0)
	      goto fatal
	   endif
	endif
	Debug-Output "HPVGPCI: Add Software Component."
	Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName), +
	    $(ProductSoftwareName), +
	    $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
	    $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
	    $(NetEventDLL)
	Set OEM_ABANDON_SOFTWARE = TRUE
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	set KeyProduct      = $($R1)
	Set SoftNetRulesKey = $($R2)
	CloseRegKey $($R3)
	CloseRegKey $($R4)
	CloseRegKey $($R5)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    EndWait
	    Debug-Output "Registry error: add software components"
	    CloseRegKey $(KeyProduct)
	    CloseRegKey $(SoftNetRulesKey)
	    goto fatalregistry
	endif
	Debug-Output "HPVGPCI: Add Product Software Values."
	set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
			   {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
			   {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
			   {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
			   {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
			   {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
			   {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
	Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error."
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    EndWait
	    Debug-Output "Registry error: add value list."
	    CloseRegKey $(KeyProduct)
	    CloseRegKey $(SoftNetRulesKey)
	    goto fatalregistry
	endif
	set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
			    {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
			    {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
			    {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
			    {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
			    {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
	Debug-Output "HPVGPCI: Add Net Rule Values."
	Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error."
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	CloseRegKey $(KeyProduct)
	CloseRegKey $(SoftNetRulesKey)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    EndWait
	    Debug-Output "Registry error: add value list."
	    goto fatalregistry
	endif
    endif
    Debug-Output "HPVGPCI: Add Hardware Component."
    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
    ifint $($R4) != -1
	Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
    endif
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "Cannot add hardware component"
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "Registry error: add hardware component"
	CloseRegKey $($R1)
	CloseRegKey $($R2)
	CloseRegKey $($R3)
	goto fatalregistry
    endif
    set KeyParameters = $($R3)
    set KeyAdapterRules = $($R2)
    set AdapterNumber = $($R4)
    set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
		       {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
		       {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
		       {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
		       {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
		       {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
    Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error"
	goto ShellCodeError
    endif
    CloseRegKey $($R1)
    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
    set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
			{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
			{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
			{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
    Debug-Output "HPVGPCI: Add Product Hardware Values."
    Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "Registry error: add value list."
	CloseRegKey $(KeyParameters)
	CloseRegKey $(KeyAdapterRules)
	goto fatalregistry
    endif
    CloseRegKey $(KeyAdapterRules)
    goto writeparameters
writeparameters = +
    Shell $(UtilityInf), GetBusTypeNum
    set TempBusTypeNum = $($R1)
; PCI Bus Type
    set BusTypeNum = 5
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif

    Debug-Output "HPVGPCI: Assign AdapterType."
;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI/IO, 4=PCI/Slot
    set AdapterTypeValue = $($(Option)AdapterType)

;Get BusNumber
    set BusNumber = 0

    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_SoftwareBase)"\Microsoft\Windows Nt\CurrentVersion" $(MAXIMUM_ALLOWED) KeyNt
    Ifstr(i) $(KeyNt) != ""
	GetRegValue $(KeyNt) "CurrentVersion" CurVerValue
	Set CurVer = *($(CurVerValue),4)
	Debug-Output "HPVGPCI.INF: NT Version is "$(CurVer)
	CloseRegKey $(KeyNt)
    Endif

    Ifstr(i) $(CurVer) == ""
      Debug-Output "HPVGPCI.INF: Set BusNumber = 0 "
      Set BusNumber = 0
    Else
      Ifstr(i) $(CurVer) == "3.1"
	Debug-Output "HPVGPCI.INF: Set BusNumber = 0 "
	Set BusNumber = 0
	set BusTypeNum = $(TempBusTypeNum)
;        set AdapterTypeValue = 0
      else
;        Debug-Output "HPVGPCI.INF: Shell out for BusNumber"
;        Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusTypeNum) $(BusNumber)
      endif
    Endif

;    set MemoryMapValue = *($(MemoryMapValues), ~($(MemoryMapList),$(MemoryMapIndex)))

;    set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))

    Debug-Output "HPVGPCI: Assign IOBaseAddress."
    set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))

;    Debug-Output "HPVGPCI: Assign AdapterType."
;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI/IO, 4=PCI/Slot
;    set AdapterTypeValue = $($(Option)AdapterType)

    Debug-Output "HPVGPCI: Form the Adapter Parameter List."
    Debug-Output "HPVGPCI: IOBaseAddress string is: "$($(Option)BaseAddress)

;    Set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
    Set NewValueList = { +
		       {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
		       {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
		       {AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(AdapterTypeValue)},+
		       {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
;                       {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryMapValue)},+
		       {$($(Option)BaseAddress),$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
;                       {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
    Debug-Output "HPVGPCI: Add Adapter Configuration Parameters."
    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
    CloseRegKey $(KeyParameters)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	Debug-Output "Registry error: Add value list"
	goto fatalregistry
    endif
    EndWait
    goto successful
bindingadapter =+
    set Error = "Binding: Sorry, not yet implemented."
    goto fatal
removeadapter = +
    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    goto fatalregistry
	endif
    else
	Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName), $(!NTN_RegBase)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    goto fatalregistry
	endif
    endif
    goto end
UpgradeSoftware = +
    ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
	Ifstr $(KeyProduct) != $(KeyNull)
	    GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
	    set Version = *($(VersionInfo), 4)
	    Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
	    ifint $($ShellCode) != $(!SHELL_CODE_OK)
		Debug-Output "ShellCode error"
		goto ShellCodeError
	    endif
	    set !UG_Filename = $($R0)
	    ifstr(i) $(!UG_Filename) != ""
		install "Install-Update"
		ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
		    goto fatal
		endif
	    endif
	    SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
	    SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
	    ifint $(Version) != $(ProductVersion)
	    endif
	    CloseRegKey $(KeyProduct)
	else
	    goto fatalregistry
	endif
    else
	OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
	      $(MAXIMUM_ALLOWED) NetworkCardKey
	Ifstr(i) $(NetworkCardKey) != $(KeyNull)
	    GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
	    set ServiceName = *($(ServiceNameInfo), 4)
	    OpenRegKey $(NetworkCardKey) "" "NetRules" +
		$(MAXIMUM_ALLOWED) NetRuleKey
	    Ifstr(i) $(NetRuleKey) != $(KeyNull)
	    else
		goto fatalregistry
	    endif
	    CloseRegKey $(NetRules)
	    CloseRegKey $(NetworkCardKey)
	else
	    goto fatalregistry
	endif
	OpenRegKey $(!REG_H_LOCAL) "" +
	      $(!NTN_ServiceBase)"\"$(ServiceName) +
	      $(MAXIMUM_ALLOWED) ServiceKey
	Ifstr(i) $(ServiceKey) != $(KeyNull)
	    CloseRegKey $(ServiceKey)
	else
	    goto fatalregistry
	endif
    endif
    goto end
successful = +
    goto end
abandon = +
    ForListDo $(OEM_ABANDON_OPTIONS)
	Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName), $($)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    goto fatalregistry
	endif
    EndForListDo
    Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
	Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName), FALSE
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    goto fatalregistry
	endif
    endif
    goto end
warning = +
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    ifstr(i) $($R1) == "OK"
	goto $(to)
    else-ifstr(i) $($R1) == "CANCEL"
	goto $(from)
    else
	goto "end"
    endif
nonfatalinfo = +
    Set Severity = STATUS
    Set CommonStatus = STATUS_USERCANCEL
    goto nonfatalmsg
nonfatal = +
    Set Severity = NONFATAL
    goto nonfatalmsg
nonfatalmsg = +
    ifstr(i) $(Error) == ""
	Set Severity = NONFATAL
	Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    goto ShellCodeError
	endif
	set Error = $($R0)
    endif
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    ifstr(i) $($R1) == "OK"
	goto $(from)
    else
	goto "end"
    endif
fatalregistry = +
    Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    set Error = $($R0)
    goto fatal
fataldetect = +
    Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error: cannot get an error string."
	goto ShellCodeError
    endif
    set Error = $($R0)
    Goto fatal
fatal = +
    ifstr(i) $(Error) == ""
	Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    goto ShellCodeError
	endif
	set Error = $($R0)
    endif
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    goto setfailed
ShellCodeError = +
    set DlgType      = "MessageBox"
    set STF_MB_TITLE = "Error: "$(FunctionTitle)
    set STF_MB_TEXT  = "Shell Code Error"
    set STF_MB_TYPE  = 1
    set STF_MB_ICON  = 3
    set STF_MB_DEF   = 1
    ui start "Error Message"
    goto setfailed
setfailed = +
    set CommonStatus = STATUS_FAILED
    ifstr(i) $(OEM_ABANDON_ON) == TRUE
	set OEM_ABANDON_ON = FALSE
	goto abandon
    endif
    goto end
end = +
    goto term
term = +
    Return $(CommonStatus)
[DebugConfiguration]
    Set InfName = "HPVGPCI.INF"
    Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
;    Debug-Output $(InfName)" IRQLevel is "$(!p:IRQValue)
    Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
;    Debug-Output $(InfName)" MemoryMappedBaseAddr is "$(!p:MemoryMapValue)
    return
[Install-Option]
    set STF_VITAL = ""
    ifstr(i) $(AddCopy) == "YES"
	AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
    endif
    ifstr(i) $(DoCopy) == "YES"
       set !STF_NCPA_FLUSH_COPYLIST = TRUE
       CopyFilesInCopyList
    endif
    Exit
[Install-Update]
   set STF_VITAL        = ""
   set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
   AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
   set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList
   exit

[Install-Dll]
   set STF_VITAL        = ""
   AddSectionFilesToCopyList Files-Dll $(!STF_SRCDIR) $(!STF_WINDOWSSYSPATH)
   CopyFilesInCopyList
   exit

[Source Media Descriptions]
    1  = "HP Driver Support Disk"
[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386
[Files-Inf]
1,      oemsetup.inf,    SIZE=30722,    RENAME=$(!UG_Filename)
[Files-J2585A]
1, hpfend.sys , SIZE=34816
[Files-J2585AIO]
1, hpfend.sys , SIZE=34816
[Files-J2585ASLOT]
1, hpfend.sys , SIZE=34816
[Files-Dll]
1, Hpvg1dlg.dll,  SIZE=16896
1, Hpvgp.hlp,     SIZE=4536
[LanguagesSupported]
    ENG
[OptionsTextENG]
;    J2585A = "HP J2585A 10/100VG PCI LAN Adapter"
    J2585AIO = "HP J2585A 10/100VG PCI LAN Adapter" 
;    J2585ASLOT = "HP J2585A 10/100VG PCI LAN Adapter: Slot Addressing"
[FileConstantsENG]
ProCaption   = "Windows NT Setup"
ProCancel    = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
	       "Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1     = "Copying:"
ProText2     = "To:"

J2585AIOFunctionTitle    = "HP J2585A LAN Adapter Setup"
;J2585ASLOTFunctionTitle    = "HP J2585A LAN Adapter Setup"
ProductSoftwareDescription = "HP 10/100VG LAN Adapter Driver"
ProductHardwareJ2585ADIOescription = "HP J2585A 10/100VG PCI LAN Adapter"
;ProductHardwareJ2585ASLOTDescription = "HP J2585A 10/100VG PCI LAN Adapter"
FunctionTitle   = $($(Option)FunctionTitle)
;IRQList  = ^($(Option)IRQChoices, 1)
;IRQValues = ^($(Option)IRQChoices, 2)
IOBaseAddrList = ^($(Option)IOBaseAddrChoices, 1)
IOBaseAddrValues = ^($(Option)IOBaseAddrChoices, 2)
;MemoryMapList = ^($(Option)MemoryMapChoices,1)
;MemoryMapValues = ^($(Option)MemoryMapChoices,2)
;AdapterTypeValue = ^($(Option)AdapterType, 2)
;J2585ASLOTAdapterType = 4
J2585AIOAdapterType = 3
;J2585ASLOTCombo1Label = "&Slot Number:"
J2585AIOCombo1Label = "Base I/&O Address:"
AdapterTypeValue = $($(Option)AdapterType)
;J2585ASLOTBaseAddress = "SlotNumber"
J2585AIOBaseAddress = "IoBaseAddress"
;J2585AIRQDefault = 1
J2585AIOIOBaseAddrDefault = 9
;J2585ASLOTIOBaseAddrDefault = 1
;J2585AMemoryMapDefault = 1
[DialogConstantsENG]
Help        = "Help"
Exit        = "Cancel"
OK          = "OK"
HelpContext = ""
Continue    = "Continue"
Cancel      = "Cancel"
[FileDependentDlgENG]
DlgType = "RadioCombination"
DlgTemplate = "HPVG"
Caption = $(FunctionTitle)
DlgText = "Please select values for the following fields:"
;Combo1Label = "&Interrupt Channel:"
;Combo2Label = "Base I/&O Address:"
Combo1Label = $($(Option)Combo1Label)
;Combo1List = $(IRQList)
;Combo1Out  = $(IRQValue)
Combo1List = $(IOBaseAddrList)
Combo1Out  = $(IOBaseAddrValue)
ComboListItemsIn  = {Combo1List}
ComboListItemsOut = {Combo1Out}
EditTextIn = ""
EditTextLim = ""
CBOptionsGreyed = {}
NotifyFields = {NO, NO}
;Help Stuff
MinID = 1
MaxID = 6000
HelpContext = 5100
[J2585AIRQChoices]
IRQ_1 = "3",3
IRQ_2 = "4",4
IRQ_3 = "5",5
IRQ_4 = "6",6
IRQ_5 = "7",7
IRQ_6 = "9",9
IRQ_7 = "10",10
IRQ_8 = "11",11
IRQ_9 = "12",12
IRQ_10 = "15",15
[J2585AIOIOBaseAddrChoices]
IOBase_1  = "0x100",256
IOBase_2  = "0x140",320
IOBase_3  = "0x180",384
IOBase_4  = "0x1c0",448
IOBase_5  = "0x200",512
IOBase_6  = "0x240",576
IOBase_7  = "0x280",640
IOBase_8  = "0x2c0",704
IOBase_9  = "0x300",768
IOBase_10  = "0x340",832
IOBase_11  = "0x380",896
IOBase_12  = "0x400",1024
IOBase_13  = "0x500",1280
IOBase_14  = "0x600",1536
IOBase_15  = "0x700",1792
IOBase_16  = "0x800",2048
IOBase_17  = "0x900",2304
IOBase_18  = "0xA00",2560
IOBase_19  = "0xB00",2816
IOBase_20  = "0xC00",3072
IOBase_21  = "0xD00",3328
IOBase_22  = "0xE00",3584
IOBase_23  = "0xF00",3840
IOBase_24  = "0x1000",4096
IOBase_25  = "0x1100",4352
IOBase_26  = "0x1200",4608
IOBase_27  = "0x1300",4864
IOBase_28  = "0x1400",5120
IOBase_29  = "0x1500",5376
IOBase_30  = "0x1600",5632
IOBase_31  = "0x1700",5888
IOBase_32  = "0x1800",6144
IOBase_33  = "0x1900",6400
IOBase_34  = "0x1A00",6656
IOBase_35  = "0x1B00",6912
IOBase_36  = "0x1C00",7168
IOBase_37  = "0x1D00",7424
IOBase_38  = "0x1E00",7680
IOBase_39  = "0x1F00",7936
IOBase_40  = "0x2000",8192
IOBase_41  = "0x2100",8448
IOBase_42  = "0x2200",8704
IOBase_43  = "0x2300",8960
IOBase_44  = "0x2400",9216
IOBase_45  = "0x2500",9472
IOBase_46  = "0x2600",9728
IOBase_47  = "0x2700",9984
IOBase_48  = "0x2800",10240
IOBase_49  = "0x2900",10496
IOBase_50  = "0x2A00",10752
IOBase_51  = "0x2B00",11008
IOBase_52  = "0x2C00",11264
IOBase_53  = "0x2D00",11520
IOBase_54  = "0x2E00",11776
IOBase_55  = "0x2F00",12032
IOBase_56  = "0x3000",12288
IOBase_57  = "0x3100",12544
IOBase_58  = "0x3200",12800
IOBase_59  = "0x3300",13056
IOBase_60  = "0x3400",13312
IOBase_61  = "0x3500",13568
IOBase_62  = "0x3600",13824
IOBase_63  = "0x3700",14080
IOBase_64  = "0x3800",14336
IOBase_65  = "0x3900",14592
IOBase_66  = "0x3A00",14848
IOBase_67  = "0x3B00",15104
IOBase_68  = "0x3C00",15360
IOBase_69  = "0x3D00",15616
IOBase_70  = "0x3E00",15872
IOBase_71  = "0x3F00",16128
IOBase_72  = "0x4000",16384
IOBase_73  = "0x4100",16640
IOBase_74  = "0x4200",16896
IOBase_75  = "0x4300",17152
IOBase_76  = "0x4400",17408
IOBase_77  = "0x4500",17664
IOBase_78  = "0x4600",17920
IOBase_79  = "0x4700",18176
IOBase_80  = "0x4800",18432
IOBase_81  = "0x4900",18688
IOBase_82  = "0x4A00",18944
IOBase_83  = "0x4B00",19200
IOBase_84  = "0x4C00",19456
IOBase_85  = "0x4D00",19712
IOBase_86  = "0x4E00",19968
IOBase_87  = "0x4F00",20224
IOBase_88  = "0x5000",20480
IOBase_89  = "0x5100",20736
IOBase_90  = "0x5200",20992
IOBase_91  = "0x5300",21248
IOBase_92  = "0x5400",21504
IOBase_93  = "0x5500",21760
IOBase_94  = "0x5600",22016
IOBase_95  = "0x5700",22272
IOBase_96  = "0x5800",22528
IOBase_97  = "0x5900",22784
IOBase_98  = "0x5A00",23040
IOBase_99  = "0x5B00",23296
IOBase_100  = "0x5C00",23552
IOBase_101  = "0x5D00",23808
IOBase_102  = "0x5E00",24064
IOBase_103  = "0x5F00",24320
IOBase_104  = "0x6000",24576
IOBase_105  = "0x6100",24832
IOBase_106  = "0x6200",25088
IOBase_107  = "0x6300",25344
IOBase_108  = "0x6400",25600
IOBase_109  = "0x6500",25856
IOBase_110  = "0x6600",26112
IOBase_111  = "0x6700",26368
IOBase_112  = "0x6800",26624
IOBase_113  = "0x6900",26880
IOBase_114  = "0x6A00",27136
IOBase_115  = "0x6B00",27392
IOBase_116  = "0x6C00",27648
IOBase_116  = "0x6D00",27904
IOBase_118  = "0x6E00",28160
IOBase_119  = "0x6F00",28416
IOBase_120  = "0x7000",28672
IOBase_121  = "0x7100",28928
IOBase_122  = "0x7200",29184
IOBase_123  = "0x7300",29440
IOBase_124  = "0x7400",29696
IOBase_125  = "0x7500",29952
IOBase_126  = "0x7600",30208
IOBase_127  = "0x7700",30464
IOBase_128  = "0x7800",30720
IOBase_129  = "0x7900",30976
IOBase_130  = "0x7A00",31232
IOBase_131  = "0x7B00",31488
IOBase_132  = "0x7C00",31744
IOBase_133  = "0x7D00",32000
IOBase_134  = "0x7E00",32256
IOBase_135  = "0x7F00",32512
IOBase_136  = "0x8000",32768
IOBase_137  = "0x8100",33024
IOBase_138  = "0x8200",33280
IOBase_139  = "0x8300",33536
IOBase_140  = "0x8400",33792
IOBase_141  = "0x8500",34048
IOBase_142  = "0x8600",34304
IOBase_143  = "0x8700",34560
IOBase_144  = "0x8800",34816
IOBase_145  = "0x8900",35072
IOBase_146  = "0x8A00",35328
IOBase_147  = "0x8B00",35584
IOBase_148  = "0x8C00",35840
IOBase_149  = "0x8D00",36096
IOBase_150  = "0x8E00",36352
IOBase_151  = "0x8F00",36608
IOBase_152  = "0x9000",36864
IOBase_153  = "0x9100",37120
IOBase_154  = "0x9200",37376
IOBase_155  = "0x9300",37632
IOBase_156  = "0x9400",37888
IOBase_157  = "0x9500",38144
IOBase_158  = "0x9600",38400
IOBase_159  = "0x9700",38656
IOBase_160  = "0x9800",38912
IOBase_161  = "0x9900",39168
IOBase_162  = "0x9A00",39424
IOBase_163  = "0x9B00",39680
IOBase_164  = "0x9C00",39936
IOBase_165  = "0x9D00",40192
IOBase_166  = "0x9E00",40448
IOBase_167  = "0x9F00",40704
IOBase_168  = "0xA000",40960
IOBase_169  = "0xA100",41216
IOBase_170  = "0xA200",41472
IOBase_171  = "0xA300",41728
IOBase_172  = "0xA400",41984
IOBase_173  = "0xA500",42240
IOBase_174  = "0xA600",42496
IOBase_175  = "0xA700",42752
IOBase_176  = "0xA800",43008
IOBase_177  = "0xA900",43264
IOBase_178  = "0xAA00",43520
IOBase_179  = "0xAB00",43776
IOBase_180  = "0xAC00",44032
IOBase_181  = "0xAD00",44288
IOBase_182  = "0xAE00",44544
IOBase_183  = "0xAF00",44800
IOBase_184  = "0xB000",45056
IOBase_185  = "0xB100",45312
IOBase_186  = "0xB200",45568
IOBase_187  = "0xB300",45824
IOBase_188  = "0xB400",46080
IOBase_189  = "0xB500",46336
IOBase_190  = "0xB600",46592
IOBase_191  = "0xB700",46848
IOBase_192  = "0xB800",47104
IOBase_193  = "0xB900",47360
IOBase_194  = "0xBA00",47616
IOBase_195  = "0xBB00",47872
IOBase_196  = "0xBC00",48128
IOBase_197  = "0xBD00",48384
IOBase_198  = "0xBE00",48640
IOBase_199  = "0xBF00",48896
IOBase_200  = "0xC000",49152
IOBase_201  = "0xC100",49408
IOBase_202  = "0xC200",49664
IOBase_203  = "0xC300",49920
IOBase_204  = "0xC400",50176
IOBase_205  = "0xC500",50432
IOBase_206  = "0xC600",50688
IOBase_207  = "0xC700",50944
IOBase_208  = "0xC800",51200
IOBase_209  = "0xC900",51456
IOBase_210  = "0xCA00",51712
IOBase_211  = "0xCB00",51968
IOBase_212  = "0xCC00",52224
IOBase_213  = "0xCD00",52480
IOBase_214  = "0xCE00",52736
IOBase_215  = "0xCF00",52992
IOBase_216  = "0xD000",53248
IOBase_217  = "0xD100",53504
IOBase_218  = "0xD200",53760
IOBase_219  = "0xD300",54016
IOBase_220  = "0xD400",54272
IOBase_221  = "0xD500",54528
IOBase_222  = "0xD600",54784
IOBase_223  = "0xD700",55040
IOBase_224  = "0xD800",55296
IOBase_225  = "0xD900",55552
IOBase_226  = "0xDA00",55898
IOBase_227  = "0xDB00",56064
IOBase_228  = "0xDC00",56320
IOBase_229  = "0xDD00",56576
IOBase_230  = "0xDE00",56832
IOBase_231  = "0xDF00",57088
IOBase_232  = "0xE000",57344
IOBase_233  = "0xE100",57600
IOBase_234  = "0xE200",57856
IOBase_235  = "0xE300",58112
IOBase_236  = "0xE400",58368
IOBase_237  = "0xE500",58624
IOBase_238  = "0xE600",58880
IOBase_239  = "0xE700",59136
IOBase_240  = "0xE800",59392
IOBase_241  = "0xE900",59648
IOBase_242  = "0xEA00",59904
IOBase_243  = "0xEB00",60160
IOBase_244  = "0xEC00",60416
IOBase_245  = "0xED00",60672
IOBase_246  = "0xEE00",60928
IOBase_247  = "0xEF00",61184
IOBase_248  = "0xF000",61440
IOBase_259  = "0xF100",61696
IOBase_240  = "0xF200",61952
IOBase_251  = "0xF300",62208
IOBase_252  = "0xF400",62464
IOBase_253  = "0xF500",62720
IOBase_254  = "0xF600",62976
IOBase_255  = "0xF700",63232
IOBase_256  = "0xF800",63488
IOBase_257  = "0xF900",63744
IOBase_258  = "0xFA00",64000
IOBase_259  = "0xFB00",64256
IOBase_260  = "0xFC00",64512
IOBase_261  = "0xFD00",64768
IOBase_262  = "0xFE00",65024
IOBase_263  = "0xFF00",65280

[J2585ASLOTIOBaseAddrChoices]
IOBase_1  = "1",1
IOBase_2  = "2",2
IOBase_3  = "3",3
IOBase_4  = "4",4
IOBase_5  = "5",5
IOBase_6  = "6",6
IOBase_7  = "7",7
IOBase_8  = "8",8
IOBase_9  = "9",9
IOBase_10  = "10",10
IOBase_11  = "11",11
IOBase_12  = "12",12
IOBase_13  = "13",13
IOBase_14  = "14",14
IOBase_15  = "15",15
IOBase_16  = "16",16
IOBase_17  = "17",17
IOBase_18  = "18",18
IOBase_19  = "19",19

;[J2585AAdapterType]
;J2585AIO = 4
;J2585ASLOT = 3
