;; SONYDDPU.INF  for Windows Vista/7(64)
;; Sony FeliCa Port/PaSoRi  Copyright 2001-2012 Sony Corporation

;--------- Version Section ---------------------------------------------------
[Version]
Signature="$Windows NT$"
Provider=%ProviderName%
CatalogFile=sonyddpu.cat
DriverVer=03/29/2012,3.1.7.0

Class=FeliCa
ClassGuid={020AE931-1226-468b-B70B-907F51F3774B}

;--------- DestinationDirs Section -------------------------------------------
[DestinationDirs]
DefaultDestDir=12 
Sonyddpu_Files_Driver=10,System32\Drivers
FeliCa_Class_Files=11
CoInstaller_CopyFiles=11

;--------- Class section -----------------------------------------------------

[ClassInstall32]
Addreg=Class_AddReg
CopyFiles=FeliCa_Class_Files

[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,100
HKR,,Installer32,,"felicaport_cls.dll,ClassInsatller"

[FeliCa_Class_Files]
felicaport_cls.dll

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

[SourceDisksFiles]
Sonyddpu.sys=1,,
sonyfelicaportm.sys=1,,
felicaport_cls.dll=1,,

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

[Mfg0.NTamd64]
%DeviceDesc%=Sonyddpu_DDI,USB\VID_054C&PID_006C
%DeviceDesc%=Sonyddpu_DDI,USB\VID_054C&PID_01BB
%DeviceDesc%=Sonyddpu_DDI,USB\VID_054C&PID_024B&MI_02
%DeviceDesc%=Sonyddpu_DDI,USB\VID_054C&PID_0374&MI_02

[ControlFlags]
ExcludeFromSelect=USB\VID_054C&PID_006C 
ExcludeFromSelect=USB\VID_054C&PID_01BB 
ExcludeFromSelect=USB\VID_054C&PID_024B&MI_02
ExcludeFromSelect=USB\VID_054C&PID_0374&MI_02

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows NT -----------------
[Sonyddpu_DDI.NT]
CopyFiles=Sonyddpu_Files_Driver
AddReg=Sonyddpu_NT_AddReg
AddReg=Sonyddpu_PKI_NT_AddReg

[Sonyddpu_DDI.NT.HW]
AddReg=Sonyddpu_NT_HW_AddReg

[Sonyddpu_DDI.NT.Services]
Addservice=Sonyddpu,0x00000002,Sonyddpu_AddService
Addservice=sonyfelicaportm,,sonyfelicaportm_AddService

[Sonyddpu_AddService]
DisplayName    = %SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\Sonyddpu.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

[Sonyddpu_NT_AddReg]
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0118",0x00000001,89,13,25,f0,a0,02,a1,00,a2,89,a3,10,a4,03,a5,89,a6,10
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0121",0x00000001,89,11,25,f0,a0,02,a1,00,a2,89,a3,10,a4,03,a5,89,a6,10
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0122",0x00000001,89,11,25,f0,a0,02,a1,00,a2,89,a3,10,a4,03,a5,89,a6,10
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"i0128LL",0x00000001,25,58
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0128LL",0x00000001,25,58
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0128HL",0x00000001,89,11,25,f0,a0,02,a1,00,a2,89,a3,10,a4,03,a5,89,a6,10
HKLM, %ServiceRoot%"\Sonyddpu\Parameters",\
	"o0128HH",0x00000001,89,11,25,f0,a0,02,a1,00,a2,89,a3,10,a4,03,a5,89,a6,10
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0118",0x00010001,0x40000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0121",0x00010001,0x40000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0122",0x00010001,0x40000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_i0128LL",0x00010001,0x80000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0128LL",0x00010001,0x80000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0128HL",0x00010001,0x80000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","LED_o0128HH",0x00010001,0x80000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0118",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0121",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0122",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_i0128LL",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0128LL",0x00010001,0x00000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0128HL",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","MOUNT_o0128HH",0x00010001,0x00000000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","SelectiveSuspendEnable",0x00010001,0x00000001
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","SelectiveSuspendIdleTime",0x00010001,60000

[Sonyddpu_PKI_NT_AddReg]
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","001",0x00010001,400
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","003",0x00010001,400
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","005",0x00010001,1500
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","007",0x00010001,2
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","008",0x00010001,2
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","009",0x00010001,1000
HKLM, %ServiceRoot%"\Sonyddpu\Parameters","010",0x00010001,0

[Sonyddpu_NT_HW_AddReg]
HKR,,"UpperFilters",0x00010000,"sonyfelicaportm"

; --------- Files (common) -------------
[Sonyddpu_Files_Driver]
Sonyddpu.sys
sonyfelicaportm.sys

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

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

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[SourceDisksFiles]
WdfCoInstaller01009.dll=1,,

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[Sonyddpu_DDI.NT.Wdf]
KmdfService = sonyfelicaportm, Sonyddpu_WdfSect

[Sonyddpu_WdfSect]
KmdfLibraryVersion = 1.9

;--------- Strings Section ---------------------------------------------------
[Strings]
ProviderName="Sony Corporation"
MfgName="Sony Corporation"
DeviceDesc="FeliCa Port/PaSoRi"
SvcDesc="FeliCa Port/PaSoRi"
SvcM_Desc="FeliCa Port/PaSoRi Manager"
InstallDiskName="FeliCa Port/PaSoRi DeviceDriver Disk"
ServiceRoot="System\CurrentControlSet\Services"
DeviceClassName="FeliCa Port"

