[Ilugc] doubts in kernel porting & device drivers
- From: madhukar_linux@xxxxxxxxxxx (Madhukar mythri)
- Date: Wed Jan 19 18:32:35 2005
Thanks for reply shakthi....
--- Shakthi Kannan <cyborg4k@xxxxxxxxx> wrote:
Address lines (from CPU) are mapped to I/O,
eventually
using the addressable memory region. Have to use
readl(), writel() functions.
Few address lines from CPU are used just for I/O
chip
select. As a result you have to use specific inb(),
outb() functions.
So, is physical address different from Physical
memory(RAM) address(as per u said) is it???
(in O.S books i had studied like, physical address
mean RAM address)
please reply to this....
ioaddr = ioremap(physical_addr, Len);
ioaddr should be of type - unsigned long.
oky...but, ioremap() returns type "void *" know...
So, should we type cast ...
please reply me...
Rgds
Madhukar
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to:
http://yahoo.shaadi.com/india-matrimony
Other related posts: