Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

Dumping all PCI configuration space

OSR_Community_UserOSR_Community_User Member Posts: 110,217
I want to dump all of the PCI configuration space on all devices in the
system for reasons not worth going into.

PCIview (from Blue Water Systems at http:/www.bluewatersystems.com/) is a
great program, but unfortunately, you can't save the results or print them.
And since the window can't be resized, doing screen dumps is annoying since
it only shows 0x40 bytes at a time. You also can't cut-and-paste from the
dump window. So, there's no way to get the data out of that program.

SoftICE's PCI command only dumps the first "common" part of the
configuration space, which isn't enough for me. It also has a bug which I
reported long ago whereby it only dumps bus 0 on Intel motherboards.
(That's because Intel motherboards never have a bus 1 for some reason, and
SoftICE gets confused and decides to stop at that point.)

Does anyone know of any tools where I could do this? (Yes, I could just
write my own, and will, if I can't find one.)

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    The NT2000 DDK contains "Compaq PCI Configuration Utility V1.3.1". This is
    a control panel applet that does what you are looking for. It will allow
    you to save the information as well as modify the config registers.

    It is located in ntddk\TOOLS\PCITOOL

    -Mike

    ----- Original Message -----
    From: "Taed Nelson" <[email protected]>
    To: "NT Developers Interest List" <[email protected]>
    Sent: Thursday, April 06, 2000 1:18 PM
    Subject: [ntdev] Dumping all PCI configuration space


    > I want to dump all of the PCI configuration space on all devices in the
    > system for reasons not worth going into.
    >
    > PCIview (from Blue Water Systems at http:/www.bluewatersystems.com/) is a
    > great program, but unfortunately, you can't save the results or print
    them.
    > And since the window can't be resized, doing screen dumps is annoying
    since
    > it only shows 0x40 bytes at a time. You also can't cut-and-paste from the
    > dump window. So, there's no way to get the data out of that program.
    >
    > SoftICE's PCI command only dumps the first "common" part of the
    > configuration space, which isn't enough for me. It also has a bug which I
    > reported long ago whereby it only dumps bus 0 on Intel motherboards.
    > (That's because Intel motherboards never have a bus 1 for some reason, and
    > SoftICE gets confused and decides to stop at that point.)
    >
    > Does anyone know of any tools where I could do this? (Yes, I could just
    > write my own, and will, if I can't find one.)
    >
    >
    > ---
    > You are currently subscribed to ntdev as: [email protected]
    > To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hi,

    what about trying to use the Windows 2000 Control panel applet for
    displaying PCI Configuration space (it is available in Windows 2000 DDK..)?
    I don't know if it works on NT 4.0 (by theory it should work.
    Syam.

    -----Original Message-----
    From: Taed Nelson [mailto:[email protected]]
    Sent: Thursday, April 06, 2000 1:19 PM
    To: NT Developers Interest List
    Subject: [ntdev] Dumping all PCI configuration space


    I want to dump all of the PCI configuration space on all devices in the
    system for reasons not worth going into.

    PCIview (from Blue Water Systems at http:/www.bluewatersystems.com/) is a
    great program, but unfortunately, you can't save the results or print them.
    And since the window can't be resized, doing screen dumps is annoying since
    it only shows 0x40 bytes at a time. You also can't cut-and-paste from the
    dump window. So, there's no way to get the data out of that program.

    SoftICE's PCI command only dumps the first "common" part of the
    configuration space, which isn't enough for me. It also has a bug which I
    reported long ago whereby it only dumps bus 0 on Intel motherboards.
    (That's because Intel motherboards never have a bus 1 for some reason, and
    SoftICE gets confused and decides to stop at that point.)

    Does anyone know of any tools where I could do this? (Yes, I could just
    write my own, and will, if I can't find one.)


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    1. Q178660 - SAMPLE: Dumppci.exe Shows How To Dynamically Load/Unload Driver

    Perry Smith
    Compuware Corp.

    -----Original Message-----
    From: Taed Nelson [mailto:[email protected]]
    Sent: Thursday, April 06, 2000 10:19 AM
    To: NT Developers Interest List
    Subject: [ntdev] Dumping all PCI configuration space


    I want to dump all of the PCI configuration space on all devices in the
    system for reasons not worth going into.

    PCIview (from Blue Water Systems at http:/www.bluewatersystems.com/) is a
    great program, but unfortunately, you can't save the results or print them.
    And since the window can't be resized, doing screen dumps is annoying since
    it only shows 0x40 bytes at a time. You also can't cut-and-paste from the
    dump window. So, there's no way to get the data out of that program.

    SoftICE's PCI command only dumps the first "common" part of the
    configuration space, which isn't enough for me. It also has a bug which I
    reported long ago whereby it only dumps bus 0 on Intel motherboards.
    (That's because Intel motherboards never have a bus 1 for some reason, and
    SoftICE gets confused and decides to stop at that point.)

    Does anyone know of any tools where I could do this? (Yes, I could just
    write my own, and will, if I can't find one.)


    ---
    You are currently subscribed to ntdev as: [email protected]
    To unsubscribe send a blank email to $subst('Email.Unsub')
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    > I want to dump all of the PCI configuration space on all
    > devices in the
    > system for reasons not worth going into.

    I got a lot of suggestions from people (some private, and some to the list),
    and the best and simplest solution was to use the PCI Configuration Control
    Panel tool, which is provided with the Windows 2000 DDK (you have to select
    it at install time).

    It can also be downloaded from:
    http://www.compaq.com/support/files/alphant/drivers/index.html

    Additionally, I spoke with a fellow who works on SoftICE, and the bug I
    mentioned, while present in 3.25, is fixed in 4.05.

    Thanks to all!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 15 November 2021 Live, Online
Writing WDF Drivers 24 January 2022 Live, Online
Developing Minifilters 7 February 2022 Live, Online
Kernel Debugging 21 March 2022 Live, Online