; Installation inf for the RK281X Device
;
; (c) Copyright 2008 FuZhou Rockchip
;
; 
; 1.00.1001 修改了Write的超时时间，(200ms => 2000ms)
;--------- Version Section ---------------------------------------------------

[Version]
Signature="$CHICAGO$"
Class=RK281X
ClassGUID={79DFC2A8-2574-493C-AE71-52958E41AA69}
Provider=%Provider%
DriverVer=06/25/2010,1.01.0000
CatalogFile=RK281X.cat


[ControlFlags]
; Pnp drivers should not be installable via non-PnP hardware dialogs
ExcludeFromSelect = *

;--------- ClassInstall/ClassInstall32 Section -------------------------------

; Not necessary if using a standard class

; 9X Style
[ClassInstall]
Addreg=RK281XClassAddReg

; NT Style
[ClassInstall32]
Addreg=RK281XClassAddReg

[RK281XClassAddReg]
;reg-root,[subkey],[value-entry-name],[flags],[value]
HKR,,,%REG_SZ%,%DeviceClassName%
HKR,,Icon,,"1"
HKR,,DeviceCharacteristics,%REG_DWORD%,0x100                    ; FILE_DEVICE_SECURE_OPEN
HKR,,Security,,"D:P(A;;GR;;;WD)(A;;GA;;;SY)(A;;GA;;;BA)"        ; generic read - everybody
                                                                ; generic all access - system and admin

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
DefaultDestDir = 10
RK281X_Files_Driver = 12


;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation.

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
RK281X.sys  = 1,,


;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName% = RK281X_Mfg,NTx86,NTia64, NTamd64

[RK281X_Mfg]
; DisplayName               Section           DeviceId
%RK281X_DeviceDesc%=RK281X_DDI, USB\VID_2207&PID_281A

[RK281X_Mfg.NTx86]
%RK281X_DeviceDesc%=RK281X_DDI, USB\VID_2207&PID_281A

[RK281X_Mfg.NTia64]
%RK281X_DeviceDesc%=RK281X_DDI, USB\VID_2207&PID_281A

[RK281X_Mfg.NTamd64]
%RK281X_DeviceDesc%=RK281X_DDI, USB\VID_2207&PID_281A

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 98 -----------------

; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98

[RK281X_DDI]
CopyFiles=RK281X_Files_Driver
AddReg=RK281X_9X_AddReg

[RK281X_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,RK281X.sys
HKR,,Description,,%RK281X_DeviceDesc%

; --------- Windows NT -----------------

[RK281X_DDI.NT]
CopyFiles=RK281X_Files_Driver
AddReg=RK281X_NT_AddReg

[RK281X_DDI.NT.Services]
Addservice = RK281X, %FLG_ADDREG_NOCLOBBER%, RK281X_Service

; --------- Registry ----------------------

[RK281X_NT_AddReg]
;reg-root,[subkey],[value-entry-name],[flags],[value]
HKR,rockchip,Key0,%REG_DWORD%,0

; --------- Service ----------------------

[RK281X_Service]
DisplayName    = %RK281X_SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\RK281X.sys
LoadOrderGroup = Extended Base

; --------- Files ----------------------

[RK281X_Files_Driver]
RK281X.sys,,,2

;--------- Strings Section ---------------------------------------------------

[Strings]
Provider = "Fuzhou Rockchip"
MfgName = "Fuzhou Rockchip"
RK281X_DeviceDesc = "RK281X Device"
DeviceClassName="Class for rockusb devices"
RK281X_SvcDesc = "Driver for RK281X Device"
DiskId1 = "RK281X Device Installation Disk #1"

REG_SZ                      = 0x00000000
REG_MULTI_SZ                = 0x00010000
REG_EXPAND_SZ               = 0x00020000
REG_BINARY                  = 0x00000001
REG_DWORD                   = 0x00010001
REG_NONE                    = 0x00020001

SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008

SERVICE_BOOT_START          = 0x0
SERVICE_SYSTEM_START        = 0x1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_DISABLED            = 0x4

SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

FLG_ADDREG_NOCLOBBER        = 0x00000002
FLG_ADDREG_DELVAL           = 0x00000004
FLG_ADDREG_APPEND           = 0x00000008
FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_OVERWRITEONLY    = 0x00000020
FLG_ADDREG_64BITKEY         = 0x00001000
FLG_ADDREG_KEYONLY_COMMON   = 0x00002000
FLG_ADDREG_32BITKEY         = 0x00004000
