Subject: Re: pci parallel card in g3?
To: Christos Zoulas <christos@zoulas.com>
From: None <richard@uclinux.net>
List: port-macppc
Date: 11/13/2003 09:17:10
> 
> You need something like:
> 
> GENERIC:puc*      at      pci? dev ? function ?           # PCI 
> "universal" comm. cards
> GENERIC:com*      at puc? port ?                  # 16x50s on 
> "universal" comm boards
> GENERIC:lpt*      at puc? port ?                  # || ports on 
> "universal" comm boards
> files.powerpc:attach      lpt at puc with lpt_puc
> files.powerpc:file        dev/pci/lpt_puc.c               lpt_puc
> 
> If that works, please send a patch
> christos
> 


Good morning (o;


Have now in my config:

puc*    at pci? dev ? function ?        # PCI "universal" comm. cards
lpt*    at puc? port ?


and in files.macppc:

attach  lpt at puc with lpt_puc
file    dev/pci/lpt_puc.c       lpt_puc


Now it shows up correctly:

puc0 at pci0 dev 15 function 0: NetMos NM9805 1284 Printer port (lpt)
lpt0 at puc0 port 0: interrupting at irq 25


Now...what is the common char major/minor number for it?

is:

    crw-rw-rw-  1 root  wheel  20, 0 Nov 12 22:43 /dev/lpt0

correct?


When I try accessing the device I get:

g3# cat > /dev/lpt0
/dev/lpt0: Operation not supported by device.


rick