⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oemsetnt.old

📁 with serial bus (Universal Serial Bus) is used to apply USB peripherals connected to the mainframe e
💻 OLD
📖 第 1 页 / 共 2 页
字号:
;
; Oemsetnt.inf for PCMCIA/ATAPI adapter.
; Date: September 23, 1995
; Date: June 25, 1998 -- remove "statant" support for hdd, merge into
;                        "statpnt".
; Date: May 25, 1999 -- add in overide resource option
; Date: Sep 5,  1999 -- add in CardBus "stcbint" selection
; Date: Sep 11, 2000 -- change PCMCIA default irq to 7
;
;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with.  The different
; possible types are:
;
; COMPUTER, VIDEO, POINTER, KEYBOARD, LAYOUT, SCSI, TAPE, PRINTER, ...
;-----------------------------------------------------------------------

[Identification]
    OptionType = SCSI

;-----------------------------------------------------------------------
; LANGUAGES SUPPORTED
; -------------------
;
; The languages supported by the INF, For every language supported
; we need to have a separate text section for every displayable text
; section.
;
;-----------------------------------------------------------------------

[LanguagesSupported]
    ENG


;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the Option key names.  These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------

[Options]
    "statpnt"    = statpnt 
    "stcbint"    = stcbint 

;-----------------------------------------------------------------------
; OPTION TEXT SECTION
; -------------------
; These are text strings used to identify the option to the user.  There
; are separate sections for each language supported.  The format of the
; section name is "OptionsText" concatenated with the Language represented
; by the section.
;
;-----------------------------------------------------------------------

[OptionsTextENG]
    "statpnt"    = "Shining PCMCIA/CitiROM-ATA & ATAPI"
    "stcbint"    = "Shining CardBus/CitiROM-ATA & ATAPI"


;-----------------------------------------------------------------------------------------
; SCSI MINIPORT DRIVERS:
;
; Order of the information:
;
; Class driver = Type, Group, ErrorControl, Tag, EventMessageFile, TypesSupported
;
;-----------------------------------------------------------------------------------------

[MiniportDrivers]
    statpnt = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  1, %SystemRoot%\System32\IoLogMsg.dll , 7
    stcbint = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  1, %SystemRoot%\System32\IoLogMsg.dll , 7

;---------------------------------------------------------------------------
; 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]
    ;
    ;
    read-syms Identification

    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media      = #("Source Media Descriptions", 1, 1)

    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
;
;                $($R1): Option List
;                $($R2): Option Text List
;------------------------------------------------------------------------

[ReturnOptions]
    ;
    ;
    set Status        = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}

    ;
    ; Check if the language requested is supported
    ;
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
        goto returnoptions
    else
        set Status = STATUS_NOLANGUAGE
        goto finish_ReturnOptions
    endif

    ;
    ; form a list of all the options and another of the text representing
    ;

returnoptions = +
    set OptionList     = ^(Options, 0)
    set OptionTextList = ^(OptionsText$($0), 1)
    set Status         = STATUS_SUCCESSFUL

finish_ReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)


;
; 3. InstallOption:
;
; 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]

    ;===========================================================================
    ;registry changes for PCMCIA/ATAPI support under NT3.51, NT4.0 
	; Chris C. Wang September 23, 1996
	; Chris C. Wang June 20, 1998 - remove "statant" support


	set KeyName = "System\CurrentControlSet\Services\Pcmcia\DataBase"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) PcmciaKeyHandle
	ifstr(i) $(PcmciaKeyHandle) != ""
		OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\Shining" $(!REG_KEY_ALL_ACCESS) TestKeyHandle

