[Ilugc] doubts in kernel porting & device drivers

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Wed Jan 19 23:22:40 2005

Hi,

--- Madhukar mythri <madhukar_linux@xxxxxxxxxxx>
wrote:

(in O.S books i had studied like, physical address
mean RAM address)

Not necessarily. It depends on the architecture.
Having 32 address lines gives the ability to address a
4G address space. Where it is mapped to depends on the
hardware.
 
      ioaddr = ioremap(physical_addr, Len);
ioaddr should be of type - unsigned long.

 oky...but, ioremap() returns type "void *"  know...
So, should we type cast ...

void * is a generic type. It cannot be used directly.
It is useful to pass addresses (that can represent
anything). You will need to typecast it to use it.

"Suriya Narayanan M S" <mssnlayam@xxxxxxxx> wrote:
PS: Not to offend you, but this attitude is really 
irritating. ILUGC is
not a technical support center.

No offence, but, if you do not wish to reply, please
ignore the e-mail. But, don't discourage a person from
asking questions. I don't see why ILUGC cannot be a
technical support center. It is a great place to learn
and provide technical help :)

Regards,

K Shakthi

=====
--------------------------------------------------------------------------
K Shakthi
Specsoft (Hexaware Technologies), ASIC Design Center
http://www.geocities.com/shakthimaan
--------------------------------------------------------------------------


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

Other related posts: