LSI miniport driver

Hi

I’m new developer of kernel-mode driver.
I want to write a raid card miniport driver, so I download the MSDN’s sample and study the “LSI53C1010 miniport driver”
I use the SCSI card LSI53C1030 as my device
I know the driver LSI53C1010’s driver cann’t install on LSI53C1030 device
I clear the code in function
HwInitialize
HwStartIo
HwInterrupt
HwFindAdapter
HwResetBus
HwAdapterControl
HwBuildIo

and print the message in function.
I just want to see how the order of function be called
I install the driver on Windows server 2012 and another computer install WinDbg
When driver installed, I success to see the message “Enter DriverEntry” and “Enter FindAdapter”
Next, I want to send IOCTL to my device.
I expect I can see the message “Enter BuildIo”->“Enter StartIo” and I can print the CDB
But there nothing happened of my WinDbg
What’s wrong of my operation?

Please help me

By the way, I use the WDK’s tool “spti” to send SCSI command

Thanks a lot

Why did you do this versus taking a virtual miniport with no hardware and
looking at what is going on. Without rewriting the driver to really support
the board you are using, anything would be a guess. Note the virtual
storport will do the operations as a physical storport.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, December 10, 2013 8:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] LSI miniport driver

Hi

I’m new developer of kernel-mode driver.
I want to write a raid card miniport driver, so I download the MSDN’s sample
and study the “LSI53C1010 miniport driver”
I use the SCSI card LSI53C1030 as my device I know the driver LSI53C1010’s
driver cann’t install on LSI53C1030 device I clear the code in function
HwInitialize HwStartIo HwInterrupt HwFindAdapter HwResetBus HwAdapterControl
HwBuildIo

and print the message in function.
I just want to see how the order of function be called I install the driver
on Windows server 2012 and another computer install WinDbg When driver
installed, I success to see the message “Enter DriverEntry” and “Enter
FindAdapter”
Next, I want to send IOCTL to my device.
I expect I can see the message “Enter BuildIo”->“Enter StartIo” and I can
print the CDB But there nothing happened of my WinDbg What’s wrong of my
operation?

Please help me

By the way, I use the WDK’s tool “spti” to send SCSI command

Thanks a lot


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thank you for your reply

I have a hardware LSI53C1030 SCSI card, but I don’t have its driver sample code, so I write a empty driver on it and looking at what is going on.

Many thanks~

You can’t just “clear the code”, you have to respond correctly to
FindAdapter when filling in the PORT_CONFIGURATION_INFORMATION. You also
have to fake at least one lun or there is nothing to send an ioctl to. If
you didn’t see an inquiry request then you screwed up FindAdapter.

Mark Roddy

On Tue, Dec 10, 2013 at 8:51 PM, wrote:

> Hi
>
> I’m new developer of kernel-mode driver.
> I want to write a raid card miniport driver, so I download the MSDN’s
> sample and study the “LSI53C1010 miniport driver”
> I use the SCSI card LSI53C1030 as my device
> I know the driver LSI53C1010’s driver cann’t install on LSI53C1030 device
> I clear the code in function
> HwInitialize
> HwStartIo
> HwInterrupt
> HwFindAdapter
> HwResetBus
> HwAdapterControl
> HwBuildIo
>
> and print the message in function.
> I just want to see how the order of function be called
> I install the driver on Windows server 2012 and another computer install
> WinDbg
> When driver installed, I success to see the message “Enter DriverEntry”
> and “Enter FindAdapter”
> Next, I want to send IOCTL to my device.
> I expect I can see the message “Enter BuildIo”->“Enter StartIo” and I can
> print the CDB
> But there nothing happened of my WinDbg
> What’s wrong of my operation?
>
> Please help me
>
> By the way, I use the WDK’s tool “spti” to send SCSI command
>
> Thanks a lot
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hi Mark

Thank you for your reply.
I will try your method and add code into my driver later.

Many thanks~