vbkr <> wrote:
>
>I need to develop a driver to read and write to a SMbus host controller.
>I have VIA VX855 chipset.My device is in the IO space of PCI bus 0 device 17
>function 0.
>My device is in the motherboard so it is always connected.so it is not shown
>in the device manager.
>
>I looked into portIO driver but I am not sure how to get the base address of
>my device in the driver since it is not plug and play?
>
>Can anyone suggest me what should be my approach towards this?
>
>Do I need to write a PCI function driver or portIO driver
We've just had a rather frustrating exchange on the NTDEV list about this.
SMbus is a shadowy world that has a visceral existence somewhere between
BIOS and kernel, and that makes it rather difficult to access reliably.
Why do you need to read and write this space? What do you need to
accomplish?
If you know the I/O address, you can use portIO to access it. But if you
need to use PCI configuration space to find the I/O port number, that's a
more difficult problem. You can use HalGetBusData, although that's not
guaranteed safe.
--
Tim Roberts,
Providenza & Boekelheide, Inc.