Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to access the pci configuration space ?

Status
Not open for further replies.

malcolm_119

Newbie level 4
Newbie level 4
Joined
Jul 14, 2006
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,317
access pci configuration space dos

I need to test the PCI board under DOS , but I don't know how to access the pci
configuration register.

Knowing this will be of help to me in my routine.
Thanks
 

I haven't done that in many years, but try searching for info describing BIOS 0x1A calls such as these:

PCI_READ_CONFIG_BYTE 0xB108
PCI_READ_CONFIG_WORD 0xB109
PCI_READ_CONFIG_DWORD 0xB10A
PCI_WRITE_CONFIG_BYTE 0xB10B
PCI_WRITE_CONFIG_WORD 0xB10C
PCI_WRITE_CONFIG_DWORD 0xB10D

You can probably find example code by searching Google for some of those keywords. Here's a web page with parameter details:
http://www.delorie.com/djgpp/doc/rbinter/ix/1A/B1.html

Also very helpful: "PCI BIOS Specification Revision 2.1":
**broken link removed**
 

Thanks a lot !

The two links are very important ~~
 

use the "hardware direct" software. it can access to the config space, memory space, IO space.
I was using it to test my PCI card.
But of course, the software guys will have to drive a "real" driver.

there is a pci sniffer software, it boots instead of OS, you can read, but not write the PCI card config regs
 

one more thing:

in the IO space, there is a PCI config Address, and a PCI config data register. with those, you can access to the config space, in a driver software.
 

buenos said:
one more thing:

in the IO space, there is a PCI config Address, and a PCI config data register. with those, you can access to the config space, in a driver software.

With your help , I have found the add. reg & data reg (0xCF8 0xCFC )
Thanks !
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top