Re: puc fails to attach serial ports



On Tue, 2005-12-13 at 11:01 -0500, John Baldwin wrote:
> > OK, I've cracked what's happening. Indeed we are somehow missing a call
> > to devclass_add_driver(9). I was loading puc as a module, and in that
> > case the following relevant calls to devclass_add_driver are made:
> >
> Because sio(4) only includes sio_puc.c in the kernel if you have 'puc' in your
> kernel config, and the puc kernel module only includes the puc files, it
> doesn't include sio_puc.c and ppc_puc.c. uart has the same issue as well.
> Looking at the three attachments, there's no reason for them to be dependent
> on puc, they don't actually call any symbols in the puc(4) kernel module
> itself, so they can be compiled into kernels w/o puc without causing any
> harm. Then loading puc as a module would work. Here's a patch:

Thanks! I can confirm that this patch fixes the problem I was seeing.

I understand David O'Brien's concerns about the patch and associated
increase in kernel size, but as it stands, there seems to be little
point in creating a puc module as it cannot work with the GENERIC kernel
(other than for devices using uart, as that isn't in GENERIC).

Gavin
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: puc fails to attach serial ports
    ... >> your kernel config, and the puc kernel module only includes the puc ... >> puckernel module itself, so they can be compiled into kernels w/o puc ... kldload sio_puc.ko ...
    (freebsd-current)
  • Re: Unable to get SIIG PCI serial card to work
    ... /boot/loader.conf, the puc device isn't found, though pciconf -lv shows ... This kernel doesn't have 'device puc' in it. ... unable to activate interrupt in fast mode - using normal mode ...
    (freebsd-questions)
  • Re: Unable to get SIIG PCI serial card to work
    ... /boot/loader.conf, the puc device isn't found, though pciconf -lv shows ... This kernel doesn't have 'device puc' in it. ... unable to activate interrupt in fast mode - using normal mode ...
    (freebsd-questions)
  • Re: [FreeBSD] Serielle Karte (was: Multiserielle Karte)
    ... Versuch mal PUC in den kernel zu kompilieren. ... Ich habe PUC in den Kernel eingebaut, ... Danach habe ich mal in /boot/device.hints die bisher deaktivierten ...
    (de.comp.os.unix.bsd)
  • Re: puc fails to attach serial ports
    ... > kernel config, and the puc kernel module only includes the puc files, it ... Here's a patch: ...
    (freebsd-current)