RE: [NtDev] Getting ScsiPort to call the FindAdapter - of y our mini-por t.

Oh yeah … very much fun. Your right … there ain’t no such thing as a WDM
SCSI mini-port, but you can create a PnP mini-port, and when you do that the
rules change. For one thing, ScsiPortInitialize generates an immediate
return with status = STATUS_SUCCESS. Your FindAdapter routine is then called
when the ScsiPortFDOPnP gets an IRP_MN_START_DEVICE, if everything to that
point is copasetic. Before that there is a call to query legacy devices
(ox18) as well as filter resources (oxd), and I have seen a call to query
resources (0xb).

This is a “virtual” Scsi mini-port that has an upper Scsi mini-port edge
with a lower private interface into its bus driver that actually handles the
hardware. It looks like all my work is now centered on the bus driver —
getting it to handle things in the same fashion as the PCI bus driver.

Fun? Oh absolutely. Sometimes, it as much fun as running naked through a
rose garden.

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com

-----Original Message-----
From: Barila, Phil [mailto:xxxxx@intel.com]
Sent: Wednesday, August 15, 2001 6:42 PM
To: NT Developers Interest List
Subject: [ntdev] RE: [NtDev] Getting ScsiPort to call the FindAdapter of y
our mini-por t.

What is a WDM ScsiPort? It looks like you have a SCSI miniport? There’s no
such thing as a WDM SCSI miniport, as far as I can tell, and I’ve looked
pretty hard. Could you enlighten me? How do you make it WDM?

As far as your FindAdapter not being called, when I have had that problem,
it was usually because I had the wrong AdapterInterfaceType in the
HW_INITIALIZATION_DATA struct before I called ScsiPortInitialize.
ScsiPortInitialize will return before your FindAdapter is called if SCSIPORT
thinks you are PnP. If it thinks you are legacy, it will call your
FindAdapter before ScsiPortInitialize returns. Fun, hmm?

Phil

-----Original Message-----
From: Gary Little [mailto:xxxxx@Broadstor.com]
Sent: Monday, August 13, 2001 6:06 PM
To: NT Developers Interest List
Subject: [ntdev] [NtDev] Getting ScsiPort to call the FindAdapter of
your mini-por t.

I am attempting to install a 2000 WDM ScsiPort driver into an XP, build
2535, platform.

ScsiPortInitialize returns STATUS_SUCCESS, but FindAdapter is never called.
I checked the service names with the names of the service found in
HKLM\system\ CurrentControlset\Enum and the service in the subkey is indeed
defined in the services subkey for CurrentControlset\Services.

The setup log indicates the following problems: E362. The driver is unsigned
and the INF file does not contain digital signature information. The driver
is under development so it is not signed.

I find my device under SCSI and Raid controllers in the Device Manager but
it is banged out and reports a Code 10 in the Device status window.

What am I missing here?

Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com