how to create inf file for SD devices

Hi All,
I have developed one legacy mode driver for one SD pci card.For
installing this legacy mode driver i have created inf with the help of
geninf tool that comes with ddk package.With this inf i am able to load the
sys file on WIN2k system properly as well as i am able to communicate with
the driver after loading it. But when i am trying to load the sys file with
the same inf by changing the class as wel as class guid in the respective
field then sys file is loaded properly but i am not able to perform IO
operation with that sys file.

Following is the inf contents that i am using for loading the sys file on
win2k.

[Version]
Signature = “$Windows NT$”
Class=System
ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%Jinsys%
CatalogFile=cosmos.cat
DriverVer= 05/08/2006, 1.0

[DestinationDirs]
Stamdard_SD_HOST.Files.x86_12 = 12

[SourceDisksNames.x86]
0=%Desc_x860%

[SourceDisksNames.ia64]

[SourceDisksFiles.x86]
cosmos.sys=0,\cosmos,

[SourceDisksFiles.ia64]

[Manufacturer]
%Jinsys%=Jinsys

[Jinsys]
%Stamdard_SD_HOSTDesc%=Stamdard_SD_HOST_Inst,PCI\VEN_1095&DEV_0670&REV_04
%Stamdard_SD_HOSTDesc%=Stamdard_SD_HOST_Inst,PCI\VEN_1947&DEV_4743&REV_09

[Stamdard_SD_HOST_Inst.ntx86]
CopyFiles = Stamdard_SD_HOST.Files.x86_12
AddReg = Stamdard_SD_HOST.AddReg.x86

[Stamdard_SD_HOST_Inst.ntx86.Services]
AddService = cosmos,0x00000002,Stamdard_SD_HOST_Service_Instx86,

[Stamdard_SD_HOST_Service_Instx86]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\cosmos.sys

[Stamdard_SD_HOST.AddReg.x86]
; AutoPlay Entries
HKLM,
Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\Jinvani
Cosmos SD Bus, DeviceGroup, ,
HKLM,
Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\Jinvani
Cosmos SD Bus\DeviceHandlers, JSSDBUS, 0x00010001,
; End AutoPlay Entries

[Stamdard_SD_HOST.Files.x86_12]
cosmos.sys

[Stamdard_SD_HOST_EventLog_Inst]
AddReg = Stamdard_SD_HOST_EventLog_Inst.AddReg

[Stamdard_SD_HOST_EventLog_Inst.AddReg]
HKR,EventMessageFile,%REG_EXPAND_SZ%,“%%SystemRoot%%\System32\IoLogMsg.dll”
HKR,TypesSupported,%REG_DWORD%,7

[Strings]

; *******Localizable Strings*******
Jinsys= “Jinvani Systech Inc”
Desc_x860= “Local Disk”
Stamdard_SD_HOSTDesc= “Jinvani Cosmos SD host controller”

; *******Non Localizable Strings*******

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

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3

REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001

//Following is the inf contents that i am using for loading the sys file on
xp sp2

[Version]
Signature = “$Windows NT$”
Class=SDHost
ClassGUID={a0a588a4-c46f-4b37-b7ea-c82fe89870c6}
Provider=%Jinsys%
CatalogFile=cosmos.cat
DriverVer= 05/08/2006, 1.0

[DestinationDirs]
Stamdard_SD_HOST.Files.x86_12 = 12

[SourceDisksNames.x86]
0=%Desc_x860%

[SourceDisksNames.ia64]

[SourceDisksFiles.x86]
cosmos.sys=0,\cosmos,

[SourceDisksFiles.ia64]

[Manufacturer]
%Jinsys%=Jinsys

[Jinsys]
%Stamdard_SD_HOSTDesc%=Stamdard_SD_HOST_Inst,PCI\VEN_1095&DEV_0670&REV_04
%Stamdard_SD_HOSTDesc%=Stamdard_SD_HOST_Inst,PCI\VEN_1947&DEV_4743&REV_09

[Stamdard_SD_HOST_Inst.ntx86]
CopyFiles = Stamdard_SD_HOST.Files.x86_12
AddReg = Stamdard_SD_HOST.AddReg.x86

[Stamdard_SD_HOST_Inst.ntx86.Services]
AddService = cosmos,0x00000002,Stamdard_SD_HOST_Service_Instx86,

[Stamdard_SD_HOST_Service_Instx86]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\cosmos.sys

[Stamdard_SD_HOST.AddReg.x86]
; AutoPlay Entries
HKLM,
Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\Jinvani
Cosmos SD Bus, DeviceGroup, ,
HKLM,
Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceGroups\Jinvani
Cosmos SD Bus\DeviceHandlers, JSSDBUS, 0x00010001,
; End AutoPlay Entries

[Stamdard_SD_HOST.Files.x86_12]
cosmos.sys

[Stamdard_SD_HOST_EventLog_Inst]
AddReg = Stamdard_SD_HOST_EventLog_Inst.AddReg

[Stamdard_SD_HOST_EventLog_Inst.AddReg]
HKR,EventMessageFile,%REG_EXPAND_SZ%,“%%SystemRoot%%\System32\IoLogMsg.dll”
HKR,TypesSupported,%REG_DWORD%,7

[Strings]

; *******Localizable Strings*******
Jinsys= “Jinvani Systech Inc”
Desc_x860= “Local Disk”
Stamdard_SD_HOSTDesc= “Jinvani Cosmos SD host controller”

; *******Non Localizable Strings*******

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

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3

REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001

can anybody point out what i am missing or is there any specific tool for
creating inf file for xp ?
any help or pointer that can help me to solve this problem.

Thanks
Nayan


Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search
http://server1.msn.co.in/profile/shahrukh.asp