Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2005 12:25:28 +0100
From:      David Taylor <davidt@yadt.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: [PATCH] puc/ppc and amd64
Message-ID:  <20050413112527.GA12511@outcold.yadt.co.uk>
In-Reply-To: <20050407144539.GB55594@outcold.yadt.co.uk>
References:  <20050407144539.GB55594@outcold.yadt.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline

On Thu, 07 Apr 2005, David Taylor wrote:

> Hi,
> 
> I've got an amd64 box with 1 built-in parallel port, which works fine.
> 
> I also bought an add-on parallel port adapter card (a MosChip
> SemiConductors Nm9805 chip).  After discovering puc, I enabled
> device puc and the card is now detected by puc, but doesn't
> appear to be picked up by the ppc driver.

I have now, finally, figured out what was going on.  After much
wasted time trying to debug ppc_puc.c, I realised it wasn't
even being compiled in the kernel.  After adding dev/ppc/ppc_puc.c
to files.amd64, everything worked a lot better.

A patch (against 5-STABLE) is attached, which adds ppc_puc.c to all
architectures with ppc.c listed (alpha, amd64, ia64 -- I can only test
amd64, however).

If this gets lost for ages, I'll add a PR...

-- 
David Taylor

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: attachment; filename="puc_ppc.patch"

--- sys/conf/files.alpha.old	Wed Apr 13 12:20:57 2005
+++ sys/conf/files.alpha	Wed Apr 13 12:21:43 2005
@@ -183,6 +183,7 @@
 dev/kbd/kbd.c			optional	sc
 dev/kbd/kbd.c			optional	ukbd
 dev/ppc/ppc.c			optional        ppc
+dev/ppc/ppc_puc.c		optional	ppc puc pci
 dev/sio/sio.c			optional	sio
 dev/sio/sio_isa.c		optional	sio isa
 dev/syscons/schistory.c		optional	sc
--- sys/conf/files.amd64.old	Wed Apr 13 12:21:15 2005
+++ sys/conf/files.amd64	Wed Apr 13 12:21:53 2005
@@ -133,6 +133,7 @@
 dev/kbd/kbd.c			optional	ukbd
 dev/mem/memutil.c		optional	mem
 dev/ppc/ppc.c			optional	ppc
+dev/ppc/ppc_puc.c		optional	ppc puc pci
 dev/sio/sio.c			optional	sio
 dev/sio/sio_isa.c		optional	sio isa
 dev/syscons/apm/apm_saver.c	optional	apm_saver apm
--- sys/conf/files.ia64.old	Wed Apr 13 12:21:05 2005
+++ sys/conf/files.ia64	Wed Apr 13 12:22:11 2005
@@ -59,6 +59,7 @@
 dev/kbd/kbd.c			optional	sc
 dev/kbd/kbd.c			optional	ukbd
 dev/ppc/ppc.c			optional	ppc isa
+dev/ppc/ppc_puc.c		optional	ppc puc pci
 dev/syscons/schistory.c		optional	sc
 dev/syscons/scmouse.c		optional	sc
 dev/syscons/scterm-dumb.c	optional	sc

--tThc/1wpZn/ma/RB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050413112527.GA12511>