Pnp and Virtual SCSI Miniport blues....

Hey gurus,

I am faking my virtual scsi miniport as an ISA device during installation on W2k. And the system treats it later as a legacy device. What I wanna do it to make it receive all Pnp and Power calls (via Scsi Port of course). Would it make any sense to use MS “toaster” bus/device examples to create a virtual bus driver and make it think that there is a “hardware” present. Which would make Os’s Pnp look for the miniport (assuming the miniport’s inf would have to reflect the device id of a virtual bus)? Would it? …in theory…?

Thanks

Paul

Paul,

That still won’t work. I tried it. What interface are you going to define?
PCI? Internal? There certinly isn’t a . I tried Internal and
PCI and could never get them to work. Sometimes I could get Findadapter
called, but more times than not, it returned STATUS_SUCCESS to DriverEntry
and bombed out in resource processing. Remember … SCSIPORT is handling
these calls, NOT the miniport, so unless you do an end run around SCSIPORT,
the chances of you making SP happy is remote. And endruns tend to break in
service packs.

You’re extending SCSIPORT beyond what it can do. The folks at Microsoft have
stated that SCSIPORT and STORPORT are not designed for virtual minports. It
can easily handle a virtual miniport that is nothing more than a RAM DISK
where StartIo is going complete the SRB, but getting them to handle PnP,
power management, and/or asynchronous IO requiring anonymous call backs to
queue the SCSIPORT DPC in a virtual miniport is beyond it’s abilities. You
might be the one to discover how, but it’s going to cost you months of work.

Believe me. You are going to either write your own SCSIPORT or you are
going to purchase a 3rd party library. Here is the development effort you
are looking at …

1. Write your own SCSI support library
That’s in the neighborhood of about 11K lines of code. How long is it going
to take you to design, code and debug that? 3 to 4 months?

2. Continue in the mode you currently are … looking for a
SCSIPORT/STORPORT method
Unkown time required since no one here, in 3 years of WDM developement, has
discovered the answers. You MIGHT be the genius to show the rest of us how.
:slight_smile:

3. Purchase a 3rd party SCSI support library. Integrate your current
miniport code into that library – I think 2 weeks is overkill at your skill
level, but lets say 2 weeks.

It’s a no brainer for me. Plus the end result will most likely run, with a
compile switch or two on NT4 through dot NET.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105

wrote in message news:xxxxx@ntdev…
>
> Hey gurus,
>
> I am faking my virtual scsi miniport as an ISA device during installation
on W2k. And the system treats it later as a legacy device. What I wanna do
it to make it receive all Pnp and Power calls (via Scsi Port of course).
Would it make any sense to use MS “toaster” bus/device examples to create a
virtual bus driver and make it think that there is a “hardware” present.
Which would make Os’s Pnp look for the miniport (assuming the miniport’s inf
would have to reflect the device id of a virtual bus)? Would it? …in
theory…?
>
> Thanks
>
> Paul
>
>
>