How to access PCI configuration space in SCSI mini port driver

Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

?@??? Accusys, Inc.
Hardware Department
?B?h???]Johnny Liu?^
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw http:</http:>

ScsiPortGetBusData
ScsiPortSetBusDataByOffset


Sent by: xxxxx@lists.osr.com
06/08/2006 04:44 AM
Please respond to
“Windows System Software Devs Interest List”

To
“Windows System Software Devs Interest List”
cc

Subject
[ntdev] How to access PCI configuration space in SCSI mini port driver

Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL
function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

Accusys, Inc.
Hardware Department
Johnny Liu?
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw


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

Hi,

Check out the White paper by Mark Roddy. Replacing HALGETBUSDATA in WINDOWS
2000. Note that in the x64 DDK HALGETBUSDATA will be an unresolved
external. This may help.

William Michael Jones “Mike”

“¼B¤h»¨” wrote in message news:xxxxx@ntdev…
Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

¥@¥õ¬ì§Þ Accusys, Inc.
Hardware Department
¼B¤h»¨¡]Johnny Liu¡^
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw

Be careful on what you want to do with the PCI configuration space.
ScsiPortGetBusData
ScsiPortSetBusDataByOffset

These are accessable only in Findadapter and AdapterControl SetRunningConfig.
If you want to read the configuration when the driver is up and running apart from these two places then there is no way to safely get the PCI config space.

xxxxx@attotech.com wrote:
ScsiPortGetBusData
ScsiPortSetBusDataByOffset

Sent by: xxxxx@lists.osr.com
06/08/2006 04:44 AM
Please respond to
“Windows System Software Devs Interest List”

To
“Windows System Software Devs Interest List”
cc

Subject
[ntdev] How to access PCI configuration space in SCSI mini port driver

Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL
function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

Accusys, Inc.
Hardware Department
Johnny Liu?
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw


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


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


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Never say never. You can always sidestep SCSIPORT with a source module
compiled with DDK and then provide a proprietary interface between it and
the miniport. However, doing that will pretty well guarantee that you will
not pass WHQL, since most likely you will also have to "steal’ the PDO to
do anything.

The personal opinion of
Gary G. Little


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.com
Sent: Thursday, June 08, 2006 4:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] How to access PCI configuration space in SCSI mini
port driver

Be careful on what you want to do with the PCI configuration space.

ScsiPortGetBusData
ScsiPortSetBusDataByOffset

These are accessable only in Findadapter and AdapterControl
SetRunningConfig.

If you want to read the configuration when the driver is up and running
apart from these two places then there is no way to safely get the PCI
config space.

xxxxx@attotech.com wrote:

ScsiPortGetBusData
ScsiPortSetBusDataByOffset

Sent by: xxxxx@lists.osr.com
06/08/2006 04:44 AM
Please respond to
“Windows System Software Devs Interest List”

To
“Windows System Software Devs Interest List”
cc

Subject
[ntdev] How to access PCI configuration space in SCSI mini port driver

Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL
function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

Accusys, Inc.
Hardware Department
Johnny Liu?
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw


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


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


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 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I will give you that…but
>>>>> “However, doing that will pretty well guarantee that you will not pass WHQL, since most likely you will also have to “steal’ the PDO to do anything.”

this is what I ment by NEVER :slight_smile:

Thanks,

  • Driver_coder.

xxxxx@seagate.com wrote:
v:* {behavior:url(#default#VML);} o:* {behavior:url(#default#VML);} w:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1:*{behavior:url(#default#ieooui) } Never say never. You can always sidestep SCSIPORT with a source module compiled with DDK and then provide a proprietary interface between it and the miniport. However, doing that will pretty well guarantee that you will not pass WHQL, since most likely you will also have to “steal’ the PDO to do anything.
The personal opinion of
Gary G. Little


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, June 08, 2006 4:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] How to access PCI configuration space in SCSI mini port driver

Be careful on what you want to do with the PCI configuration space.

ScsiPortGetBusData
ScsiPortSetBusDataByOffset

These are accessable only in Findadapter and AdapterControl SetRunningConfig.

If you want to read the configuration when the driver is up and running apart from these two places then there is no way to safely get the PCI config space.

xxxxx@attotech.com wrote:

ScsiPortGetBusData
ScsiPortSetBusDataByOffset

Sent by: xxxxx@lists.osr.com
06/08/2006 04:44 AM
Please respond to
“Windows System Software Devs Interest List”

To
“Windows System Software Devs Interest List”
cc

Subject
[ntdev] How to access PCI configuration space in SCSI mini port driver

Hi all,

I knew there are HalGetBusDataByOffset & HalSetBusDataByOffset HAL
function.
But if I use these function, Public Import test will failed in HCT 12.1.

How to access PCI configuration space if driver type is SCSI miniport.

Thanks.

Sincerely,

Accusys, Inc.
Hardware Department
Johnny Liu?
xxxxx@accusys.com.tw
Tel:886-3-6663988 Ext.355
Fax:886-3-6663990
http://www.accusys.com.tw


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


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


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 To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


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


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com