Mark,
Remember this post? I hunted it up, remembering it, hoping it might help me
get around a similar problem. How did you set AdapterInterfaceTyoe in
HW_INITIALIZATION_. Internal or PNPBus?
Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net
(949) 7372731
-----Original Message-----
From: Mark Roddy [mailto:xxxxx@hollistech.com]
Sent: Monday, September 24, 2001 7:28 PM
To: NT Developers Interest List
Subject: [ntdev] Re: SCSI miniport handle
And now back to the original problem, which was that the poster was
trying to create an ‘internal’ pnp scsi miniport driver, but had no luck
in convincing scsiport to let this happen.
Been there, done that. Scsiport (W2K, haven’t tried XP,) appears to have
a BUG (yes I know, unthinkable, but …) in this area. Indeed you cannot
have a PnP scsi miniport that has no resources! A pseudo miniport is
unlikely to have interrupts, IO ports or registers, but there it is,
scsiport says: sorry no resources no PNP, go away. So good enough, I
cooked my inf file to add some resources like so:
;
; bugbugbug - scsiport insists that we have to have some resources if we
are a pnp device
; so allocate 2 bytes of IO space between 0x100 and 0x400
;
[psMini.LogConfig]
ConfigPriority=NORMAL
IOConfig=2@100-400%fff0
OK? Ugly? But guess what? Scsiport decides that if I am ‘internal’ but I
have resources, then I must really be ISA. Yes it does.
At this point I could have conceded defeat and surrendered to the BORG,
but I was determined to have an internal pseudo miniport with pnp
support. So I added the following to my inf file:
[pnpsafe_internal_addreg]
HKR, “Parameters\PnpInterface”, %INTERNAL_BUS%, %REG_DWORD%, 0x00000001
;
;
; bugbugbug our internal interface requires a resource, which makes it
; an ISA interface.
;
HKR, “Parameters\PnpInterface”, %ISA_BUS%, %REG_DWORD%, 0x00000001
HAHAHAHA now I just add both interfaces in driver entry
ScsiPortInitialize! This is very silly, but it works. It still makes me
chuckle when I look at the code Of course you end up with TWO
interfaces, one of which is consigned to the ISA bus. Just don’t ever
find any Lus on the ISA interface
Obviously it would have been much easier to surrender to the BORG and
pretend that the adapter lives on the ISA bus. I have no idea what
happens if your platform doesn’t actually have an ISA bus.
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