A query on HalSetBusDataByOffset

Hi,

Is it possible that a driver installed for a device can write
to the PCI config space of another device using “HalSetBusDataByOffset”?

Thanks & Regards

Anand

If you read the docs you’ll find that function is obsolete, and the standard recommendation is to not use the function. The question then is, what are you doing that you think you need to directly access PCI configuration space? Unless you wrote the PCI bus driver, and I’m fairly certain you didn’t, you have no business accessing configuration space outside of established mechanisms which have been discussed here more times than can be counted.

Gary G. Little

----- Original Message -----
From: “Anand SK”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, February 2, 2011 4:56:00 AM
Subject: [ntdev] A query on HalSetBusDataByOffset

Hi,

Is it possible that a driver installed for a device can write to the PCI config space of another device using “HalSetBusDataByOffset”?

Thanks & Regards

Anand — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

“Anand SK” <> wrote in message news:xxxxx@ntdev…

Hi,

Is it possible that a driver installed for a device can write
to the PCI config space of another device using “HalSetBusDataByOffset”?

Questions like this already were asked before, in context of a PCI device
driver
that needs to tweak settings of its parent PCI bridge, on some newer SoC.

Is this your case?

–pa

Anand SK wrote:

Is it possible that a driver installed for a device can
write to the PCI config space of another device using
“HalSetBusDataByOffset”?

Is it possible? Yes. Is is safe? No. There was a discussion earlier
this week (and the week is still young) about this very topic.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.