From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 00:25:53 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC04C106564A for ; Mon, 29 Nov 2010 00:25:53 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id D04198FC15 for ; Mon, 29 Nov 2010 00:25:53 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.2.12] (atm.xcllnt.net [70.36.220.6]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 64bit)) with ESMTPSA id <0LCM00BT0BQ7LV80@asmtp029.mac.com> for freebsd-hackers@freebsd.org; Sun, 28 Nov 2010 15:25:21 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1011280138 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-11-28_06:2010-11-27, 2010-11-28, 1970-01-01 signatures=0 From: Marcel Moolenaar In-reply-to: Date: Sun, 28 Nov 2010 15:25:18 -0800 Message-id: <42F621F4-8083-42BE-ADA9-243DD661EB73@mac.com> References: To: Jonathan Chen X-Mailer: Apple Mail (2.1082) Cc: freebsd-hackers@freebsd.org Subject: Re: puc(4) and single I/O port cards. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 00:25:54 -0000 On Nov 28, 2010, at 2:20 PM, Jonathan Chen wrote: > I've taken a look at the puc(4) code, and from my limited > understanding, it appears that the section that's preventing it from > being recognised is in puc.c:puc_bfe_probe(). In particular: > > /* We don't attach to single-port serial cards. */ > if (cfg->ports == PUC_PORT_1S || cfg->ports == PUC_PORT_1P) > return (EDOOFUS); > > Why is the check there? Is there something about single I/O port cards > that interacts badly with the rest of the system? Single-port devices are handled by ppc(4) for parallel ports and uart(4) for serial ports. There's no need to have puc(4) in between. -- Marcel Moolenaar xcllnt@mac.com