PCMCIA fun

Geert Uytterhoeven geert at linux-m68k.org
Thu Mar 18 17:56:33 GMT 2004


On Thu, 18 Mar 2004, David Hinds wrote:
> On Thu, Mar 18, 2004 at 10:14:44AM +0100, Geert Uytterhoeven wrote:
> > > - drivers/net/pcmcia/pcnet_cs.c:
> > >   The first one I tried (since it's my normal Ethernet card). It didn't
> > >   compile cleanly: it uses __raw_writew() and __raw_readw() to transfer
> > >   date to/from the shared memory buffer on some cards, and we don't have
> > >   those. I'm not sure how to define them though, should they be "native"
> > >   byte order? That would mean I have to byte-swap them on Gayle, right?
> > >   I can't test these since I don't have a shared-memory NE2000 clone.
> >
> > Ugh, __raw_{write,read}w() are architecture-dependant, and not to be used by
> > common code.
>
> I'm not sure I follow.  All low-level IO services are architecture
> dependant, right?  Do you mean that the existence of these calls is
> architecture dependant?  They seem to be available on at least all
> widely used architectures, and while many drivers do not use them,
> there are quite a few that do.

Their existence and behavior (w.r.t. to e.g. byteswapping and barriers) is
architecture-dependent.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds



More information about the linux-pcmcia mailing list