public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Driver access ito PCI card memory space question.
@ 2004-10-06 20:20 Alan Kilian
  2004-10-06 22:43 ` Roland Dreier
  2004-10-06 22:51 ` Richard B. Johnson
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Kilian @ 2004-10-06 20:20 UTC (permalink / raw)
  To: linux-kernel



  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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Driver access ito PCI card memory space question.
@ 2004-10-14 20:47 Alan Kilian
  2004-10-14 21:22 ` Jesper Juhl
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Kilian @ 2004-10-14 20:47 UTC (permalink / raw)
  To: linux-kernel



  I want to thank everyone for helping me get my Solaris driver 
  running under Linux.

  It's taken three days, but it appears to be working, it passes all
  my hardware diagnostics and I'm ready to hook it up to the
  application layer. I think going from knowing NOTHING about the
  Linux kernel to a working PCI bus driver in three days is not too 
  shabby.
  
  The Rubini and Corbet book helped a LOT, but it helped more after
  I knew what I was doing a bit.

  I suspect I'll be back when I start implementing the DMA part.

  Hey! what RPM do I install so I can get man pages for kernel
  functions? A man page for readl() sure would have been useful.

  Thanks a million folks!!!

                            -Alan

-- 
- Alan Kilian <kilian(at)timelogic.com> 
Director of Bioinformatics, TimeLogic Corporation 763-449-7622

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-14 21:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 20:20 Driver access ito PCI card memory space question Alan Kilian
2004-10-06 22:43 ` Roland Dreier
2004-10-08 16:59   ` Erik Mouw
2004-10-06 22:51 ` Richard B. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 20:47 Alan Kilian
2004-10-14 21:22 ` Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox