Index of /atarilibrary/atari_cd04/B_SYSTEM/LPDEV
Name Last modified Size Description
Parent Directory 11-May-2007 21:05 -
ATARIERR.H 06-Jun-1993 10:53 2k
CENTR.S 27-Jul-1993 10:13 1k
COPYING 13-Jul-1993 04:49 12k
FILESYS.H 15-Oct-1992 17:38 15k
LPDEV.8 25-Jul-1993 06:10 2k
LPDEV.ASC 23-Aug-1993 16:19 3k
LPDEV.C 23-Aug-1993 16:20 9k
LPDEV.H 03-Aug-1993 06:25 2k
LPDEV.TTP 23-Aug-1993 16:26 5k
LPFLUSH.1 25-Jul-1993 08:14 1k
LPFLUSH.ASC 23-Aug-1993 16:19 1k
LPFLUSH.C 03-Aug-1993 06:16 1k
LPFLUSH.TTP 23-Aug-1993 16:27 2k
MAKEFILE 24-Aug-1993 07:46 2k
Dear MiNT-users,
here is an installable device driver for the Centronics port. Just
execute the program "lpdev.ttp" (better yet, put it in you mint.cnf
file) and it will install the /dev/lp device.
This driver is interrupt-driven (there are no busy loops) and therefore
shouldn't hog the processor too much. Top reveals that the command
cat file > /dev/lp
takes less than 1% of CPU time (when other tasks are running, of
course). The command "cp file /dev/lp" would be less efficient, because
cp copies one byte at a time, while cat copies large chunks of data.
The device uses a 24-kbyte circular buffer. This can be modified by
altering the BUFSIZE variable in lpdev.c. Please choose an even size,
otherwise the bit-copies won't be word-aligned and it will be much
slower.
I have also included a small utility called "lpflush.ttp" to clear the
/dev/lp queue, so everything should be ready for use. Read the man pages
for more information.
Enjoy,
Thierry Bousch
Fidonet: Thierry Bousch @ 2:320/100.9
Internet: bousch@suntopo.matups.fr