From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 07:21:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5110106564A for ; Mon, 29 Nov 2010 07:21:17 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 573D18FC08 for ; Mon, 29 Nov 2010 07:21:16 +0000 (UTC) Received: by wwb24 with SMTP id 24so349081wwb.31 for ; Sun, 28 Nov 2010 23:21:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.11.205 with SMTP id 55mr2610883wex.72.1291015275979; Sun, 28 Nov 2010 23:21:15 -0800 (PST) Received: by 10.216.242.139 with HTTP; Sun, 28 Nov 2010 23:21:15 -0800 (PST) X-Originating-IP: [118.93.162.65] In-Reply-To: <20101125080509.GA1852@osiris.chen.org.nz> References: <20101125080509.GA1852@osiris.chen.org.nz> Date: Mon, 29 Nov 2010 20:21:15 +1300 Message-ID: From: Jonathan Chen To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: PCI Parallel Port I/O card X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 07:21:17 -0000 On Thu, Nov 25, 2010 at 9:05 PM, Jonathan Chen wrote: > Hi, > > I've got a system which has a PCI I/O card with a parallel port > on it. I'd like my 8-STABLE/amd64 machine to recognise this card. > > The relevant bits of "pciconf -lcv" is: > > =A0 =A0none2@pci0:4:6:0: =A0 class=3D0x070103 card=3D0x2000a000 chip=3D0x= 98659710 rev=3D0x00 hdr=3D0x00 > =A0 =A0 =A0 =A0vendor =A0 =A0 =3D 'MosChip Semiconductors (Was: Netmos Te= chnology)' > =A0 =A0 =A0 =A0class =A0 =A0 =A0=3D simple comms > =A0 =A0 =A0 =A0subclass =A0 =3D parallel port > =A0 =A0 =A0 =A0cap 01[48] =3D powerspec 2 =A0supports D0 D3 =A0current D0 > > However, a verbose boot reveals: > =A0 =A0ppc0: cannot reserve I/O port range > =A0 =A0ppc0: failed to probe at irq 7 on isa0 For the archives: It appears there isn't any to configure the card to be recognised out-of-box. I had to add an entry in sys/dev/ppc_pci.c with the matching chip number, and recompile the kernel. Currently, it is recognised as: ppc1: port 0xdc00-0xdc07,0xd880-0xd887 mem 0xfe8ff000-0xfe8fffff,0xfe8fe000-0xfe8fefff irq 21 at device 6.0 on pci4 If I had multi-I/O ports on the card, I would have had to modify sys/dev/puc/puc_data.c instead. Cheers. --=20 Jonathan Chen