[Ilugc] doubts in kernel porting & device drivers

  • From: madhukar_linux@xxxxxxxxxxx (Madhukar mythri)
  • Date: Thu Jan 20 10:24:54 2005

oky shakthi..
Thanks for clearing all my doubts

Rgds
Madhukar
--- Shakthi Kannan <cyborg4k@xxxxxxxxx> wrote:

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
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx
with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail ;

Other related posts: