puc(4) man page update?



Hello!

I have got
puc0@pci0:0:10:0: class=0x078000 card=0x00121000 chip=0x98359710 rev=0x01 hdr=0x00
vendor = 'MosChip Semiconductors (Was: Netmos Technology)'
device = 'Nm9835 Parallel/Serial Port Adapter'
class = simple comms

In a nutshell I have the following proposals to review:

- I have spent few hours figuring out why serial interfaces
covered by puc(4) do not come up at boot time. The issue was I tried
to use kernel module instead of compiling puc(4) into the kernel.
Will it be good to have explicit note about it in the man page?

- First time when I rebuilt the kernel I only added
options COM_MULTIPORT, which is used inside sio(4). The puc(4) also states
the serial ports are managed by sio(4). However it seems that serial
ports are actually handled by uart(4). Is COM_MULTIPORT kernel option
obsolete?

- The puc(4) man page states parallel ports are not supported yet.
It seems thay did now.

More info about the system:

[wep4020] ~> uname -a
FreeBSD wep4020 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Mon Jun 30 19:24:21 CEST 2008 root@wep4020:/usr/obj/usr/src/sys/MULTIPORT i386

---from dmesg---
puc0: <NetMos NM9835 Dual UART and 1284 Printer port> port 0x7c00-0x7c07,0x8000-0x8007,0x8400-0x8407,0x8800-0x8807,0x8c00-0x8c07,0x9000-0x900f irq 7 at device 10.0 on pci0
puc0: [FILTER]
uart0: <Non-standard ns8250 class UART with FIFOs> on puc0
uart0: [FILTER]
uart1: <Non-standard ns8250 class UART with FIFOs> on puc0
uart1: [FILTER]
ppc0: <Parallel port> on puc0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/12 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: cannot reserve interrupt, failed.
lpt0: <Printer> on ppbus0
lpt0: Polled port
ppi0: <Parallel I/O> on ppbus0

I have roughly tested the functionality of this parallel port throug
the ppi interface. It seems to work.

Attached is a draft of a patch to share/man/man4/puc.4 but maybe more
work is required (regarding COM_MULTIPORT and sio(4) man page...).

Alexey.
_______________________________________________
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: Your worst project?
    ... almost direct drive of stepper motors from the ... Calcomp was the brand. ... capable parallel port. ... The RT programs run as loadable kernel modules, ...
    (rec.crafts.metalworking)
  • Re: lpt attachment problem
    ... ppc0: Generic chipset in COMPATIBLE mode ... ppbus0: <Parallel port bus> on ppc0 ... lpt0: Interrupt-driven port ...
    (freebsd-questions)
  • Re: [SLE] SuSe 9.0 - major problem with HP PSC 950 printer
    ... setup and/or kernel messages to verify correct base addresses in the ... * Some kind of deadlock with the services USB, ... for the PTAL service. ... This is why I recommend to use the parallel port whenever possible. ...
    (SuSE)
  • Re: [9fans] A shot in the dark
    ... and clearing bits in the parallel port. ... The monitoring hardware was indeed simple - an analogue voltmeter ... World X11 paper a while back, which was pre-website USENIX. ... hardware designed for kernel monitoring. ...
    (comp.os.plan9)
  • Re: printing problem - spurious characters printed randomly interspersed in printout - sinc
    ... I first noticed this problem when I upgraded to Sarge and kernel 2.6 ... The only way I know to intercept parallel port data ... ... to the parallel port hardware). ... Does lpd do anything with ioctls such that it would ...
    (Debian-User)