linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: map iomem in linux_2_4_dev
@ 2002-05-28 10:38 Sangmoon Kim
  2002-05-28 13:23 ` Matt Porter
  0 siblings, 1 reply; 15+ messages in thread
From: Sangmoon Kim @ 2002-05-28 10:38 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
>
> No, that's rubbish.  Use one or the other. ioremap() takes a physical
> address and returns the virtual address at which it mapped it.
>
Sometimes it is needed to use  io_block_mapping and ioremap.
io_block_mapping maps a phiscal address to a virtual address.
And ioremap returns the virtual address.
When I ported linux on an MPC755 based custom board.
My hardware didn't running because it had a serial port at 0x78000000.
Linux uses 0 to 0x7fffffff as a virtual memory for applications.
And the address of 0x78000000 overlaped the serial port.
I had to use io_block_mapping to map it at different location on system initialization,
and ioremap to get the mapped address on serial port driver.
I'm sorry, if it's another rubbish.
-Sangmoon Kim-


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* map iomem in linux_2_4_dev
@ 2002-05-27  5:59 shaowei dai
  2002-05-27  6:34 ` David Gibson
  0 siblings, 1 reply; 15+ messages in thread
From: shaowei dai @ 2002-05-27  5:59 UTC (permalink / raw)
  To: linuxppc-embedded


Hello, every one:

I've searched through the achieve, but failed to find stuff about mapping
io-memmory in this linux_2_4_dev version.
After check the source code, it seems from 2_4_dev onwards, no need to use
ioremap to map io memory. We
should use io_block_mapping() instead.

What confused me is that after i add the following statement in
m8xx_setup.c. My pcmcia_cs package still can't get access to this address.
The mesage from pcmcia is : GetNextTuple: No more items.

What i add in m8xx_setup.c is:

#ifdef CONFIG_FADS

io_block_mapping(PCMCIA_MEM_ADDR,PCMCIA_MEM_ADDR,PCMCIA_MEM_SIZE,_PAGE_IO);
#endif

But after i insert my PCMCIA card to my FADS board, i check the
/var/log/debug information. I found that:
...
m8xx_pcmcia: SetMemMap(0,0,0x21,300 ns, 0xff020000-0xff020000, 0x0000)
----
Does anyone know why this SetMemMap size is 0 instead of PCMCIA_MEM_SIZE? Is
this the reason of pcmcia module fail?

Appreciate your help!


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-05-29 12:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-28 10:38 map iomem in linux_2_4_dev Sangmoon Kim
2002-05-28 13:23 ` Matt Porter
2002-05-29  4:57   ` Sangmoon Kim
2002-05-29  5:47     ` Roland Dreier
2002-05-29  6:01       ` Sangmoon Kim
2002-05-29  5:47     ` David Gibson
2002-05-29  6:14       ` Sangmoon Kim
2002-05-29 12:48       ` shaowei dai
  -- strict thread matches above, loose matches on Subject: below --
2002-05-27  5:59 shaowei dai
2002-05-27  6:34 ` David Gibson
2002-05-27  6:51   ` shaowei dai
2002-05-27  8:13     ` Sangmoon Kim
2002-05-27  8:13       ` shaowei dai
2002-05-28  0:36         ` David Gibson
2002-05-28  4:42           ` Sangmoon Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).