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
--- 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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to