Re: problems with pcnet_cs and powerpc

David Hinds <[email protected]> Tue, 1 Jul 2003 10:31:28 -0700
Newsgroups gmane.linux.pcmcia.devel
Message-ID <[email protected]>
On Tue, Jul 01, 2003 at 03:37:51PM +0200, Oliver Kurth wrote:
> 
> I solved that problem, it was in m8xx_pcmcia.c. I changed there in 
> m8xx_set_io_map() the line
> if(io->flags & (MAP_16BIT | MAP_AUTOSZ))
> to
> if(io->flags & (MAP_16BIT))
> 
> I can now read the hardware address correctly - it seems that the card 
> has to be configured for 8bit access. But network does not work. If I
> do a ping to another host connected with a cross link cable, I see 
> garbled packages with weird src and dst addresses with ethereal.
> 
> I am stuck...
> 
> I still believe it's a problem with m8xx_pcmcia, but I do not know 
> where. And it's hard to me to belive that the card is only 8bit.

This type of card is "16 bit" but has a mix of 8-bit and 16-bit
registers.  It sounds like 8-bit accesses to odd addresses do not work
properly in an IO window configured for 16-bit width.  But, it also
sounds like 16-bit operations do not work in an IO window configured
for 8-bit width.  Hmmm.  I don't know how one would deal with a mix of 
register sizes on this platform; I am not familiar with it at all.

-- Dave


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01