;; sonynfcport100.inf  for Windows 8
;; Sony NFC Port/PaSoRi 100 USB  Copyright 2011, 2012 Sony Corporation

;--------- Version Section ---------------------------------------------------
[Version]
Signature="$Windows NT$"
Provider=%ProviderName%
CatalogFile=sonynfcport100.cat
DriverVer=10/03/2012,1.1.2.1

Class=Proximity
ClassGuid={5630831C-06C9-4856-B327-F5D32586E060}

;--------- DestinationDirs Section -------------------------------------------
[DestinationDirs]
DefaultDestDir=12 
sonynfcport100_Files_Driver=10,System32\Drivers

;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
[SourceDisksNames]
1=%InstallDiskName%,,,

[SourceDisksFiles]
sonynfcport100c.sys=1,,
sonynfcport100f.sys=1,,
sonyfelicaportm.sys=1,,

;--------- Manufacturer and Models Sections ----------------------------------
[Manufacturer]
%MfgName%=Mfg0,NTx86.6.2,NTamd64.6.2

[Mfg0]
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_05A0
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C1
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C2
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C3
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_05A0&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C1&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C2&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C3&MI_00

[Mfg0.NTx86.6.2]
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_05A0
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C1
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C2
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C3
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_05A0&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C1&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C2&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C3&MI_00

[Mfg0.NTamd64.6.2]
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_05A0
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C1
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C2
%DeviceDesc%=sonynfcport100_DDI,USB\VID_054C&PID_06C3
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_05A0&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C1&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C2&MI_00
%DeviceDescMI%=sonynfcport100_DDI,USB\VID_054C&PID_06C3&MI_00

[ControlFlags]
ExcludeFromSelect=USB\VID_054C&PID_05A0
ExcludeFromSelect=USB\VID_054C&PID_06C1
ExcludeFromSelect=USB\VID_054C&PID_06C2
ExcludeFromSelect=USB\VID_054C&PID_06C3

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows NT -----------------
[sonynfcport100_DDI.NT]
CopyFiles=sonynfcport100_Files_Driver
AddReg=sonynfcport100c_NT_AddReg
AddReg=sonynfcport100f_NT_AddReg
AddReg=sonynfcport100f_PKI_NT_AddReg

[sonynfcport100_DDI.NT.HW]
AddReg=sonynfcport100_NT_HW_AddReg

[sonynfcport100_DDI.NT.Services]
Addservice=sonynfcport100c,0x00000002,sonynfcport100c_AddService
Addservice=sonynfcport100f,,sonynfcport100f_AddService
Addservice=sonyfelicaportm,,sonyfelicaportm_AddService

[sonynfcport100c_AddService]
DisplayName    = %SvcC_Desc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\sonynfcport100c.sys

[sonynfcport100f_AddService]
DisplayName    = %SvcF_Desc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\sonynfcport100f.sys

[sonyfelicaportm_AddService]
DisplayName    = %SvcM_Desc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\sonyfelicaportm.sys

[sonynfcport100c_NT_AddReg]
HKLM, %ServiceRoot%"\sonynfcport100c\Parameters","SelectiveSuspendEnable",0x00010001,0x00000001
HKLM, %ServiceRoot%"\sonynfcport100c\Parameters","SelectiveSuspendIdleTime",0x00010001,45000
HKLM, %ServiceRoot%"\sonynfcport100c\Parameters","021",0x00000001,01,61,02,6A,01,62,01,63
HKLM, %ServiceRoot%"\sonynfcport100c\Parameters","041",0x00010001,20
HKLM, %ServiceRoot%"\sonynfcport100c\Parameters","042",0x00010001,3

[sonynfcport100f_NT_AddReg]
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","041",0x00010001,20
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","042",0x00010001,3
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","1070",0x00000001,01,04,02,03
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","1071",0x00000001,01,04,02,03
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","107F",0x00010001,0x001B1810
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","107E",0x00010001,0x00000013
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","EnableMifareEmulation",0x00010001,1

[sonynfcport100f_PKI_NT_AddReg]
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","003",0x00010001,100
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","005",0x00010001,200
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","007",0x00010001,2
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","008",0x00010001,2
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","009",0x00010001,100
HKLM, %ServiceRoot%"\sonynfcport100f\Parameters","010",0x00010001,0

[sonynfcport100_NT_HW_AddReg]
HKR,,"UpperFilters",0x00010000,"sonynfcport100f"
HKR,,"UpperFilters",0x00010008,"sonyfelicaportm"

; --------- Files (common) -------------
[sonynfcport100_Files_Driver]
sonynfcport100c.sys
sonynfcport100f.sys
sonyfelicaportm.sys

;--------- WDF Coinstaller installation --------------------------------------
[DestinationDirs]
CoInstaller_CopyFiles = 11

[sonynfcport100_DDI.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
;WdfCoInstaller01011.dll
felica_coinst1041.dll

[SourceDisksFiles]
;WdfCoInstaller01011.dll=1 ; make sure the number matches with SourceDisksNames
felica_coinst1041.dll=1,,

[CoInstaller_AddReg]
;HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01011.dll,WdfCoInstaller", \
;                                "felica_coinst1041.dll,ClassInstaller"
HKR,,CoInstallers32,0x00010000, "felica_coinst1041.dll,ClassInstaller"

;[sonynfcport100_DDI.NT.Wdf]
;KmdfService = sonynfcport100c, sonynfcport100_WdfSect
;KmdfService = sonynfcport100f, sonynfcport100_WdfSect
;KmdfService = sonyfelicaportm, sonynfcport100_WdfSect
;[sonynfcport100_WdfSect]
;KmdfLibraryVersion = 1.11

;--------- Strings Section ---------------------------------------------------
[Strings]
ProviderName="Sony Corporation"
MfgName="Sony Corporation"
DeviceDesc="NFC Port/PaSoRi 100 USB"
DeviceDescMI="NFC Port/PaSoRi 100 USB - MI:0"
SvcC_Desc="NFC Port/PaSoRi(sonynfcport100c)"
SvcF_Desc="NFC Port/PaSoRi(sonynfcport100f)"
SvcM_Desc="NFC Port/PaSoRi Manager"
InstallDiskName="NFC Port/PaSoRi 100 USB DeviceDriver Disk"
ServiceRoot="System\CurrentControlSet\Services"

