RE: Kernel 5.15 Amiga PCMCIA apne driver not working
- To: Michael Schmitz <schmitzmic@gmail.com>, "debian-68k@lists.debian.org" <debian-68k@lists.debian.org>
- Subject: RE: Kernel 5.15 Amiga PCMCIA apne driver not working
- From: Carlos Milán Figueredo <cmilanf@hispamsx.org>
- Date: Sat, 1 Jan 2022 03:22:19 +0000
- Message-id: <[🔎] CO6P220MB05643D6E174905BAD77A1599C9479@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM>
- In-reply-to: <7303621b-809d-9ae4-e06a-4b66e75ac07b@gmail.com>
- References: <CO6P220MB0564196D506CE45F9331D80BC96F9@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM> <00eddad2-6ae3-36e7-bc07-bf3beac4c16e@gmail.com> <CO6P220MB05644DC346117A6D2B82F900C9789@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM> <CO6P220MB0564856FD73C067B8A0D422FC9789@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM> <CO6P220MB0564D3A2778F7C2A4D1A93B1C9409@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM> <69b1d9bd-4267-3e2a-7d76-a06ba806d0bc@gmail.com> <CO6P220MB0564B028EF2E09EAA675ED04C9449@CO6P220MB0564.NAMP220.PROD.OUTLOOK.COM> <7303621b-809d-9ae4-e06a-4b66e75ac07b@gmail.com>
Hi Michael, happy new year!
From: Michael Schmitz <schmitzmic@gmail.com>
Sent: viernes, 31 de diciembre de 2021 8:51
> Thanks, I'll check the prefix size and send a patch by PM.
I will need also some help for testing it, as I do not have a Linux working install on my Amiga because I need hd-media initrd and network support :) I am able to boot a kernel with an initrd.
> Doesn't print the ring buffer addresses - might need a patch to the BSD
> source to do that (I haven't looked at BSD source in over 20 years). Or
> maybe some equivalent of ethtool reports the addresses, or they show up
> in ifconfig output?
I am afraid ifconfig doesn't print anything about the ring buffer, and -to my knowledge- there is not equivalent ethtool.
> But what I meant is to check whether the ne driver source hard-codes the
> ring buffer addresses for these cards?
Maybe we can know by taking a look to the NetBSD driver source code? I think it is located on the following files:
1. Gayle PCMCIA driver [1].
2. ne2000.c [2], ne2000reg.h [3], ne2000var.h [4]
3. dp8390reg.h [5], dp8390var.h [6]
I don't have the needed knowledge about the NE2000 driver or the kernel, but to my untrained eye it doesn't look like there is anything hardcoded for these cards.
> There's a patch of mine floating around that uses CIS data to figure out
> 8 or 16 bit IO width (submitted to linux-m68k and netdev a while ago).
> With that one applied, dumping the CIS data and hand-parsing the result
> might be one way to obtain the necessary data.
In [2] there is a function called ne2000_detect_8bit() that is used for that. It looks like it reads the card ROM to figure out. I don't know if the CIS is considered a ROM or not.
[1] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/amiga/dev/gayle_pcmcia.c?rev=1.34&content-type=text/x-cvsweb-markup
[2] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/ne2000.c?rev=1.77&content-type=text/x-cvsweb-markup
[3] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/ne2000reg.h?rev=1.3.8.1&content-type=text/x-cvsweb-markup
[4] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/ne2000var.h?rev=1.27.30.1&content-type=text/x-cvsweb-markup
[5] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/dp8390reg.h?rev=1.8.116.1&content-type=text/x-cvsweb-markup
[6] http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ic/dp8390var.h?rev=1.36&content-type=text/x-cvsweb-markup
Regards,
Carlos
Carlos Milán Figueredo | HispaMSX System Operator | http://www.hispamsx.org | telnet://bbs.hispamsx.org | https://calnus.com
Reply to: