Date: Mon, 29 Nov 2010 20:21:15 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: freebsd-questions@freebsd.org Subject: Re: PCI Parallel Port I/O card Message-ID: <AANLkTik=18K0-v%2BQJE9NoTXp9fMaOn0zrKL9rb17NBNY@mail.gmail.com> In-Reply-To: <20101125080509.GA1852@osiris.chen.org.nz> References: <20101125080509.GA1852@osiris.chen.org.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 25, 2010 at 9:05 PM, Jonathan Chen <jonc@chen.org.nz> 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: <Parallel port> 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: <MosChip NM9865 1284 Printer port> 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 <jonc@chen.org.nz>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTik=18K0-v%2BQJE9NoTXp9fMaOn0zrKL9rb17NBNY>