From owner-freebsd-questions@FreeBSD.ORG Thu Nov 25 20:59:50 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 7F3C1106566B for ; Thu, 25 Nov 2010 20:59:50 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 08E518FC14 for ; Thu, 25 Nov 2010 20:59:49 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PLiuy-0006LW-R6 for freebsd-questions@freebsd.org; Thu, 25 Nov 2010 21:59:48 +0100 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 21:59:48 +0100 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 21:59:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Thu, 25 Nov 2010 16:01:45 -0500 Lines: 54 Message-ID: References: <20101125080509.GA1852@osiris.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net 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: Thu, 25 Nov 2010 20:59:50 -0000 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: > > none2@pci0:4:6:0: class=0x070103 card=0x2000a000 chip=0x98659710 > rev=0x00 hdr=0x00 > vendor = 'MosChip Semiconductors (Was: Netmos Technology)' > class = simple comms > subclass = parallel port > cap 01[48] = powerspec 2 supports D0 D3 current D0 > > However, a verbose boot reveals: > ppc0: cannot reserve I/O port range > ppc0: failed to probe at irq 7 on isa0 > > which is due to /boot/device.hints of: > hint.ppc.0.at="isa" > hint.ppc.0.irq="7" > > How can I configure my system to recognise the parallel port on the > PCI bus? You might try using the system BIOS to assign a known unused IRQ such as maybe IRQ 5 to the PCI slot where the card is located. Then modify the hints entries above to "pci" and "5" and reboot. I'm not sure whether the hint.ppc.0.at="pci" entry would need to be expanded, but if so the information is present in the [none2@pci0:4:6:0:] from your pciconf -lv noted above. I believe as long as it finds and initializes on the IRQ 5 the entry "pci" as all that is needed. What I am unsure of is exactly what to do if the card is using some proprietary non-standard I/O port address. Since it is an add-in card it is highly likely that it will be on some I/O port that is different from the default parallel port you would find built-in on a motherboard. In this case you would need to discover what this I/O port address is (and it might even be configurable with jumpers - see card docs). If the motherboard already has a parallel port the PCI card will need to have I/O ports that are not in conflict with the one on the motherboard. Then a third line would need to be added to device.hints specifying this I/O port address after the two lines you indicated above. Hope it helps. Not sure it will work, but this is the approach I would pursue. -Mike