Re: HELP:(VIPER BOARD)AC'97 controller driver for rtlinux(rtlinux core driver)

2005-04-06 Thread nitin ahuja
Hi,

>
> I am trying to develop a codec driver (rtlinux 
> driver) from scratch. In Viper board (PXA255) 
> physical memory range 0x4000-0x43FF is used 
> by the PXA255 peripherals.In that address range
> 0x4050-0x405005FC is needed for AC'97 controller
> registers. Is this memory range is already mapped to
> virtual address space, else How to map this to 
> virtual address space.
>

You have to map this address range using "ioremap()". Data at address returned 
by ioremap can be accessed by calling readl(), writel() et al

>
> When i tried ioremap() it is giving same virtual
> address with different physical address(i tried
> ioremap with another driver(same board)with different
> physical memory address)
>

Same virtual address can point to different physical addresses depending upon 
how it is mapped.

Nitin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


HELP:(VIPER BOARD)AC'97 controller driver for rtlinux(rtlinux core driver)

2005-04-06 Thread nobin matthew
Dear friends,

I am trying to develop a codec driver (rtlinux driver)
from scratch.
In Viper board (PXA255) physical memory range
0x4000-0x43FF is used by the PXA255
peripherals.In that address range
0x4050-0x405005FC is needed for AC'97 controller
registers. Is this memory range is already mapped to
virtual address space, else How to map this to virtual
address space.

When i tried ioremap() it is giving same virtual
address with different physical address(i tried
ioremap with another driver(same board)with different
physical memory address)
 
Or if this driver already available for RTLinux Please
sent me.

Nobin Mathew





__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


HELP:(VIPER BOARD)AC'97 controller driver for rtlinux(rtlinux core driver)

2005-04-06 Thread nobin matthew
Dear friends,

I am trying to develop a codec driver (rtlinux driver)
from scratch.
In Viper board (PXA255) physical memory range
0x4000-0x43FF is used by the PXA255
peripherals.In that address range
0x4050-0x405005FC is needed for AC'97 controller
registers. Is this memory range is already mapped to
virtual address space, else How to map this to virtual
address space.

When i tried ioremap() it is giving same virtual
address with different physical address(i tried
ioremap with another driver(same board)with different
physical memory address)
 
Or if this driver already available for RTLinux Please
sent me.

Nobin Mathew





__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: HELP:(VIPER BOARD)AC'97 controller driver for rtlinux(rtlinux core driver)

2005-04-06 Thread nitin ahuja
Hi,


 I am trying to develop a codec driver (rtlinux 
 driver) from scratch. In Viper board (PXA255) 
 physical memory range 0x4000-0x43FF is used 
 by the PXA255 peripherals.In that address range
 0x4050-0x405005FC is needed for AC'97 controller
 registers. Is this memory range is already mapped to
 virtual address space, else How to map this to 
 virtual address space.


You have to map this address range using ioremap(). Data at address returned 
by ioremap can be accessed by calling readl(), writel() et al


 When i tried ioremap() it is giving same virtual
 address with different physical address(i tried
 ioremap with another driver(same board)with different
 physical memory address)


Same virtual address can point to different physical addresses depending upon 
how it is mapped.

Nitin

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/