; Copyright (c) 2002 Microsoft Corporation

[Version]
Signature="$WINDOWS NT$"
Class=DiskDrive
ClassGuid={4D36E967-E325-11CE-BFC1-08002BE10318}
Provider=%MS%
DriverVer=06/21/2006,6.1.7601.17514

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
sffdisk.sys 		= 3426
sffp_sd.sys 		= 3426
sffp_mmc.sys 		= 3426

[DestinationDirs]
DefaultDestDir=12 ;DIRID_DRIVERS

[ControlFlags]
BasicDriverOk=*
ExcludeFromSelect = SD\CLASS_STORAGE

[Manufacturer]
%Generic%=Generic,NTx86

[Generic.NTx86]
%GenericSDMemoryCard.DeviceDesc%=sdstorage_Install,SD\CLASS_STORAGE
%GenericMmcMemoryCard.DeviceDesc%=mmcstorage_Install,SD\CLASS_MMC

;
; SD install section
;

[sdstorage_Install.NT]
CopyFiles=sdstorage_copyfiles

[sdstorage_copyfiles]
sffdisk.sys,,,0x100
sffp_sd.sys,,,0x100

[sdstorage_Install.NT.Services]
AddService=sffdisk, 2, sffdisk_service_Install
AddService=sffp_sd,, sffp_sd_service_Install

[sdstorage_Install.NT.HW]
AddReg=SdStorageHwReg

[SdStorageHwReg]
HKR,,"LowerFilters",0x00010000,"sffp_sd"

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_storage",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_storage","Icons",0x00010000,"%%SystemRoot%%\system32\sdhcinst.dll,-2"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_storage","Label",,"@%%SystemRoot%%\system32\sysclass.dll,-2800"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_storage","NoSoftEject",0x00010001,0x00000001

[sffp_sd_ServiceReg]
HKR,Parameters,SdCmdFlags,1,    09,01, 0A,01, 0D,01, \
                                20,01, 21,01, 26,01, \
                                22,01, 23,01, 24,01, 25,01, 32,01, 39,01

HKR,Parameters,SdAppCmdFlags,1, 0D,01, \
                                12,01, 19,01, 1A,01, 26,01, 2B,01, \
                                2C,01, 2D,01, 2E,01, 2F,01, 30,01, 31,01, \
                                33,01

;
; SD protocol driver service install section
;

[sffp_sd_service_Install]
DisplayName    = %sffp_sd_ServiceDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\sffp_sd.sys
AddReg         = sffp_sd_ServiceReg

;
; MMC install section
;

[mmcstorage_Install.NT]
CopyFiles=mmcstorage_copyfiles

[mmcstorage_copyfiles]
sffdisk.sys,,,0x100
sffp_mmc.sys,,,0x100

[mmcstorage_Install.NT.Services]
AddService=sffdisk, 2, sffdisk_service_Install
AddService=sffp_mmc,, sffp_mmc_service_Install

[mmcstorage_Install.NT.HW]
AddReg=MmcStorageHwReg

[MmcStorageHwReg]
HKR,,"LowerFilters",0x00010000,"sffp_mmc"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_MMC",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_MMC","Icons",0x00010000,"%%SystemRoot%%\system32\sdhcinst.dll,-2"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_MMC","Label",,"@%%SystemRoot%%\system32\sysclass.dll,-2801"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\PerHwIdStorage\SD#class_MMC","NoSoftEject",0x00010001,0x00000001

[sffp_mmc_ServiceReg]
HKR,Parameters,SdCmdFlags,1,    09,01, 0A,01, 0D,01, \
                                20,01, 21,01, 26,01, \
                                22,01, 23,01, 24,01, 25,01, 32,01, 39,01

HKR,Parameters,SdAppCmdFlags,1, 0D,01, \
                                12,01, 19,01, 1A,01, 26,01, 2B,01, \
                                2C,01, 2D,01, 2E,01, 2F,01, 30,01, 31,01, \
                                33,01

;
; MMC protocol driver service install section
;

[sffp_mmc_service_Install]
DisplayName    = %sffp_mmc_ServiceDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\sffp_mmc.sys
AddReg         = sffp_mmc_ServiceReg

;
; SffDisk Class Driver service install section
;

[sffdisk_service_Install]
DisplayName    = %sffdisk_ServiceDesc%
ServiceType    = 1
StartType      = 3
ErrorControl   = 1
ServiceBinary  = %12%\sffdisk.sys

[Strings]

;Localizable
sffdisk_ServiceDesc     = "SFF Storage Class Driver"
sffp_srm_ServiceDesc    = "SFF Storage Protocol Driver for PcCard SRAM"
sffp_sd_ServiceDesc     = "SFF Storage Protocol Driver for SDBus"
sffp_mmc_ServiceDesc    = "SFF Storage Protocol Driver for MMC"
Generic                 = "Generic"

GenericPcCardSram.DeviceDesc = "PCMCIA SRAM Storage Card"
GenericSDMemoryCard.DeviceDesc = "SD Storage Card"
GenericMmcMemoryCard.DeviceDesc = "MMC Storage Card"

;Non-Localizable
MS                      = "Microsoft"

