From owner-freebsd-current@FreeBSD.ORG Tue Jul 1 18:14:04 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8F0B106566C for ; Tue, 1 Jul 2008 18:14:04 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id 562AC8FC17 for ; Tue, 1 Jul 2008 18:14:03 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 5CAC4198E48; Tue, 1 Jul 2008 20:14:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 5082C198E47; Tue, 1 Jul 2008 20:14:00 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 245C0198E45; Tue, 1 Jul 2008 20:13:59 +0200 (CEST) Received: from wep4017.physik.uni-wuerzburg.de ([132.187.37.17]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.1HF110) with ESMTP id 2008070120135820-94913 ; Tue, 1 Jul 2008 20:13:58 +0200 Received: by wep4017.physik.uni-wuerzburg.de (sSMTP sendmail emulation); Tue, 1 Jul 2008 20:13:58 +0200 From: "Alexey Shuvaev" Date: Tue, 1 Jul 2008 20:13:58 +0200 To: xcllnt@mac.com Message-ID: <20080701181358.GA93601@wep4017.physik.uni-wuerzburg.de> MIME-Version: 1.0 Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 07/01/2008 08:13:58 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.1HF110 | April 11, 2008) at 07/01/2008 08:14:00 PM, Serialize complete at 07/01/2008 08:14:00 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: puc(4) man page update? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2008 18:14:04 -0000 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: port 0x7c00-0x7c07,0x8000-0x8007,0x8400-0x8407,0x8800-0x8807,0x8c00-0x8c07,0x9000-0x900f irq 7 at device 10.0 on pci0 puc0: [FILTER] uart0: on puc0 uart0: [FILTER] uart1: on puc0 uart1: [FILTER] ppc0: on puc0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/12 bytes threshold ppbus0: on ppc0 plip0: cannot reserve interrupt, failed. lpt0: on ppbus0 lpt0: Polled port ppi0: 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.