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 find the base address of pci card through programming

Status
Not open for further replies.

hi_guy33

Newbie level 3
Joined
Jan 21, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
PCI Base Address

Hi,

I'm wondering if anyone knows of a way to find the base address of pci card through programming e.g. c++.

I did a search to no avail.

Thanks for any help
 

Re: PCI Base Address

What OS are you using?
 

Re: PCI Base Address

Hi microKernel,

I'm using Windows xp (SP3).
 

Re: how to find the base address of pci card through program

I am sure you know about PCI and when you say " base address of pci card ", you are probably referring to BARx (BAR0) value.

You can go to MSDN and find explanation of PCI for windows, guidelines on writing a driver as well as sample drivers.

If you haven't done windows driver development using WDK already then this is not going to be a simple task.

You may also want to have a look at Jungo's WinDriver and similar softwares that do major part of giving you access to the bus and detecting youe device and then can just concentrate on programming your device.

Some specific links
If you want to program through WDM directly, then you may start here
https://msdn.microsoft.com/en-us/library/ms789749.aspx

You may prefer to use WDF (A wrapper on WDM that handles most of the common functionality among different drivers). A generic sampe for that is
https://msdn.microsoft.com/en-us/library/dd163298.aspx
 

    hi_guy33

    Points: 2
    Helpful Answer Positive Rating
Re: how to find the base address of pci card through program

Thanks for the advice. Will take a look.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top