Linux MIPS Architecture development
 help / color / mirror / Atom feed
* How to the the physical addresses under linux (au1500)
@ 2005-05-03 19:56 Sergio Ruiz
  2005-05-03 20:09 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Sergio Ruiz @ 2005-05-03 19:56 UTC (permalink / raw)
  To: linux-mips

I am trying to program  the DMA (with the ac97) in assembler using a
linux kernel module for mips teaching purposes.
The problem is that I need to get the physical address of the pointer
to the buffer to transfer to the AC97.
Looking at the kernel source code, I found that I can get the physical
address subtracting 0x8000000, but It doesnt seem to work.

Any idea?

Thanks,

Sergio

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: How to the the physical addresses under linux (au1500)
@ 2005-05-03 21:04 Sergio Ruiz
  2005-05-03 21:49 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Sergio Ruiz @ 2005-05-03 21:04 UTC (permalink / raw)
  To: linux-mips

On 5/3/05, Dan Malek <dan@embeddededge.com> wrote:
>
> On May 3, 2005, at 3:56 PM, Sergio Ruiz wrote:
>
> > I am trying to program  the DMA (with the ac97) in assembler using a
> > linux kernel module for mips teaching purposes.
>
> I think you want to choose a more simple teaching example :-)

Well, in fact we are two the students, the teacher gave us a xxs1500
and invited us to go as far as we could. It is a computer arquitecture
subject, so we wanted to use some periferic under linux and
assembler(requiered) to promote GNU stuff with other students.

The other alternative was to use YAMON, but we like linux and look
around YOUR source code ;-)

>
> > Looking at the kernel source code, I found that I can get the physical
> > address subtracting 0x8000000, but It doesnt seem to work.
>
> Not always.  On systems like this one that are not cache coherent,
> we play games with mapped addresses to get uncached spaces
> or you need to apply various macros/functions to keep the space
> coherent.
>

We got the ac97 working, so we would make it much cooler if we get the
DMA working with the ac97. If there is no way, no problem.

So, If there is a way to get it I would appreciate it a lot. We use a
char device so I have to make an external program to pass the buffer.
Using this way, is there any easy way to solve the problem??


> > Any idea?
>
> Use a more simple example.  Maybe just update one of the
> LED displays on the board.
>
>
>         -- Dan
>
>

Thanks a lot! If there is no solution, dont worry,

Thanks again,

Sergio

If anyone is interested, we are documenting what we are doing, but it
is in spanish :(

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

end of thread, other threads:[~2005-05-03 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-03 19:56 How to the the physical addresses under linux (au1500) Sergio Ruiz
2005-05-03 20:09 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2005-05-03 21:04 Sergio Ruiz
2005-05-03 21:49 ` Wolfgang Denk

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