;
; Jan. 4, 95
; Fixed so oemsetup will read from a subdirectory
;
[Identification]
OptionType = NetAdapter
[PlatformsSupported]
ISA
EISA
MCA
[Options]
TR2KNDIS
;*******************************************************************
;
; Constants for using dialogs
;
;*******************************************************************
[FileConstants]
;
; Product Information
;
Manufacturer = "Racore"
ProductMajorVersion = "4"
ProductMinorVersion = "12"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
;
; Software Configuration Registry Information
;
ProductSoftwareName = "Tr2kndis"
ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\tr2kndis.sys"
NetRuleSoftwareType = "tr2kndisSys ndisDriver tr2kndisDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """Tr2kndisSys"" yes no container"
NetRuleSoftwareClass = {"tr2kndisDriver basic"}
NetRuleSoftwareBindable = {"tr2kndisDriver tr2kndisAdapter non exclusive 100"}
;
; Hardware Configuration Registry Information
;
ProductHardwareName = "Tr2kndis"
NetRuleHardwareType = "tr2kndis tr2kndisAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass = {"tr2kndisAdapter basic"}
;
; Registry Keys
;
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
;
; Filenames
;
UtilityInf = "UTILITY.INF"
ParamInf = "NCPARAM.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "driver"
Exit_Code = 0
;
; Message files
;
NetEventDLL = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
[GeneralConstants]
;
; Program flow variables
;
from = ""
to = ""
;
; Exit codes
;
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
;
; Misc. global variables
;
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
;---------------------------------------------------------------------------
; 1. Identify
;
; DESCRIPTION: To verify that this INF deals with the same type of options
; as we are choosing currently.
;
; INPUT: None
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
; $($R1): Option Type (COMPUTER ...)
; $($R2): Diskette description
;---------------------------------------------------------------------------
[Identify]
Set !G:DebugOutputControl = 1
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Debug-Output "*********************Identify Section *****************"
Return $(Status) $(Identifier) $(Media)
;------------------------------------------------------------------------
; 2. ReturnOptions:
;
; DESCRIPTION: To return the option list supported by this INF and the
; localised text list representing the options.
;
;
; INPUT: $($0): Language used. ( ENG | FRN | ... )
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE
; STATUS_FAILED
; STATUS_NOTSUPPORTED
;
; $($R1): Option List
; $($R2): Option Text List
;------------------------------------------------------------------------
[ReturnOptions]
Set !G:DebugOutputControl = 1
Debug-Output "*********************Return Options *****************"
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
;
; Determine if requested language is supported.
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
ifstr(i) $($1) == ""
goto returnoptions
endif
;
; Determine if requested platform is supported
;
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
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;------------------------------------------------------------------------
;
; InstallOption:
;
; This section is shelled to by main installation processing
; or by NCPASHEL.INF during reconfig, removal, update, etc.
;
;
; FUNCTION: To copy files representing Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
; $($2): SourceDirectory
; $($3): AddCopy (YES | NO)
; $($4): DoCopy (YES | NO)
; $($5): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;
;------------------------------------------------------------------------
[InstallOption]
Set !G:DebugOutputControl = 1
Debug-Output "*********************InstallOption*****************"
set Status = STATUS_FAILED
;
; get parameters
;
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
;
; Check for language support
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
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
;
; so far, so good
;
set CommonStatus = STATUS_SUCCESSFUL
EndWait
;
;
Begin = +
Debug-Output "begin"
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 CommonStatus = STATUS_REBOOT
set StartLabel = configureadapter
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Debug-Output "Cannot configure the Tr2kndis 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
;
; Set default values for adapter paramters
;
set DMAChannelValue = 99
set MemoryValue = 99
set IOBaseAddrValue = *($(IOBaseAddrList), 1)
set IrqValue = *($(IRQList), 1)
set NetworkAddressValue = ""
set Bit16Value = 0
set Inst8Value = 0
set SpeedValue = 16
set NoConfigValue = 0
set PcmciaIntfValue = 0
set PcmciaSlotValue = 0
set PcmciaValue = 0
;
; Go to the request operation
;
Set from = $(fatal)
Set to = $(fatal)
Goto $(StartLabel)
;-----------------------------------------------
; Installation Section
;-----------------------------------------------
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
;
; Determine if same version is already installed
;
Ifstr $(KeyProduct) != $(KeyNull)
;
; Same version already installed
;
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
;
; Can not install same software again
;
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
;
; Add a new adapter card?
;
Shell $(UtilityInf), CardExistedDlg
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
ifstr(i) $($R1) != "OK"
set CommonStatus = STATUS_USERCANCEL
goto end
endif
set OldVersionExisted = $(TRUE)
endif
endif
;
; Copy files
;
ifint $(OldVersionExisted) != $(TRUE)
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), ""
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_FAILED
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto nonfatalinfo
Endif
Set SrcDir = $($R1)
Debug-Output "DllLoad: SrcDir <"$(SrcDir)">"
install "Install-Option"
endif
goto adapteroptions
;-----------------------------------------------
; Configuration Section
;-----------------------------------------------
;
; Get the current values of all the parameters
;
configureadapter = +
Debug-Output "INF: Configure Adapter"
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
;
; Get the other paramters
;
Debug-Output "INF: Shelling to FindService"
Shell $(UtilityInf) FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
Ifstr(i) $($R0) != NO_ERROR
Debug-Output "INF: FindService Shell error: "$($R0)
Goto fatalregistry
endif
Set KeyParameters = $($R2)
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
set OldVersionExisted = $(TRUE)
set ValueName = ""
set ValueData = ""
set ValueList = {}
;
; Get the old values
;
EnumRegValue $(KeyParameters) ValueList
ForListDo $(ValueList)
set ValueItem = $($)
set ValueName = *($(ValueItem),1)
set ValueData = *($(ValueItem),4)
ifstr(i) $(ValueName) == "Port"
set IOBaseAddrIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "Bit16"
set Bit16Value = $(ValueData)
else-ifstr(i) $(ValueName) == "Inst8"
set Inst8Value = $(ValueData)
else-ifstr(i) $(ValueName) == "DMA"
set DMAChannelIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "INT"
set IrqIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "Pcmcia"
set PcmciaValue = $(ValueData)
else-ifstr(i) $(ValueName) == "PcmciaIntf"
set PcmciaIntfValue = $(ValueData)
else-ifstr(i) $(ValueName) == "Speed"
set SpeedValue = $(ValueData)
else-ifstr(i) $(ValueName) == "Memory"
set MemoryValue = $(ValueData)
else-ifstr(i) $(ValueName) == "NoConfig"
set NoConfigValue = $(ValueData)
else-ifstr(i) $(ValueName) == "PCMCIASlot"
set PcmciaSlotIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "NetworkAddress"
Debug-Output "Found NetAddr <"$(ValueData)">"
set NetworkAddressValue = $(ValueData)
endif
EndForListDo
;
; Set the parameter list so they have the current values at the top
; of the list. This will allow the display of the current values not
; the default values in the input dialog.
;
LoadLibrary "Disk 1" $(DialogDllName) hLib
;
; Setup the first dialog
;
read-syms FileConfigDlg$(!STF_LANGUAGE)
set IOBaseAddrHex = *($(IOBaseAddrList), ~($(IOBaseAddrValues), $(IOBaseAddrIndex) ))
set IrqValue = *($(IRQList), ~($(IRQValues), $(IrqIndex) ))
set DMATextValue = *($(DMAChannelList), ~($(DMAChannelValues), $(DMAChannelIndex) ))
set MemoryHex = *($(MemoryList), ~($(MemoryValues), $(MemoryValue) ))
set PcmciaSlotValue = *($(PcmciaSlotList), ~($(PcmciaSlotValues), $(PcmciaSlotIndex) ))
Debug-Output "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
Debug-Output "INF: IOBaseAddrIndex <"$(IOBaseAddrIndex)"> IOBaseAddrHex <"$(IOBaseAddrHex)">"
Debug-Output "INF: IrqIndex <"$(IrqIndex)"> IrqValue <"$(IrqValue)">"
Debug-Output "INF: DMAChannelIndex <"$(DMAChannelIndex)"> DMATextValue <"$(DMATextValue)">"
Debug-Output "INF: MemoryValue <"$(MemoryValue)"> MemoryHex <"$(MemoryHex)">"
Debug-Output "INF: PcmciaSlotValue <"$(PcmciaSlotValue)">"$(PcmciaSlotIndex)">"
Debug-Output "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
;
; build combo1list and combo1out with one occurrance of the current value
; of the port.
;
set NewListHex = $(IOBaseAddrHex)
set NewListValues = $(IOBaseAddrIndex)
ForListDo $(IOBaseAddrValues)
set CurrVal = $($)
ifint $(CurrVal) != $(IOBaseAddrIndex)
set HexValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues), $(CurrVal) ))
set NewListHex = >($(NewListHex), $(HexValue))
set NewListValues = >($(NewListValues), $(CurrVal) )
endif
EndForListDo
set Combo1List = $(NewListHex)
set Combo1Out = $(NewListValues)
Debug-Output "INF: Finished setting up io "
set NewIntList = $(IrqValue)
set NewListValues = $(IrqIndex)
Debug-Output "NewIntList <"$(NewIntList)"> NewListValues <"$(NewListValues)">"
ForListDo $(IRQValues)
set CurrVal = $($)
ifint $(CurrVal) != $(IrqIndex)
set NewValue = *($(IRQList), ~($(IRQValues), $(CurrVal) ))
set NewIntList = >($(NewIntList), $(NewValue))
set NewListValues = >($(NewListValues), $(CurrVal) )
endif
EndForListDo
set Combo2List = $(NewIntList)
set Combo2Out = $(NewListValues)
set NewList = $(DMATextValue)
set NewListValues = $(DMAChannelIndex)
ForListDo $(DMAChannelValues)
set CurrVal = $($)
ifint $(CurrVal) != $(DMAChannelIndex)
set NewValue = *($(DMAChannelList), ~($(DMAChannelValues), $(CurrVal) ))
set NewList = >($(NewList), $(NewValue))
set NewListValues = >($(NewListValues), $(CurrVal) )
endif
EndForListDo
set Combo3List = $(NewList)
set Combo3Out = $(NewListValues)
;
; build combo4list and combo4out with one occurrance of the current value
; of the memory.
;
set NewListHex = $(MemoryHex)
set NewListValues = $(MemoryValue)
ForListDo $(MemoryValues)
set CurrVal = $($)
ifint $(CurrVal) != $(MemoryValue)
set HexValue = *($(MemoryList), ~($(MemoryValues), $(CurrVal) ))
set NewListHex = >($(NewListHex), $(HexValue))
set NewListValues = >($(NewListValues), $(CurrVal) )
endif
EndForListDo
set Combo4List = $(NewListHex)
set Combo4Out = $(NewListValues)
set NewSlotList = $(PcmciaSlotValue)
set NewListValues = $(PcmciaSlotIndex)
Debug-Output "NewSlotList <"$(NewSlotList)"> NewListValues <"$(NewListValues)">"
ForListDo $(PcmciaSlotValues)
set CurrVal = $($)
ifint $(CurrVal) != $(PcmciaSlotIndex)
set NewValue = *($(PcmciaSlotList), ~($(PcmciaSlotValues), $(CurrVal) ))
set NewSlotList = >($(NewSlotList), $(NewValue))
set NewListValues = >($(NewListValues), $(CurrVal) )
endif
EndForListDo
set Combo5List = $(NewSlotList)
set Combo5Out = $(NewListValues)
set ComboListItemsIn = {Combo1List, Combo2List, Combo3List, Combo4List, Combo5List}
set ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out, Combo5Out}
Debug-Output "INF: Setting Up speed "
Ifint $(SpeedValue) == 16
set RadioIn = {1}
Else
set RadioIn = {2}
Endif
Debug-Output "NetworkAddressValue <"$(NetworkAddressValue)">"
ifstr(i) $(NetworkAddressValue) == ""
set EditTextIn = {""}
else
set EditTextIn = {$(NetworkAddressValue)}
endif
ifint $(Bit16Value) == 0
set CheckItemsIn = { OFF }
else
set CheckItemsIn = { ON }
endif
ifint $(Inst8Value) == 0
set CheckItemsIn = >($(CheckItemsIn), OFF)
else
set CheckItemsIn = >($(CheckItemsIn), ON)
endif
ifint $(NoConfigValue) == 0
set CheckItemsIn = >($(CheckItemsIn), OFF)
else
set CheckItemsIn = >($(CheckItemsIn), ON)
endif
ifint $(PcmciaValue) == 0
set CheckItemsIn = >($(CheckItemsIn), OFF)
else
set CheckItemsIn = >($(CheckItemsIn), ON)
endif
ifint $(PcmciaIntfValue) == 0
set CheckItemsIn = >($(CheckItemsIn), OFF)
else
set CheckItemsIn = >($(CheckItemsIn), ON)
endif
Debug-Output "Bit16 <"$(Bit16Value)"> Inst8 <"$(Inst8Value)">"
Debug-Output "NoConfig <"$(NoConfigValue)">"
Debug-Output "Pcmcia <"$(PcmciaValue)">"
Debug-Output "PcmciaIntf <"$(PcmciaIntfValue)">"
Debug-Output "CheckItemsIn <"$(CheckItemsIn)">"
Debug-Output "INF: Finished setting up dialog "
goto adapterdialog
adapteroptions = +
Debug-Output "Reading dialog for tr2kndis"
;
; Load the tr2kndis dll
;
LoadLibrary "Disk 1" $(DialogDllName) hLib
;
; Setup the first dialog
;
read-syms FileDependentDlg$(!STF_LANGUAGE)
;
; Display the dialog
;
adapterdialog = +
Debug-Output "Starting dialog for tr2kndis"
ui start "InputDlg" $(hLib)
;mdw FreeLibrary $(hLib)
ifstr(i) $(DLGEVENT) == "CONTINUE"
;
; Set config parameters
;
set IOBaseAddrIndex = $(Combo1Out)
set IrqIndex = $(Combo2Out)
set DMAChannelIndex = $(Combo3Out)
set MemoryIndex = $(Combo4Out)
set PcmciaSlotIndex = $(Combo5Out)
set SpeedIndex = *($(RadioOut),1)
set Bit16Index = *($(CheckItemsOut),1)
set Inst8Index = *($(CheckItemsOut),2)
set NoConfigIndex = *($(CheckItemsOut),3)
set PcmciaIndex = *($(CheckItemsOut),4)
set PcmciaIntfIndex = *($(CheckItemsOut),5)
Debug-Output "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
Debug-Output "Speed <"$(SpeedValue)"> Memory <"$(MemoryIndex)">"
Debug-Output "Bit16Index<"$(Bit16Index)"> Inst8Index <"$(Inst8Index)">"
Debug-Output "******IO Index 1 ****<"$(IOBaseAddrIndex)">*****"
Debug-Output "******IRQ Index ****<"$(IrqIndex)">*****"
Debug-Output "PcmciaSlotIndex<"$(PcmciaSlotIndex)">"
Debug-Output "NoConfigIndex<"$(NoConfigIndex)">"
Debug-Output "PcmciaIndex<"$(PcmciaIndex)">"
Debug-Output "PcmciaIntfIndex<"$(PcmciaIntfIndex)">"
Debug-Output "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
Ifint $(SpeedIndex) == 1
Set SpeedValue = 16
else-Ifint $(SpeedIndex) == 2
Set SpeedValue = 4
Endif
;
; Save network address, it maybe null
;
set NetworkAddressValue = *($(EditTextOut),1)
;
; If operator selected fast access check box set bit16
;
Ifstr(i) $(Bit16Index) == "ON"
Set Bit16Value = 1
else
Set Bit16Value = 0
Endif
;
; If operator selected 16 bit pseudodma check box set inst8
;
Ifstr(i) $(Inst8Index) == "ON"
Set Inst8Value = 1
else
Set Inst8Value = 0
Endif
;
; If operator select NoConfig check box is set
;
Ifstr(i) $(NoConfigIndex) == "ON"
Set NoConfigValue = 1
else
Set NoConfigValue = 0
Endif
;
; If operator select pcmcia check box is set
;
Ifstr(i) $(PcmciaIndex) == "ON"
Set PcmciaValue = 1
else
Set PcmciaValue = 0
Endif
;
; If operator select pcmcia interface check box is set
; 1 -> databook interface 0 -> intel interface
;
Ifstr(i) $(PcmciaIntfIndex) == "ON"
Set PcmciaIntfValue = 1
else
Set PcmciaIntfValue = 0
Endif
Debug-Output "Config IRQ <"$(IrqIndex)"> IO <"$(IOBaseAddrIndex)"> DMA <"$(DMAChannelIndex)">"
Debug-Output "Speed <"$(SpeedValue)"> Bit16 <"$(Bit16Value)">"
Debug-Output "Inst8 <"$(Inst8Value)"> IrqValue <"$(IrqValue)">"
Debug-Output "Pcmcia<"$(PcmciaValue)">"
Debug-Output "PcmciaIntf<"$(PcmciaIntfValue)">"
Debug-Output "NoConfigIndex<"$(NoConfigIndex)">"
;
; clear the dialog from the screen
;
ui pop 1
FreeLibrary $(hLib)
else-ifstr(i) $(DLGEVENT) == "EXIT"
FreeLibrary $(hLib)
set CommonStatus = STATUS_USERCANCEL
Debug-Output "Action: cancel Bye."
ui pop 1
goto end
else
FreeLibrary $(hLib)
Debug-Output "Action: unknown. Bye."
ui pop 1
goto end
endif
;
; If installing, go create the necessary keys;
; if configuring, they're already open.
;
skipoptions =+
ifint $(OldVersionExisted) == $(TRUE)
ifstr(i) $(!NTN_InstallMode) == configure
goto writeparameters
endif
endif
StartWait
;
; Add Software Component
;
Debug-Output "Invoking AddSoftwareComponent"
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
;
; At this point:
; $R1 contains the product version key handle;
; $R2 contains the NetRules subkey handle;
; $R3 contains the new Services key handle; and
; $R4 contains the Parameters key
; $R5 contains the Linkage Key
;
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
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)}}
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 "Resgitry error: add value list."
goto fatalregistry
endif
endif
;
; Create the hardware entries and its corresponding service
;
Debug-Output "Invoking AddHardwareComponent <"$(STF_CONTEXTINFNAME)">"
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
;
; At this point:
; $R1 Registry key variable for HARDWARE\Netcard\(n)
; $R2 Registry key variable for HARDWARE\Netcard\(n)\\NetRules
; $R3 Registry key handle for <service>\Parameters key
; $R4 Adapter number assigned to adapter
; $R5 Service name generated by combining svc name with adapter number
;
set KeyParameters = $($R3)
set KeyAdapterRules = $($R2)
set AdapterNumber = $($R4)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
{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)}}
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 "Resgitry error: add value list."
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyAdapterRules)
goto fatalregistry
endif
CloseRegKey $(KeyAdapterRules)
goto writeparameters
;
; REQUIRED: $(KeyParameters) contains service Parameters key handle
;
writeparameters = +
;;;
;;; When pci bios are finished use the code that is commented out.
;;; Right now the ndis driver does not handle bustype pci very well. 7/14/95
Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusInterfaceType) $(BusNumber)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
;
; In a machine with both pci and isa bus getbustypedialog is returning
; a zero instead of a 1 (isa) when the operator selects isa bus. 8/1/95 MDW
;
set BusTypeNum = $($R1)
set BusNumber = $($R2)
;;; Shell $(UtilityInf), GetBusTypeNum
;;; set BusTypeNum = $($R1)
;;; ifint $($ShellCode) != $(!SHELL_CODE_OK)
;;; Debug-Output "ShellCode error."
;;; goto ShellCodeError
;;; endif
set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
set IrqValue = *($(IRQValues), ~($(IRQList),$(IrqIndex)))
set DMAChannelValue = *($(DMAChannelValues), ~($(DMAChannelList),$(DMAChannelIndex)))
set MemoryValue = *($(MemoryValues), ~($(MemoryList),$(MemoryIndex)))
set PcmciaSlotValue = *($(PcmciaSlotValues), ~($(PcmciaSlotList),$(PcmciaSlotIndex)))
;
; The cardtype is set to the value of the enum type CardType in
; driversf.h in the drivers source. This allows the driver to know
; what type of card it is starting on since the bustype is always isa.
; At this time NdisMInitInterrupt fails if it is passed as bustype other
; than isa.
;
Set CardType = 0
ifint $(IOBaseAddrValue) == 98
Set CardType = 11
Debug-Output "IO Addr is PCI"
endif
ifint $(IOBaseAddrValue) == 96
; Card is an 8120
Set CardType = 8
Debug-Output "IO Addr is EISA"
endif
;;;;
;;;;
Debug-Output "*****************************************************"
Debug-Output "Config IRQ <"$(IrqIndex)"> IO <"$(IOBaseAddrIndex)"> DMA <"$(DMAChannelValue)">"
Debug-Output "Speed <"$(SpeedValue)"> Bit16 <"$(Bit16Value)">"
Debug-Output "Inst8 <"$(Inst8Value)">"
Debug-Output "IrqValue <"$(IrqValue)">"
Debug-Output "NoConfig <"$(NoConfigValue)">"
Debug-Output "*****************************************************"
Set NewValueList = {{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{Int,$(NoTitle),$(!REG_VT_DWORD),$(IrqValue)},+
{Dma,$(NoTitle),$(!REG_VT_DWORD),$(DMAChannelValue)},+
{Speed,$(NoTitle),$(!REG_VT_DWORD),$(SpeedValue)},+
{Bit16,$(NoTitle),$(!REG_VT_DWORD),$(Bit16Value)},+
{Inst8,$(NoTitle),$(!REG_VT_DWORD),$(Inst8Value)},+
{Memory,$(NoTitle),$(!REG_VT_DWORD),$(MemoryValue)},+
{Pcmcia,$(NoTitle),$(!REG_VT_DWORD),$(PcmciaValue)},+
{PcmciaIntf,$(NoTitle),$(!REG_VT_DWORD),$(PcmciaIntfValue)},+
{PcmciaSlot,$(NoTitle),$(!REG_VT_DWORD),$(PcmciaSlotValue)},+
{Port,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)} +
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),0} +
{NoConfig,$(NoTitle),$(!REG_VT_DWORD),$(NoConfigValue)} +
{CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)}, +
{MediaType,$(NoTitle),$(!REG_VT_DWORD),2}, +
{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddressValue)}}
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 section
;-----------------------------------------------
removeadapter = +
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
;
; Remove Software Componet
;
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
;-----------------------------------------------
; Upgrade Software section
;-----------------------------------------------
UpgradeSoftware = +
Debug-Output "*******************UpGrade Software********************"
Debug-Output "*******************UpGrade Software********************"
Debug-Output "*******************UpGrade Software********************"
Debug-Output "*******************UpGrade Software********************"
Debug-Output "*******************UpGrade Software********************"
set Error = "UpgradeSoftware: Not implemented, Remove and Install"
goto fatal
;
; Escape hatches
;
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
;
; Registry is broken.... very bad if this happens
;
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 = $(ShellCodeErrorTitle)
set STF_MB_TEXT = $(ShellCodeErrorText)
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 = "OEMSETUP.INF"
Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
Debug-Output $(InfName)" IRQ_Level is "$(!p:IrqValue)
Debug-Output $(InfName)" DMAChannel is "$(!p:DMAChannelValue)
Debug-Output $(InfName)" Memory is "$(!p:MemoryValue)
Debug-Output $(InfName)" Bit16 "$(!p:Bit16Value)
Debug-Output $(InfName)" Inst8 "$(!p:Inst8Value)
Debug-Output $(InfName)" NoConfig"$(!p:NoConfigValue)
Debug-Output $(InfName)" Speed is "$(!p:SpeedValue)
Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
return
[Install-Option]
Debug-Output "Install Option"
;
; Copy files from diskette
; Files to copy: tr2kndis.sys and tr2kndis.dll
set STF_VITAL = ""
AddSectionKeyFileToCopyList Files-Tr2kndis 1 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionKeyFileToCopyList Files-Dll 1 $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
[Install-Update]
Debug-Output "Install Update"
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-Tr2kndis $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Source Media Descriptions]
1 = "Tr2kndis Install Disk" , TAGFILE = disk.id
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Inf]
2, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[Files-Tr2kndis]
1 = 1,TR2KNDIS.SYS
[Files-Dll]
1 = 1, tr2kndis.dll
[LanguagesSupported]
ENG
[OptionsTextENG]
TR2KNDIS = "TMS380/2000 Token Ring NDIS Driver"
[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:"
FunctionTitle = "TR2KNDIS Token Ring Adapter Card Setup"
ProductSoftwareDescription = "Tr2kndis Token Ring Adapter Driver"
ProductHardwareDescription = "TMS380/2000 Token Ring Adapter"
ProductSoftwareTitle = "Tr2kndis Token Ring Adapter Driver"
ProductHardwareTitle = "TMS380/2000 Token Ring Adapter"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)
ShellCodeErrorText = "Shell Code Error."
DialogDllName = "tr2kndis.dll"
IRQList = ^(IRQChoices, 1)
IRQValues = ^(IRQChoices, 2)
IOBaseAddrList = ^(IOBaseAddrChoices, 1)
IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
DMAChannelList = ^(DMAChannelChoices,1)
DMAChannelValues = ^(DMAChannelChoices,2)
MemoryList = ^(MemoryChoices,1)
MemoryValues = ^(MemoryChoices,2)
PcmciaSlotList = ^(PcmciaSlotChoices,1)
PcmciaSlotValues = ^(PcmciaSlotChoices,2)
SpeedList = ^(SpeedChoices,1)
SpeedValues = ^(SpeedChoices,2)
[DialogConstantsENG]
;Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[FileDependentDlgENG]
DlgText = "Please select values for the follwing fields:"
DlgType = "RadioCombination"
DlgTemplate = "CONFIGNDIS"
Caption = $(FunctionTitle)
CBOptionsGreyed = {}
NotifyFields = {NO, NO}
;HelpContext = $(!IDH_DB_OEMNADE2_INS)
Combo1Label = "I/O &Port Base Addr"
Combo2Label = "&IRQ Level"
Combo3Label = "&Dma Channel"
Combo4Label = "&Memory Address"
Combo5Label = "PCMCIA &Slot"
Edit1Label = "&Network Address"
Combo1List = $(IOBaseAddrList)
Combo1Out = $(IOBaseAddrValue)
Combo2List = $(IRQList)
Combo2Out = $(IRQValue)
Combo3List = $(DMAChannelList)
Combo3Out = $(DMAChannelValue)
Combo4List = $(MemoryList)
Combo4Out = $(MemoryValue)
Combo5List = $(PcmciaSlotList)
Combo5Out = $(PcmciaSlotValue)
Group1 = "Speed Setting"
Radio1 = "&16 M/s"
Radio2 = "&4 M/s"
CheckBox1 = "&Fast Access"
CheckBox2 = "8 &Bit PseudoDMA"
CheckBox3 = "No Configuration &Register"
CheckBox4 = "PCMCI&A"
CheckBox5 = "P&CMCIA Databook Interface"
CheckItemsIn = {OFF, OFF, OFF, OFF, OFF}
ComboListItemsIn = {Combo1List, Combo2List, Combo3List, Combo4List, Combo5List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out, Combo5Out}
EditTextIn = {""}
EditTextLim = {"",""}
RadioIn = {1}
[FileConfigDlgENG]
DlgText = "Please select values for the following fields:"
DlgType = "RadioCombination"
DlgTemplate = "CONFIGNDIS"
Caption = $(FunctionTitle)
CBOptionsGreyed = {}
NotifyFields = {NO, NO}
;HelpContext = $(!IDH_DB_OEMNADE2_INS)
Combo1Label = "I/O &Port Base Addr"
Combo2Label = "&IRQ Level"
Combo3Label = "&Dma Channel"
Combo4Label = "&Memory Address"
Combo5Label = "PCMCIA &Slot"
Edit1Label = "&Network Address"
Group1 = "Speed Setting"
Radio1 = "&16 M/s"
Radio2 = "&4 M/s"
CheckBox1 = "&Fast Access"
CheckBox2 = "8 &Bit PseudoDMA"
CheckBox3 = "No Configuration &Register"
CheckBox4 = "PCMCI&A"
CheckBox5 = "P&CMCIA Databook Interface"
EditTextLim = {"",""}
[IRQChoices]
IRQ_1 = "2",2
IRQ_2 = "3",3
IRQ_3 = "4",4
IRQ_4 = "5",5
IRQ_5 = "6",6
IRQ_6 = "7",7
IRQ_7 = "8",8
IRQ_8 = "10",10
IRQ_9 = "11",11
IRQ_10 = "12",12
IRQ_11 = "13",13
IRQ_12 = "14",14
IRQ_13 = "15",15
IRQ_14 = "Autodetect",98
[IOBaseAddrChoices]
IOBase_1 = "A20",2592
IOBase_2 = "1A20",6688
IOBase_3 = "2A20",10784
IOBase_4 = "3A20",14880
IOBase_5 = "A40",2624
IOBase_6 = "A60",2656
IOBase_7 = "A00",2560
IOBase_8 = "300",768
IOBase_9 = "320",800
IOBase_10 = "PCI",98
[DMAChannelChoices]
DMAChannel_1= "PseudoDMA",99
DMAChannel_2 = "1",1
DMAChannel_3 = "2",2
DMAChannel_4 = "3",3
DMAChannel_5 = "4",4
DMAChannel_6 = "5",5
DMAChannel_7 = "6",6
DMAChannel_8 = "7",7
DMAChannel_9 = "8",8
DMAChannel_10 = "9",9
DMAChannel_11= "10",10
DMAChannel_12= "11",11
DMAChannel_13= "12",12
DMAChannel_14= "13",13
DMAChannel_15= "14",14
DMAChannel_16= "15",15
DMAChannel_17= "16",16
DMAChannel_18= "Autodetect",98
[MemoryChoices]
Memory_1 = "No Memory",99
Memory_2 = "CC00",52224
Memory_3 = "D000",53248
Memory_4 = "D800",55296
Memory_5 = "DC00",56320
Memory_6 = "Autodetect",98
[PcmciaSlotChoices]
PcmciaSlot_1 = "A",0
PcmciaSlot_2 = "B",1
PcmciaSlot_3 = "C",2
PcmciaSlot_4 = "D",3