Date: Sat, 10 Jan 2004 09:32:48 +0100 From: "Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net> To: Vladimir Terziev <vladimir.terziev@sun-fish.com> Cc: FreeBSD-hackers@FreeBSD.org Subject: Re: UNIX / BSD parallel port programming documentation Message-ID: <200401100932.48758.Danovitsch@Vitsch.net> In-Reply-To: <20040109180305.18c23192.vlady@sun-fish.com> References: <20040109180305.18c23192.vlady@sun-fish.com>
index | next in thread | previous in thread | raw e-mail
On Friday 09 January 2004 17:03, Vladimir Terziev wrote: > Hi hackers, > > I have to develop small server which has to manage custom microcontroller > via parallel port interface. > Does anyone know good manual/documentation about UNIX / BSD parallel port > programming ? Most of it should already be on your system, have a look at the man-pages. If you want to use the ppbus interface to control the port : man lpt(4), ppbus(4) and ppi(4) If you want to directly address the ports registers yourself without using the driver interface : man io(4) and have a look at /usr/include/machine/cpufunc.h On FreeBSD you need to have opened /dev/io before your program is allowed to do direct IO to any device, and on Linux you need to successfully call ioperm() first. grtz, Daanhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401100932.48758.Danovitsch>
