Re: problems with pcnet_cs and powerpc
Oliver Kurth <[email protected]> Thu, 3 Jul 2003 17:49:00 +0200
| Newsgroups | gmane.linux.pcmcia.devel |
|---|---|
| Message-ID | <20030703154859.GE9899@nimrod> |
On Wed, Jul 02, 2003 at 10:16:47AM -0700, David Hinds wrote: > On Wed, Jul 02, 2003 at 06:12:35PM +0200, Oliver Kurth wrote: > > > > It does not work. I tried replacing all occurences of insw and outsw > > with insb and outb, then writing even bytes to offset+0 and odd bytes to > > offset+1. No change at all... > > Oh... it is more complicated than that. There is a register setting > for 8/16 bit mode, now that I think about it. > > Change: > > ei_status.word16 = 1; > > to: > > ei_status.word16 = 0; > > You'll also need to remove the odd-byte handling and fix "count" to be > in bytes rather than words, around the insw/outsw code. Doesn't help... it's getting more weird. If word16=0, the packet consist of alternating ff and 00, no trace of the data left. I even tried setiing the buffer with numbers 0..count-1, to see what happens. If word16=1, the packet consists of one correct byte and one 00. The odd bytes are always zero. I tried to write to DATA_PORT+2 (I tried nearly everyting possible..), and the packet consisted of random data (but the odd bytes had data != 00). > > So I am stuck again. Do you know anyone with experience with 8390 type > > hardware I can ask? > > There are datasheets at http://pcmcia-cs.sourceforge.net/specs in the > National Semiconductor section. Thanks. I now understand what the flag word 16 is good for, but it does not have the desired effect. I give up now. I spent four whole days with it, and I have enough of it now. Maybe I get back to it some day... BTW, the modem part works fine. Fortunately, this was more important. Greetings, Oliver -- .''`. : :' : Oliver Kurth [email protected] `. `' Debian GNU/Linux maintainer - www.debian.org `-
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/BFBrUmVSJkUeqxsRAmSLAJ46jw7oDURt8uWvWE+wreOFETcMfgCgrOLl pK7w8a1OUJbGsBUFAwmy6+k= =bJNH -----END PGP SIGNATURE-----