; O2SDJXP.INF, O2Micro Integrated MMC/SD Controller INF file
; Copyright (c) 1997-2012 O2Micro Corp.

[Version]
Signature   = "$Windows NT$"
Class       = SCSIAdapter
ClassGuid   = {4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider    = %O2Micro%
DriverVer   = 04/24/2012,1.2.1.7068
Catalogfile = o2sdjxp.cat

[SourceDisksNames]
1 = %O2SDR.DriverDisk%

[SourceDisksFiles]
o2sdjxp.sys = 1
o2flash.exe = 1
O2Icon.dll = 1

[DestinationDirs]
DefaultDestDir = 12
CopyO2Flash = 12
CopyO2Icon = 11

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%O2Micro% = O2SDJRDR

[O2SDJRDR]
%O2SDR.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8220		;Default for OZ600FJ1/OZ900FJ1
%O2SDR.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8221		;Default for OZ600FJ0/OZ900FJ0/OZ600FJS

%O2SDR.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8320		;Default for OZ600RJ1/OZ900RJ1
%O2SDR.DeviceDesc% = DriverInstall, PCI\VEN_1217&DEV_8321		;Default for OZ600RJ0/OZ900RJ0/OZ600RJS

[DriverInstall.NT]
CopyFiles = @o2sdjxp.sys
CopyFiles = CopyO2Flash,CopyO2Icon

[CopyO2Flash]
o2flash.exe

[CopyO2Icon]
O2Icon.dll

[DriverInstall.NT.Services]
AddService = O2SDJRDR, 0x00000002 , DriverService;, EventLogService
AddService = O2FLASH, 0x00000800 , Flash_Service_Inst

[DriverService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  
LoadOrderGroup = SCSI Miniport
ServiceBinary  = %12%\o2sdjxp.sys
AddReg         = pnpsafe_pci_addreg
AddReg         = bus_type_o2
AddReg         = icon_label

[EventLogService]
AddReg = EventLogService_AddReg

[EventLogService_AddReg]
;HKR,,EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\drivers\o2sdjxp.sys"
HKR,,EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,   0x00010001, 7

[pnpsafe_pci_addreg]
HKR, "Parameters\PnpInterface", "5", 0x00010001, 0x00000001

[bus_type_o2]
HKR,"Parameters", "BusType", 0x00010001, 0x00000010

[icon_label]
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_SD______________0001","Icons",0x00010000,"%SystemRoot%\system32\O2Icon.dll,-299"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_SD______________0001","Label",,"SD Disk"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_SD______________0001","NoSoftEject",0x00010001,0x00000001
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_SD______________0001","DeviceGroup",,"SDStorage"

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_MMC_____________0001","Icons",0x00010000,"%SystemRoot%\system32\O2Icon.dll,-297"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_MMC_____________0001","Label",,"MMC Disk"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_MMC_____________0001","NoSoftEject",0x00010001,0x00000001
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SCSI#DiskO2Micro_MMC_____________0001","DeviceGroup",,"MMCStorage"

[Flash_Service_Inst]
DisplayName    = O2FLASH
ServiceType    = 0x0010             ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  
ServiceBinary  = %12%\o2flash.exe

[Strings]
REG_SZ        = 0x00000000
REG_MULTI_SZ  = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY    = 0x00000001
REG_DWORD     = 0x00010001
SERVICEROOT   = "System\CurrentControlSet\Services"

O2Micro          = "O2Micro"
O2SDR.DeviceDesc = "O2Micro Integrated MMC/SD controller"
O2SDR.DriverDisk = "O2Micro Integrated MMC/SD controller Driver Disk"
