Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > PCI config space - read only access

Reply
Thread Tools Display Modes

PCI config space - read only access

 
 
Raj
Guest
Posts: n/a

 
      07-01-2009

I need read-only access to PCI config space to detect hardware problems. I
developed 1394 device driver and use Windows bus driver. So I dont have
access to PCI config space where OHCI registers were mapped. I need to read
or display OHCI registers like Version to know which product to use or for
other debugging purpose.

1) Is there a kernel driver like WinUSB / tool that allows user application
to read PCI config space or any application that will display PCI config
space of a PC ?

2) Is it fairly easy to write a PCI kernel device driver that accomplishes
this. I know a device driver in Windows but never worked with PCI bus driver.

Thanks,
Raj



 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      07-01-2009

1) no
2) if you write such a driver you will remove all functionality of the
original dirver (like the ohci 1394 driver). you could write a lower filter
driver in KMDF that uses bus_starndard_interface to look at config space.
as long as you do this only in preparehw() and not at runtime once the pci
funciton driver is running, you should be OK

with that said, I would strongly discourage you from doing this. the amount
of information you can get from this driver is limited, but the amount of
risk you are incurring (esp if you are going to install it on all of your
customer's machines) is very high

d

--

This posting is provided "AS IS" with no warranties, and confers no rights.


"Raj" <> wrote in message
news:82AEC0C1-93A3-430A-A183-...
> I need read-only access to PCI config space to detect hardware problems. I
> developed 1394 device driver and use Windows bus driver. So I dont have
> access to PCI config space where OHCI registers were mapped. I need to
> read
> or display OHCI registers like Version to know which product to use or for
> other debugging purpose.
>
> 1) Is there a kernel driver like WinUSB / tool that allows user
> application
> to read PCI config space or any application that will display PCI config
> space of a PC ?
>
> 2) Is it fairly easy to write a PCI kernel device driver that accomplishes
> this. I know a device driver in Windows but never worked with PCI bus
> driver.
>
> Thanks,
> Raj
>
>
>

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restoring pci config space for a device kobi n Windows Vista Drivers 14 03-05-2008 06:00 AM
PCI : try to get parent's device config space Benoit Windows Vista Drivers 2 10-02-2007 07:59 AM
How to read extended config space on Windows XP Jeff Yang Windows Vista Drivers 0 04-09-2007 03:13 PM
PCI-Extended Config Space Rupesh Windows Vista Drivers 4 09-01-2005 06:20 AM
PCI Bus Filter driver to read config space? HyperWalker Windows Vista Drivers 5 07-15-2004 12:21 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59