;Copyright (c) 2002 Microsoft Corporation

[Version]
Signature="$Windows NT$"
Class=SDHost
ClassGUID={a0a588a4-c46f-4b37-b7ea-c82fe89870c6}
Provider=%Msft%
DriverVer=06/21/2006,6.1.7601.17514

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
sdbus.sys 		= 3426

;
;   List of manufacturers and devices
;
[Manufacturer]
%Generic%=Generic,NTx86
%TED%=TED,NTx86
%TI%=TI,NTx86
%Ricoh%=Ricoh,NTx86
%VIA%=VIA,NTx86
%MSI%=MSI,NTx86
%JMicron%=JMicron,NTx86

[ControlFlags]
BasicDriverOk=*
ExcludeFromSelect=PCI\cc_080500
ExcludeFromSelect=PCI\cc_080501
ExcludeFromSelect=PCI\VEN_1679&DEV_3000
ExcludeFromSelect=PCI\VEN_104c&DEV_ac9f
ExcludeFromSelect=PCI\VEN_1180&DEV_0822&SUBSYS_C01A144D&REV_17
ExcludeFromSelect=PCI\VEN_1106&DEV_365B
ExcludeFromSelect=PCI\VEN_1106&DEV_401B
ExcludeFromSelect=PCI\VEN_1106&DEV_95D0
ExcludeFromSelect=PCI\VEN_8086&DEV_811C&SUBSYS_10101462
ExcludeFromSelect=PCI\VEN_8086&DEV_811E&SUBSYS_10101462
ExcludeFromSelect=PCI\VEN_197B&DEV_2381&REV_00

[Generic.NTx86]
%PCI\CC_080500.DeviceDesc%=SDHost,PCI\CC_080500
%PCI\CC_080501.DeviceDesc%=SDHost,PCI\CC_080501

[TED.NTx86]
%PCI\VEN_1679&DEV_3000.DeviceDesc%=SDHost, PCI\VEN_1679&DEV_3000

[TI.NTx86]
%PCI\VEN_104c&DEV_ac9f.DeviceDesc%=SDHost, PCI\VEN_104c&DEV_ac9f

;
; Using Generic Device Description to minimize Localization 
; All instances of %PCI\CC_080501.DeviceDesc% should be replaced by 
; %<SpecificID...>% unless Generic
;

[Ricoh.NTx86]
%PCI\CC_080501.DeviceDesc%=SDHostRicoh_1, PCI\VEN_1180&DEV_0822&SUBSYS_833810F7
%PCI\VEN_1180&DEV_0822&SUBSYS_C01A144D&REV_17%=SDHostRicoh, PCI\VEN_1180&DEV_0822&SUBSYS_C01A144D&REV_17

[VIA.NTx86]
%PCI\VEN_1106&DEV_365B.DeviceDesc%=SDHost, PCI\VEN_1106&DEV_365B
%PCI\VEN_1106&DEV_401B.DeviceDesc%=SDHost, PCI\VEN_1106&DEV_401B
%PCI\VEN_1106&DEV_95D0.DeviceDesc%=SDHost, PCI\VEN_1106&DEV_95D0

[MSI.NTx86]
%PCI\CC_080501.DeviceDesc%=SDHostMSI, PCI\VEN_8086&DEV_811C&SUBSYS_10101462
%PCI\CC_080501.DeviceDesc%=SDHostMSI, PCI\VEN_8086&DEV_811E&SUBSYS_10101462

[JMicron.NTx86]
%PCI\CC_080501.DeviceDesc%=SDHostJMicron, PCI\VEN_197B&DEV_2381&REV_00

[sdbus_Service_Inst]
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\sdbus.sys
LoadOrderGroup = System Bus Extender
AddReg         = SDBUSServiceReg

[SDBUSLocationReg]
HKR,,UINumberDescFormat,,%SDBUSSlot%

[SDHostRicoh.HW.addreg]
HKR,,CardPresenceCheckDelay,0x00010001,500000

[SDBUSReg]
HKR,,Driver,,"sdbus.sys"

[SDBUSServiceReg]
HKR,Parameters,SdCmdFlags,1,    06,01, 09,19, 0A,19, 0D,11, \
                                10,01, 11,01, 12,01, 18,05, 19,05, \
                                1A,01, 1B,01, 1C,01, \
                                20,05, 21,05, 26,05, \
                                2A,01, \
                                34,02, 35,02, \
                                37,01, 38,01, \
                                22,01, 23,05, 24,01, 25,01

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

