PCI Parallel Port I/O card

Jonathan Chen jonc at chen.org.nz
Mon Nov 29 07:21:17 UTC 2010

On Thu, Nov 25, 2010 at 9:05 PM, Jonathan Chen <jonc at 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:
>    none2 at 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: <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

If I had multi-I/O ports on the card, I would have had to modify
sys/dev/puc/puc_data.c instead.

Jonathan Chen <jonc at chen.org.nz>

More information about the freebsd-questions mailing list