So you actually want 18 physical breaks? The docs state number minus 1, so 0x11 being one short, your actual number is 18 (0x11=17). That means 8 gives you 9.
That aside, have you scanned the list for virtual SCSIPORT miniports? Virtual SCSI miniports have been discussed many times here and in the Microsoft forums. I’m assuming you have a nifty little widget and a nifty little driver to control it, and now you want to write a nifty virtual SCSIPORT to provide a nifty interface for your nifty driver and nifty widget to interact with the storage stack. In actuality it’s a nifty way to burn up about 18 months, and ask a splendiferous amount of questions here, which will always be answered with “you can’t do that”.
The personal opinion of
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@ybwork.com
Sent: Monday, July 17, 2006 8:24 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] NumberOfPhysicalBreaks of Scsi Miniport Driver
Hi,
My driver is a virtual scsi miniport driver. In the FindAdapter routine, I set:
ConfigInfo->MaximumTransferLength = 0x20000;
ConfigInfo->NumberOfPhysicalBreaks = 0x11; // 0x30;
ConfigInfo->MaximumNumberOfLogicalUnits = 1;
ConfigInfo->ScatterGather = TRUE; // FALSE; // fuck off scatter/gather
ConfigInfo->Master = TRUE; // FALSE; // NOT bus master
ConfigInfo->NeedPhysicalAddresses = FALSE;
ConfigInfo->CachesData = TRUE;
ConfigInfo->TaggedQueuing = FALSE;
ConfigInfo->AlignmentMask = 0x0;
However, on XP 32 with running spti.exe in DDK it always shows:
MaximumPhysicalPages: 00000008
TrueMaximumTransfer: 00007000 (bytes)
I event try to set ConfigInfo->NumberOfPhysicalBreaks to other bigger value but it’s always 8
On XP 64, spti.exe shows the correct value of:
MaximumPhysicalPages: 00000011
So, what’s wrong with my code? Thanks for any idea.
Regards
R. Y.
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
__________ NOD32 1.1663 (20060716) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com