From: kilian@bobodyne.com (Alan Kilian)
To: linux-kernel@vger.kernel.org
Subject: Driver access ito PCI card memory space question.
Date: Wed, 6 Oct 2004 15:20:25 -0500 (CDT) [thread overview]
Message-ID: <200410062020.i96KKPN13520@raceme.attbi.com> (raw)
Folks,
I'm not sure how to access the memory spaces on my PCI card.
I do
From /var/log/messages:
SSE: Start of card attachment.
SSE: Found a DeCypher card, interrupting on line 3
SSE: Bar0 From 0xfeaff000 to 0xfeafffff F=0x200 MEMORY space
SSE: Bar1 From 0xfeafc000 to 0xfeafdfff F=0x200 MEMORY space
SSE: Bar2 From 0xfe000000 to 0xfe7fffff F=0x200 MEMORY space
My driver detects the card, and asks about the memory areas.
Then I do request_mem_area(0xfeaff000,4095, "SSE");
Then I do a readl(0xfeaff100); and get this:
Unable to handle kernel paging request at virtual address feaff100
Any hints? Maybe these are byte-addresses, and I need to do:
readl(0xfeaff100>>2);
I'm just beginning this adventure, so please excuse the basic
questions.
-Alan
--
- Alan Kilian <kilian(at)timelogic.com>
Director of Bioinformatics, TimeLogic Corporation 763-449-7622
next reply other threads:[~2004-10-06 22:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-06 20:20 Alan Kilian [this message]
2004-10-06 22:43 ` Roland Dreier
2004-10-08 16:59 ` Erik Mouw
2004-10-06 22:51 ` Richard B. Johnson
2004-10-14 20:47 Alan Kilian
2004-10-14 21:22 ` Jesper Juhl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410062020.i96KKPN13520@raceme.attbi.com \
--to=kilian@bobodyne.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®