* placing of ioremap ?
@ 2001-05-01 12:38 ashish anand
2001-05-01 19:33 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: ashish anand @ 2001-05-01 12:38 UTC (permalink / raw)
To: linuxppc-embedded
I have one question regarding the placing of ioremap call
suppose i have done ioremap call inside the mm/init.c
for pci i/o or memory space ..and if this space is above
the ioremap_base i would be having the virtual address
equal to physical address
now i don't need to call ioremap inside the driver code
since the resources (either pci i/o or memory or both) that
i am supposed to give a particular card has already been
ioremapped by now
in case my bios has not done the resource allocation
i have to just write the proper values in PCI_BASE_ADDRESS
registers of that pci card. Am I Correct?
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: placing of ioremap ?
2001-05-01 12:38 placing of ioremap ? ashish anand
@ 2001-05-01 19:33 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2001-05-01 19:33 UTC (permalink / raw)
To: ashish anand; +Cc: linuxppc-embedded
ashish anand wrote:
>
> I have one question regarding the placing of ioremap call
> suppose i have done ioremap call inside the mm/init.c
> for pci i/o or memory space
Well, you really shouldn't.......The PCI I/O space could be
done there so the usual inb/outb and friends work. PCI memory
space should not be mapped there, it is done by the driver.
> in case my bios has not done the resource allocation
> i have to just write the proper values in PCI_BASE_ADDRESS
> registers of that pci card. Am I Correct?
You should include the Linux PCI auto config function. It will
do this plus properly assign the interrupts.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-01 19:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-01 12:38 placing of ioremap ? ashish anand
2001-05-01 19:33 ` Dan Malek
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).