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


[Version]
Signature                   = "$Windows NT$"
Class                       = Ports
ClassGuid                   = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider                    = %Oxsemi%
CatalogFile                 = OxPCIeSer.cat
;#OxData#DriverVer                   = [[UartDate]],[[UartVersion]]
DriverVer                   = 01/16/2008,1.00.0000.14
;#OxEndData

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

[SourceDisksNames]
0=%Desc_0%



[ControlFlags]
;#OxData#ExcludeFromSelect           = [[UartBrandingFile]]Mf\*PNP0501
ExcludeFromSelect           = OxPCIeSerMf\*PNP0501
;#OxEndData


[SourceDisksFiles]
OxPCIeSer.sys               = 0
OxPCIeUi.dll                = 0
;#OxData#[[UartBrandingFile]].oxbe              = 0
OxPCIeSer.oxbe              = 0
;#OxEndData
;#OxData#[[UartBrandingFile]].png               = 0
OxPCIeSer.png               = 0
;#OxEndData



[Manufacturer]
%Oxsemi%                    = Oxsemi,ntAMD64


; For Win2K
[Oxsemi]
;#OxData#%SerDesc%                   = SerInstSect,[[UartBrandingFile]]Mf\*PNP0501
%SerDesc%                   = SerInstSect,OxPCIeSerMf\*PNP0501
;#OxEndData

; For XP and later
[Oxsemi.ntAMD64]
;#OxData#%SerDesc%                   = SerInstSect,[[UartBrandingFile]]Mf\*PNP0501
%SerDesc%                   = SerInstSect,OxPCIeSerMf\*PNP0501
;#OxEndData


[SerInstSect]
CopyFiles                   = DestinationDirs_DriversDir
AddReg                      = SerInstSect.AddReg


[DestinationDirs_DriversDir]
OxPCIeSer.sys


[SerInstSect.HW]
AddReg                      = SerInstSect.HW_AddReg


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


[SerInstSect.AddReg]
HKR,,PortSubClass,%REG_BINARY%,01
HKR,,EnumPropPages32,,"OxPCIeUi.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,04,64,10,70,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%\OxPCIeSer.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
WdfCoinstaller01005.dll     = 0


[SerInstSect.CoInstallers]
AddReg                      = CoInstaller_AddReg
CopyFiles                   = CoInstaller_CopyFiles


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


[CoInstaller_CopyFiles]
WdfCoinstaller01005.dll
OxPCIeUi.dll
;#OxData#[[UartBrandingFile]].oxbe
OxPCIeSer.oxbe
;#OxEndData
;#OxData#[[UartBrandingFile]].png
OxPCIeSer.png
;#OxEndData

[CoInstaller_AddReg]
; Add WDF and Serial device coinstallers
HKR,,CoInstallers32,%REG_MULTI_SZ%,"WdfCoinstaller01005.dll,WdfCoInstaller","OxPCIeUi.dll,SerialDeviceCoInstaller"
; Add PluginName
;#OxData#HKR,,PluginName,%REG_MULTI_SZ%,"[[UartBrandingFile]].oxbe"
HKR,,PluginName,%REG_MULTI_SZ%,"OxPCIeSer.oxbe"
;#OxEndData

[SerInstSect.Wdf_KmdfService]
KmdfLibraryVersion          = 1.5



[Strings]
;
; *******   Localizable Strings   *******
;#OxData#Oxsemi                      = "[[Manufacturer]]"
Oxsemi                      = "Oxford Semiconductor Inc"
;#OxEndData

;#OxData#SerDesc                     = "[[UartDeviceDescription]]"
SerDesc                     = "PCI Express UART Port"
;#OxEndData
;#OxData#Desc_0                      = "[[UartDriverDescription]]"
Desc_0                      = "Oxford Semiconductor UART Driver"
;#OxEndData


; ******* 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


;#OxComment#---------------------------------------------------------
;#OxComment#       OXide definitions. Do not modify
;#OxComment#---------------------------------------------------------

;#OxGlobalSection#Manufacturer information
	;#OxGroup#Manufacturer name
        ;#OxDefine#Manufacturer#Name #ManufacturerName[32]
  ;#OxEndGroup
;#OxEndSection

;#OxGlobalSection#UART Driver Version
	;#OxGroup#Driver version information
        ;#OxDefine#UartVersion#Driver Version#String[12]
        ;#OxDefine#UartDate#Date#Date
  ;#OxEndGroup
;#OxEndSection

;#OxGlobalSection#UART Port Details
	;#OxGroup#Description
        ;#OxDefine#UartDeviceDescription#Device Description#String[48]
        ;#OxDefine#UartDriverDescription#Driver Description  #String[48]
        ;#OxDefine#UartBrandingFile#Branding File          #ValidatedString[32,false,branding,false,oxpcieser]
  ;#OxEndGroup
;#OxEndSection
