;/++
;
;Copyright (c) Oxford Semiconductor Inc.  All rights reserved.
;
;Abstract:
;    PCI Express MF WDF driver installation file.
;
;--*/


[Version]
Signature                   = "$Windows NT$"
Class                       = MultiportSerial
ClassGuid                   = {50906cb8-ba12-11d1-bf5d-0000f805f530}
Provider                    = %Oxsemi%
CatalogFile                 = MwPCIeMf.cat
DriverVer                   = 11/21/2018,16.54.54.143

[DestinationDirs]
DestinationDirs_SystemDir   = 11   ; %windir%\system32
DestinationDirs_DriversDir  = 12   ; %windir%\system32\drivers
CoInstaller_CopyFiles       = 11    ; %windir%\system32

[SourceDisksNames]
0=%Desc_0%



[ControlFlags]
ExcludeFromSelect           = *


[SourceDisksFiles]
MwPCIeMf.sys                = 0
MwPCIeSer.sys               = 0
MwPCIeUi.dll                = 0
MwPCIeSer.oxbe              = 0
MwPCIeSer.png               = 0
; make sure the number matches with SourceDisksNames
WdfCoinstaller01007.dll     = 0



[Manufacturer]
%Oxsemi%                    = Oxsemi,ntx86


; For Win2K
[Oxsemi]
%MfDesc%                    = MfInstSect,PCI\VEN_1B8A&DEV_0076&SUBSYS_00031B8A
                                        

; For XP and later
[Oxsemi.ntx86]
%MfDesc%                    = MfInstSect,PCI\VEN_1B8A&DEV_0076&SUBSYS_00031B8A

[MfInstSect]
CopyINF                     = MwPCIeSer.inf
CopyFiles                   = DestinationDirs_SystemDir,DestinationDirs_DriversDir


[DestinationDirs_SystemDir]
MwPCIeUi.dll
MwPCIeSer.oxbe
MwPCIeSer.png

[DestinationDirs_DriversDir]
MwPCIeMf.sys
MwPCIeSer.sys

[MfInstSect.HW]
AddReg                      = MfInstSect.HW_AddReg


[MfInstSect.Services]
AddService                  = MwPCIeMf,%SPSVCINST_ASSOCSERVICE%,MfInstSect.Services_AddService,EventLog_AddService

[MfInstSect.HW_AddReg]
; Support MSI
HKR,"Interrupt Management",%REG_KEYONLY%
HKR,"Interrupt Management\MessageSignaledInterruptProperties",%REG_KEYONLY%
HKR,"Interrupt Management\MessageSignaledInterruptProperties",MSISupported,%REG_DWORD%,1

[MfInstSect.Services_AddService]
ServiceType                 = %SERVICE_KERNEL_DRIVER%
StartType                   = %SERVICE_DEMAND_START%
ErrorControl                = %SERVICE_ERROR_NORMAL%
ServiceBinary               = %12%\MwPCIeMf.sys
LoadOrderGroup              = Extended base


[EventLog_AddService]
AddReg                      = EventLog_AddService_AddReg

[EventLog_AddService_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7



;-------------------------------------------------------------------------
; Coinstaller installation
;-------------------------------------------------------------------------
;[DestinationDirs]
;CoInstaller_CopyFiles       = 11    ; %windir%\system32


;[SourceDisksFiles]
; make sure the number matches with SourceDisksNames
;WdfCoinstaller01007.dll     = 0


[MfInstSect.CoInstallers]
AddReg                      = CoInstaller_AddReg
CopyFiles                   = CoInstaller_CopyFiles


[MfInstSect.Wdf]
KmdfService                 = MwPCIeMf,MfInstSect.Wdf_KmdfService


[CoInstaller_CopyFiles]
WdfCoinstaller01007.dll

[CoInstaller_AddReg]
; Add WDF class coinstaller
HKR,,CoInstallers32,%REG_MULTI_SZ%,"WdfCoinstaller01007.dll,WdfCoInstaller"

[MfInstSect.Wdf_KmdfService]
KmdfLibraryVersion          = 1.7



[Strings]
;
; *******   Localizable Strings   *******
Oxsemi                      = "Maerzhaeuser Wetzlar"
MfDesc                      = "Tango PCIe Controller"
Desc_0                      = "Tango PCIe Controller Driver"

; ******* Non Localizable Strings *******
SERVICE_BOOT_START          = 0x0
SERVICE_SYSTEM_START        = 0x1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_DISABLED            = 0x4

SERVICE_KERNEL_DRIVER       = 0x1

SERVICE_ERROR_IGNORE        = 0x0
SERVICE_ERROR_NORMAL        = 0x1
SERVICE_ERROR_SEVERE        = 0x2
SERVICE_ERROR_CRITICAL      = 0x3

SPSVCINST_ASSOCSERVICE      = 0x2

REG_SZ                      = 0x00000000
REG_BINARY                  = 0x00000001
REG_KEYONLY                 = 0x00000010
REG_MULTI_SZ                = 0x00010000
REG_EXPAND_SZ               = 0x00020000
REG_DWORD                   = 0x00010001









