I have changed my INF file to have LogConfigOverride
section with resources specified. But still I haven’t
got call to hwFindAdapter. Pls let me know if any
changes reqd.
[*Servide_inst.LogConfigOverride]
ConfigPriority = HARDRECONFIG
IOConfig =
130-133(3FF::),230-233(3FF::),330-333(3FF::),134-137(3FF::),234-237(3FF::),334-337(3FF:![:slight_smile: :slight_smile:](/images/emoji/twitter/slight_smile.png?v=12)
IRQConfig = 9,10,11,12,14,15
My Driver entry looks like below:
HW_INITIALIZATION_DATA hwInitializationData;
ULONG Status;
UCHAR VendorId[4] = {
‘8’, ‘0’, ‘8’, ‘6’ };
UCHAR DeviceId[4] = {
‘1’, ‘0’, ‘5’, ‘E’ };
ON_INIT(DbgPrint(“==>Entering DriverEntry,
DriverObj=0x%p\n”,DriverObject)![:wink: :wink:](/images/emoji/twitter/wink.png?v=12)
_asm int 3;
BreakPoint();
pDriverObject = DriverObject;
///////////////////////////////////
//initialize the Scsi stack
memset(&hwInitializationData, 0, sizeof(
HW_INITIALIZATION_DATA ) );
hwInitializationData.HwInitializationDataSize =
sizeof( HW_INITIALIZATION_DATA );
// set the entry points
hwInitializationData.HwFindAdapter =
SanFindAdapter;
hwInitializationData.HwInitialize =
SanInitializeScsi;
hwInitializationData.HwStartIo =
SanStartIo;
hwInitializationData.HwResetBus =
SanResetScsiBus;
hwInitializationData.HwAdapterState = NULL;
hwInitializationData.HwDmaStarted = NULL; //
we should be a busmaster so NULL
hwInitializationData.HwInterrupt = NULL; //
SanScsiISR;
#if 1 //defined(WIN2K)
hwInitializationData.HwAdapterControl =
SanAdapterControl;
#endif /* WIN2K */
// extension sizes
hwInitializationData.DeviceExtensionSize =
sizeof( HBA_EXTENSION );
hwInitializationData.SpecificLuExtensionSize = 0;
// Scsi mini-port specific
hwInitializationData.MapBuffers =
TRUE; // Want to manipulate SRB Data for RAM Disk. ??
hwInitializationData.TaggedQueuing =
TRUE; // Support Scsi-2 tagged queueing
hwInitializationData.AutoRequestSense =
TRUE; // Device responds to Scsi request with sense
data
hwInitializationData.ReceiveEvent =
TRUE; // Able to receive asynchronous events, is this
really supported???
// building for the defined Hardware…
hwInitializationData.NeedPhysicalAddresses =
TRUE;
hwInitializationData.MultipleRequestPerLu =
TRUE; // Assuming our SAN NIC can queue.
hwInitializationData.AdapterInterfaceType = Isa;
//PNPBus;
#if 1
hwInitializationData.VendorId = VendorId;
hwInitializationData.VendorIdLength = 4;
hwInitializationData.DeviceId = DeviceId;
hwInitializationData.DeviceIdLength = 4;
#endif
hwInitializationData.NumberOfAccessRanges = 3; //
3; // Memory, flash , IO
Status = ScsiPortInitialize(DriverObject,
RegistryPath, &hwInitializationData, NULL);
return Status;
} //end driverEntry
— Mark Roddy wrote:
> The last time I looked, virtual scsi miniports had
> to pretend to be ISA
> devices, and to have at least one hw resource, as
> scsiport believed that
> there were exactly two kinds of miniports in the
> universe: ISA and PCI.
>
> If you are in control of your hardware offload
> device firmware, you should
> use it to generate the interrupts your are going to
> need to get any sort of
> good performance out of your miniport. In other
> words, offload enough of the
> HBA functions to the pci device to actually make the
> HBA a PCI miniport.
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On
> Behalf Of
> > purushotham Reddy
> > Sent: Tuesday, July 19, 2005 6:21 PM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] pnp scsi miniport not calling
> hwFindAdapter
> >
> > Done,
> > Our architecture is high-performing with h/w in
> NIC with
> > tcp/ip off-load, CRC, DMA etc. We want to use
> other drivers
> > in this design to imporve performance.
> > However, this is temporary solution in short term.
> > Probably microsoft would provide/support a
> solution for
> > remote boot in future.
> >
> > I set hwInitialization->VendorId=0, length=0,
> devid=0, Number
> > of accessranges=0.
> > Then called ScsiPortInitialize
> >
> >
> > Thanks,
> > Puru
> >
> >
> >
> >
> > — Don Burn wrote:
> >
> > > You are going wrong with your basic approach,
> namely “a
> > virtual scsi
> > > miniport” bottom line is even if you get your
> current
> > problem working,
> > > the design of the storage minport model is such
> that you
> > cannot make a
> > > reliable performing product without hardware.
> > >
> > > If you really need to do this check with OSR or
> StorageCraft for a
> > > storage port driver implementation that can be
> made virtual.
> > > This is not a cheap
> > > item.
> > >
> > >
> > > –
> > > Don Burn (MVP, Windows DDK)
> > > Windows 2k/XP/2k3 Filesystem and Driver
> Consulting
> > > Remove StopSpam from the email to reply
> > >
> > >
> > >
> > > “purushotham Reddy”
> wrote in
> > > message
> > > news:xxxxx@ntdev…
> > > > Hi,
> > > > Experts pls advise.
> > > > Designing a virtual scsi miniport that is
> > > enumerated
> > > > by a bus function driver as scsi device. As
> per
> > > DDK,
> > > > Scsi miniport driver is designed as pnp
> driver.
> > > But
> > > > HwFindAdapter is not being called by PNP
> > > manager.After
> > > > returning from driver entry(miniport), it
> fails
> > > > installation as “device cannot start 10”
> error.
> > > >
> > > > Hw_INITIALIZATION_DATA->BusInterfaceType is
> set as
> > > > PNPBus in driverentry; called
> > > scsiPortInitialize();
> > > >
> > > > Where am I going wrong? what changes can I
> > > experiment
> > > > in this situation here.
> > > >
> > > > Thanks,
> > > > Puru
> > > >
> > > >
>
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@hollistech.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com