[CSCopyFiles]
sdbus.sys,,,0x100

[DestinationDirs]
CSCopyFiles=12

;
; Standard host controller
;
[SDHost]
CopyFiles=CSCopyFiles
AddReg=SDBUSReg

[SDHost.Services]
AddService = sdbus, 2, sdbus_Service_Inst

[SDHost.HW]
AddReg=SDBUSLocationReg

;
; Ricoh host controller R5C841
;
[SDHostRicoh]
CopyFiles=CSCopyFiles
AddReg=SDBUSReg

[SDHostRicoh.Services]
AddService = sdbus, 2, sdbus_Service_Inst

[SDHostRicoh.HW]
AddReg=SDBUSLocationReg
AddReg=SDHostRicoh.HW.addreg

;
; Ricoh host contoller used on Panasonic CF-52
;

[SDHostRicoh_1.HW.addreg]
HKR,,ResetDelay,0x00010001,0

[SDHostRicoh_1]
CopyFiles=CSCopyFiles
AddReg=SDBUSReg

[SDHostRicoh_1.Services]
AddService = sdbus, 2, sdbus_Service_Inst

[SDHostRicoh_1.HW]
AddReg=SDBUSLocationReg
AddReg=SDHostRicoh_1.HW.addreg

;
; Disable 2 Unused Controllers with SUBSYS_10101462 on MSI X320
; Hardware IDs: 
;    PCI\VEN_8086&DEV_811C&SUBSYS_10101462
;    PCI\VEN_8086&DEV_811E&SUBSYS_10101462
;

[SDHostMSI.HW.addreg]
HKR,,Disabled,0x00010001,1

[SDHostMSI]
CopyFiles=CSCopyFiles
AddReg=SDBUSReg

[SDHostMSI.Services]
AddService = sdbus, 2, sdbus_Service_Inst

[SDHostMSI.HW]
AddReg=SDBUSLocationReg
AddReg=SDHostMSI.HW.addreg

;
; JMicron Host Controller JMB38x Chipset Rev 0, SDMA Mode Only
;

[SDHostJMicron.HW.addreg]
HKR,,DmaMethod,0x00010001,2

[SDHostJMicron]
CopyFiles=CSCopyFiles
AddReg=SDBUSReg

[SDHostJMicron.Services]
AddService = sdbus, 2, sdbus_Service_Inst

[SDHostJMicron.HW]
AddReg=SDBUSLocationReg
AddReg=SDHostJMicron.HW.addreg

[Strings]
;localizable

Generic="SDA Standard Compliant SD Host Controller Vendor"

;
;   Device Decription strings
;
PCI\VEN_104c&DEV_ac9f.DeviceDesc="Texas Instruments Secure Digital host controller"
PCI\VEN_1679&DEV_3000.DeviceDesc="Tokyo Electron SD Standard host controller"

PCI\VEN_1180&DEV_0822&SUBSYS_C01A144D&REV_17="Ricoh Secure Digital host controller R5C841"

PCI\VEN_1106&DEV_365B.DeviceDesc="VIA Secure Digital host controller"
PCI\VEN_1106&DEV_401B.DeviceDesc="VIA Secure Digital host controller"
PCI\VEN_1106&DEV_95D0.DeviceDesc="VIA Secure Digital host controller"

PCI\CC_080500.DeviceDesc="SDA Standard Compliant SD Host Controller"
PCI\CC_080501.DeviceDesc="SDA Standard Compliant SD Host Controller"

;
;
;
SDBUSSlot = "SD Host Slot %1!u!"

;Non-localizable
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START    = 0
SERVICE_SYSTEM_START  = 1
SERVICE_DEMAND_START  = 3
SERVICE_ERROR_NORMAL  = 1
SERVICE_ERROR_IGNORE  = 0
REG_EXPAND_SZ         = 0x00020000
REG_DWORD             = 0x00010001
REG_SZ                = 0x00000000

;
;Manufacturer name strings
;

Msft="Microsoft"
TED="Tokyo Electron Device"
TI="Texas Instruments"
Ricoh="Ricoh"
VIA="VIA Technologies, Inc"
MSI="MSI"
JMicron="JMicron"
