[Ilugc] doubts in kernel porting & device drivers

  • From: cyborg4k@xxxxxxxxx (Shakthi Kannan)
  • Date: Tue Jan 18 13:06:57 2005

Hi,

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

      So i have a I/O-card which  supports both(as
per
/proc/pci)...
     which has I/O-address "C000".... for this I/O
when 
i do ioremap().. 

How? Show some snipped code.

it is failing"could not remap"...
why i could not understand??

Show me some error messages.

i had tested by "ioflags & IORESOURCE_IO"..it IO
region only...
but, it could not do ioremap()...

Does it compile?

 
       here i got one doubt:
     for ioremap() we have to pass physical address
as
first parameter....is IO-mapped address("C000") is
physical address????
 
The address you see in /proc/pci is physical address.
The address returned from ioremap is virtual address.

Regards,

K Shakthi

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


                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com ;

Other related posts: