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


[Version]
Signature                   = "$Windows NT$"
Class                       = Ports
ClassGuid                   = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider                    = %Oxsemi%
CatalogFile                 = MwPCIeSer.cat
DriverVer                   = 11/21/2018,16.54.54.143

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

[SourceDisksNames]
0=%Desc_0%



[ControlFlags]
ExcludeFromSelect           = MwPCIeMf\*PNP0501


[SourceDisksFiles]
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]
%SerDesc%                   = SerInstSect,MwPCIeMf\*PNP0501

; For XP and later
[Oxsemi.ntx86]
%SerDesc%                   = SerInstSect,MwPCIeMf\*PNP0501


[SerInstSect]
CopyFiles                   = DestinationDirs_DriversDir
AddReg                      = SerInstSect.AddReg


[DestinationDirs_DriversDir]
MwPCIeSer.sys

[SerInstSect.HW]
AddReg                      = SerInstSect.HW_AddReg


[SerInstSect.Services]
AddService                  = MwPCIeSer,%SPSVCINST_ASSOCSERVICE%,SerInstSect.Services_AddService,EventLog_AddService
AddService                  = Serenum,,Serenum_AddService


[SerInstSect.AddReg]
HKR,,PortSubClass,%REG_BINARY%,01
HKR,,EnumPropPages32,,"MwPCIeUi.dll,SerialPropPageProvider"

[SerInstSect.HW_AddReg]
HKR,,"UpperFilters",%REG_MULTI_SZ%,"serenum"
HKR,,"95xSpecific",%REG_BINARY%,01,00,00,00,00,00,c9,16,20,00,01,00,00,00,00,00,08,00,00,00,00,00,00,10
HKR,,"ClockRate",%REG_DWORD%,62500000


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

[Serenum_AddService]
ServiceType                 = %SERVICE_KERNEL_DRIVER%
StartType                   = %SERVICE_DEMAND_START%
ErrorControl                = %SERVICE_ERROR_NORMAL%
ServiceBinary               = %12%\serenum.sys
LoadOrderGroup              = PNP Filter


[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


[SerInstSect.CoInstallers]
AddReg                      = CoInstaller_AddReg
CopyFiles                   = CoInstaller_CopyFiles


[SerInstSect.Wdf]
KmdfService                 = MwPCIeSer,SerInstSect.Wdf_KmdfService

[CoInstaller_CopyFiles]
WdfCoinstaller01007.dll
MwPCIeUi.dll
MwPCIeSer.oxbe
MwPCIeSer.png

[CoInstaller_AddReg]
; Add WDF and Serial device coinstallers
HKR,,CoInstallers32,%REG_MULTI_SZ%,"WdfCoinstaller01007.dll,WdfCoInstaller"
HKR,,CoInstallers32,%REG_MULTI_SZ_APPEND%,"MwPCIeUi.dll,SerialDeviceCoInstaller"
; Add PluginName
HKR,,PluginName,%REG_MULTI_SZ%,"MwPCIeSer.oxbe"

[SerInstSect.Wdf_KmdfService]
KmdfLibraryVersion          = 1.7



[Strings]
;
; *******   Localizable Strings   *******
Oxsemi                      = "Maerzhaeuser Wetzlar"

SerDesc                     = "Tango PCIe Port"
Desc_0                      = "Tango PCIe Port 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_MULTI_SZ_APPEND         = 0x00010008
REG_EXPAND_SZ               = 0x00020000
REG_DWORD                   = 0x00010001








