Blame README.Solaris

Packit d36e9b
Notes on libieee1284 on Solaris/x86
Packit d36e9b
-----------------------------------
Packit d36e9b
Packit d36e9b
There are some problems with supporting bi-directional parallel ports in 
Packit d36e9b
Solaris/x86.  Not least of these is the fact that there is no built-in
Packit d36e9b
support, nor built-in inb/outb.  To work around this problem, I have 
Packit d36e9b
included the IOP kernel-mode driver which exposes the inb and outb
Packit d36e9b
functions to userspace.  To the end users, this means that you will need
Packit d36e9b
to install the iop driver before you can use libieee1284.
Packit d36e9b
Packit d36e9b
After performing a make install (which will also install the driver), you 
Packit d36e9b
will probably need to reboot with -r, ie:
Packit d36e9b
Packit d36e9b
# /usr/sbin/reboot -- -r
Packit d36e9b
Packit d36e9b
On Solaris 2.8 you will probably need to run add_drv after rebooting, ie:
Packit d36e9b
Packit d36e9b
# add_drv iop
Packit d36e9b
Packit d36e9b
If that doesn't get it working, consult the add_drv man page.
Packit d36e9b
Packit d36e9b
Once the IOP driver is installed and working, you will only be able to access
Packit d36e9b
the parallel port as root.
Packit d36e9b
Packit d36e9b
The other downside of this method of parport access is that it is *slow*. 
Packit d36e9b
Each read and write requires an ioctl, which being a syscall is not fast.  
Packit d36e9b
On top of that, you are limited to nibble mode transfers, so each ioctl is 
Packit d36e9b
4 bits.
Packit d36e9b
Packit d36e9b
I hope that Sun sees fit to port the ECPP system to x86 in a future version
Packit d36e9b
of Solaris.
Packit d36e9b
Packit d36e9b
Enjoy,
Packit d36e9b
Packit d36e9b
- Matthew Duggan
Packit d36e9b
stauff1@users.sourceforge.net