; if first time install

		  ifstr(i) $(TestKeyHandle) == ""
			CreateRegKey $(PcmciaKeyHandle) {"Shining",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" AdptKeyHandle
				CreateRegKey $(AdptKeyHandle) {"PMIDE-M17",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" APAKeyHandle
				SetRegValue	$(APAKeyHandle) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(APAKeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
				CloseRegKey $(APAKeyHandle)
    ; PMIDE-ASC
				CreateRegKey $(AdptKeyHandle) {"PMIDE-ASC",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" APAKeyHandle2
				SetRegValue	$(APAKeyHandle2) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(APAKeyHandle2) {Driver,0,$(!REG_VT_SZ),"statpnt"}
				CloseRegKey $(APAKeyHandle2)
    ; CBSIDE-V3
				CreateRegKey $(AdptKeyHandle) {"CBSIDE-V3",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" APAKeyHandle3
				SetRegValue	$(APAKeyHandle3) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(APAKeyHandle3) {Driver,0,$(!REG_VT_SZ),"stcbint"}
				CloseRegKey $(APAKeyHandle3)


; if second time install
          else
		    OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\Shining\PMIDE-ASC" $(!REG_KEY_ALL_ACCESS) AdptKeyHandle
				SetRegValue	$(AdptKeyHandle) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(AdptKeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
		    CloseRegKey $(AdptKeyHandle)
		    OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\Shining\PMIDE-M17" $(!REG_KEY_ALL_ACCESS) AdptKeyHandle
				SetRegValue	$(AdptKeyHandle) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(AdptKeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
		    CloseRegKey $(AdptKeyHandle)
		    OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\Shining\CBSIDE-V3" $(!REG_KEY_ALL_ACCESS) AdptKeyHandle
				SetRegValue	$(AdptKeyHandle) {DeviceType,0,$(!REG_VT_SZ),"SCSI"}
				SetRegValue	$(AdptKeyHandle) {Driver,0,$(!REG_VT_SZ),"stcbint"}
		    CloseRegKey $(AdptKeyHandle)
		  endif

		CloseRegKey $(TestKeyHandle)
	endif
	CloseRegKey $(PcmciaKeyHandle)

	;end of PCMCIA Database registry changes
    ;===========================================================================

    ;===========================================================================
    ;registry changes for PCMCIA/ATAPI support under NT3.51, NT4.0 
	; Chris C. Wang September 23, 1996
	; Chris C. Wang June 20, 1998 - remove "statant" support

	set KeyName = "System\CurrentControlSet\Services"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) AdpterKeyHandle
	ifstr(i) $(AdpterKeyHandle) != ""
		OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\statpnt" $(!REG_KEY_ALL_ACCESS) Test2KeyHandle
		  ifstr(i) $(Test2KeyHandle) == ""
				CreateRegKey $(Test2KeyHandle) {"statpnt",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" Test3KeyHandle
				SetRegValue	$(Test3KeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
		        CloseRegKey $(Test3KeyHandle)
		  endif
	endif
	CloseRegKey $(AdpterKeyHandle)

	set KeyName = "System\CurrentControlSet\Services"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) AdpterKeyHandle
	ifstr(i) $(AdpterKeyHandle) != ""
		OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\stcbint" $(!REG_KEY_ALL_ACCESS) Test3KeyHandle
		  ifstr(i) $(Test3KeyHandle) == ""
				CreateRegKey $(Test2KeyHandle) {"stcbint",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" Test4KeyHandle
				SetRegValue	$(Test4KeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
		        CloseRegKey $(Test4KeyHandle)
		  endif
	endif
	CloseRegKey $(Test3KeyHandle)
	CloseRegKey $(AdpterKeyHandle)

    ;end of Adapter Database registry changes

    ;===========================================================================
    ;registry changes for PCMCIA/ATAPI support under NT3.51, NT4.0 
	; Chris C. Wang September 23, 1996
	; Chris C. Wang June 20, 1998 - remove "statant" support
	; Chris C. Wang June 20, 1998 - add in "PCMCIA" "InterruptMask" for
	;                               certain system

	set KeyName = "System\CurrentControlSet\Services"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) AdpterKeyHandle
	ifstr(i) $(AdpterKeyHandle) != ""
	  OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\Pcmcia" $(!REG_KEY_ALL_ACCESS) TestKeyHandle
	  ifstr(i) $(TestKeyHandle) != ""
	   SetRegValue	$(TestKeyHandle) {InterruptMask,0,$(!REG_VT_DWORD),23041}
	  endif
	  CloseRegKey $(TestKeyHandle)
	endif
	CloseRegKey $(AdpterKeyHandle)


    ;===========================================================================
    ;registry changes for PCMCIA/ATAPI support under NT3.51, NT4.0 
	; Chris C. Wang September 23, 1996
	; Chris C. Wang May 25, 1999, add in overide resources
	set KeyName = "System\CurrentControlSet\Services"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) AdpterKeyHandle
	ifstr(i) $(AdpterKeyHandle) != ""
		OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\statpnt" $(!REG_KEY_ALL_ACCESS) Test2KeyHandle
		  ifstr(i) $(Test2KeyHandle) == ""
				CreateRegKey $(Test2KeyHandle) {"statpnt",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" Test3KeyHandle
				SetRegValue	$(Test3KeyHandle) {Driver,0,$(!REG_VT_SZ),"statpnt"}
		        CloseRegKey $(Test3KeyHandle)
		  endif
	endif
	CloseRegKey $(AdpterKeyHandle)


	set KeyName = "System\CurrentControlSet\Services"
	OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) AdpterkeyHandle
	ifstr(i) $(AdpterKeyHandle) != ""
	  OpenRegKey $(!REG_H_LOCAL) "" $(KeyName)"\statpnt1" $(!REG_KEY_ALL_ACCESS) Test2KeyHandle

	  ifstr(i) $(Test2KeyHandle) == ""
	    CreateRegKey $(AdpterkeyHandle) {"statpnt1",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" Test3KeyHandle
		  CreateRegKey $(Test3KeyHandle) {"Parameters",0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" Test4KeyHandle
	        SetRegValue	$(Test4KeyHandle) {InterruptNumber,0,$(!REG_VT_DWORD),7}
	        SetRegValue	$(Test4KeyHandle) {IoBaseAddress,0,$(!REG_VT_DWORD),336}
	        SetRegValue	$(Test4KeyHandle) {IoLength,0,$(!REG_VT_DWORD),16}
	        SetRegValue	$(Test4KeyHandle) {Pcmcia,0,$(!REG_VT_DWORD),1}
	      CloseRegKey $(Test4KeyHandle)
	    CloseRegKey $(Test3KeyHandle)
	  endif
	  CloseRegKey $(Test2KeyHandle)
	endif
	CloseRegKey $(AdpterkeyHandle)
    ;end of Adapter Database registry changes
    ;===========================================================================
    ;
    ; Set default values for
    ;
    set Status = STATUS_FAILED
    ;
    ; Set default values for
    ;
    set Status = STATUS_FAILED
    set DrivesToFree = {}

    ;
    ; extract parameters
    ;
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)

    ;
    ; Check if the language requested is supported
    ;
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
    else
        set Status = STATUS_NOLANGUAGE
        goto finish_InstallOption
    endif
    read-syms Strings$($0)

    ;
    ; check to see if Option is supported.
    ;

    set OptionList = ^(Options, 0)
    ifcontains $(Option) in $(OptionList)
    else
        Debug-Output "SCSI.INF: SCSI option is not supported."
        goto finish_InstallOption
    endif
    set OptionList = ""

    ;
    ; Option has been defined already
    ;

    set MiniportDriver   =   #(Options,         $(Option),         1)
    set Type             = $(#(MiniportDrivers, $(MiniportDriver), 1))
    set Group            =   #(MiniportDrivers, $(MiniportDriver), 2)
    set ErrorControl     = $(#(MiniportDrivers, $(MiniportDriver), 3))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -