flat assembler
Message board for the users of flat assembler.

Index > DOS > PCI Memory map access (based on BAR in the config register)

Author
Thread Post new topic Reply to topic
ZDemon



Joined: 18 Aug 2006
Posts: 2
ZDemon
Hi guys,

I've been tinkering with my code on how to access my PCI card memory mapped BAR.

I've checked the config using port cf8h-cfch register, it shows BAR0=F4000000h.

My device is a fpga board. I coded the board by myself. It works when i use the diagnostic software provided with the card, i can read/write to the memory address f4000000h using it.

What it does is just acts like RAM, just store data in the memory address. I just dont know how to access it.

Can anyone help me? I want to access it using simple means, similar to how you read/write to the pci config register, and not by learning microsoft DDK.

Thanks.
Post 19 Aug 2006, 11:49
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
I maybe wrong, but i think it simular to read/write to pci reg, this code may help, http://www.programmersheaven.com/download/23237/download.aspx
Note: you may not be able to do much from with in XP, win98 sould be OK.
Post 19 Aug 2006, 17:24
View user's profile Send private message Reply with quote
ZDemon



Joined: 18 Aug 2006
Posts: 2
ZDemon
Im using WinxP.......

WinIO, giveIO, all those only open IO ports, but not the memory mapped io ports.

Is there any solution?
Post 19 Aug 2006, 18:24
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
ZDemon wrote:
Im using WinxP.......

WinIO, giveIO, all those only open IO ports, but not the memory mapped io ports.

Is there any solution?


Code a driver Smile - that really IS the best way to do stuff. Alternatively a mix of accessing the windows equivalent of /dev/mem mixed with user-mode I/O access... but that's pretty dirty IMHO.

_________________
Image - carpe noctem
Post 20 Aug 2006, 11:51
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
Or boot to a more hardware hacker friendly OS Wink.
Post 20 Aug 2006, 17:01
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.