> Date:          Fri, 30 Mar 2001 08:39:46 -0500 (EST)
> From:          Nicolas Pitre <[EMAIL PROTECTED]>
> To:            Jordi Colomer <[EMAIL PROTECTED]>
> Cc:            "Linux Arm Mailing List (E-Mail)" <[EMAIL PROTECTED]>
> Subject:       Re: accessing 16Bit memory

>
>
> On Fri, 30 Mar 2001, Jordi Colomer wrote:
>
> > Nicolas Pitre escribió:
> > >
> > > On Thu, 29 Mar 2001, Peter Lueg wrote:
> > >
> > > > Hi, list
> > > >
> > > > anybody who can tell me how to access 16Bit PCMCIA memory while still using
> > > > longs? If I try to copy a mmapped region from PCMCIA memory space to some
> > > > buffer
> > > > using memcpy, I apparently only get the lower half words copied, the upper ones
> > > > containing garbage.
> > > >
> > > > Can I tell the compile how to handle certain variables so that he generates
> > > > half word accesses automagically?
> > > >
> > > > Do I have to write my own memcpy which uses 16Bit acceses only or is there an
> > > > alternate routine which does the job?
> > >
> >
> > And what about accessing 16-bit devices in a static bank using memcpy ?
> > I guess it would be enough by selecting 16-bit mode in the MSCx
> > registers and use memcpy in the usual way, isn't it ?
>
> This isn't about static bank, but PCMCIA memory.  They don't work the same.
>
>
> Nicolas
>
>
>

You are absolutely right, but we might be able to wire up the memory
in bank 3 , for example. That way we could use long accesses, which
are translated to consecutive 16Bit accesses.

BTW I really do not understand why they forgot to implement the
adjustable bus size for PCMCIA memory. Since the hardware hooked up
to PCMCIA slots is 16Bit (at most) it would have made a lot sense to
default to 16Bit width.

Andreas

---
DSA - Daten- und Systemtechnik GmbH
Dr. Ing. Andreas Hofer
Pascalstrasse 28
52076 Aachen- Oberforstbach
Tel. : 0 24 08 - 94 92 43
FAX  : 0 24 08 - 94 92 92
EMAIL: [EMAIL PROTECTED]
---

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to