linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* accessing immap_t * variable in mpc8260
@ 2003-03-13 15:24 Omanakuttan
  2003-03-13 15:30 ` Dan Malek
  2003-03-13 22:15 ` Paul Mackerras
  0 siblings, 2 replies; 4+ messages in thread
From: Omanakuttan @ 2003-03-13 15:24 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
We are writing existing drivers for mpc8260 FCC and writing new ones for
MCC. we are unable to small (may be foolish) problem of accessing immap
address registers.

In FCC code, eldk/ppc_82xx/usr/src/linux/arch/ppc/8260_io/fcc_enet.c,
immap_t * immap is simply typecasted to IMAP_ADDR, which is
((uint)0xf0000000).
Now, after assigning this physical address, fcc_enet code continues the
immap_t variable without doing any __va macro.

I am confused at this point, that how can kernel code access a physical
address as if it were virtual address ? how does the page frame -> page
conversion (and vice versa) happens on this front?

Thanks and regards,
Om.


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

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

end of thread, other threads:[~2003-03-14  5:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13 15:24 accessing immap_t * variable in mpc8260 Omanakuttan
2003-03-13 15:30 ` Dan Malek
2003-03-13 22:15 ` Paul Mackerras
2003-03-14  5:36   ` Omanakuttan

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).