From owner-man-jp-reviewer@jp.freebsd.org  Mon May 17 20:00:33 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id UAA18250;
	Mon, 17 May 1999 20:00:33 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from TYO203.gate.nec.co.jp (TYO203.gate.nec.co.jp [202.32.8.211])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id UAA18245
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 17 May 1999 20:00:31 +0900 (JST)
	(envelope-from mihara@prd.fc.nec.co.jp)
Received: from mailsv.nec.co.jp (mailsv-le1 [192.168.1.90])
	by TYO203.gate.nec.co.jp (8.9.1a/3.7W99051317) with ESMTP id UAA07799
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 17 May 1999 20:00:28 +0900 (JST)
Received: from ayrton.prd.fc.nec.co.jp (ayrton.prd.fc.nec.co.jp [10.32.194.1]) by mailsv.nec.co.jp (8.9.1a/3.7W-MAILSV-NEC) with ESMTP
	id UAA19064 for <man-jp-reviewer@jp.freebsd.org>; Mon, 17 May 1999 20:00:27 +0900 (JST)
Received: from oz.prd.fc.nec.co.jp.prd.fc.nec.co.jp (oz.prd.fc.nec.co.jp [10.32.193.3])
	by ayrton.prd.fc.nec.co.jp (8.8.8/3.6W-98052009) with ESMTP id UAA22502
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 17 May 1999 20:00:25 +0900 (JST)
Message-Id: <199905171100.UAA22502@ayrton.prd.fc.nec.co.jp>
Date: Mon, 17 May 1999 19:59:56 +0900
From: Osamu MIHARA <mihara@prd.fc.nec.co.jp>
To: man-jp-reviewer@jp.freebsd.org
User-Agent: Wanderlust/0.10.1 (Harlem Shuffle) WEMI/1.13.3 (Yaizu) FLIM/1.12.5 (Hirahata) MULE XEmacs/21.2 (beta13) (Demeter) (i386-unknown-freebsd)
Organization: NEC Corporation, Tokyo Japan
MIME-Version: 1.0 (generated by WEMI 1.13.3 - "Yaizu")
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990430
X-Sequence: man-jp-reviewer 1381
Subject: [man-jp-reviewer 1381] ppi.4
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: mihara@prd.fc.nec.co.jp

$B;086$G$9!#(B

ppi.4 $B$G$9!#(B
-- 
  Osamu MIHARA // NEC Printers Division

.\" Copyright (c) 1997
.\"      Michael Smith
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer as
.\"    the first lines of this file unmodified.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' 
.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.\"	$Id: ppi.4,v 1.1 1998/01/02 09:31:18 msmith Exp $
.\" jpman %Id: ppi.4,v 0.0 1999/02/22 16:13:51 horikawa Stab %
.\"
.Dd January 2, 1998
.Dt PPI 4
.Os FreeBSD
.Sh $BL>>N(B
.Nm ppi
.Nd
ppbus $B%Q%i%l%k(B 'geek' $B%]!<%H$X$N%f!<%66u4V%$%s%?%U%'!<%9(B
.Sh $B=q<0(B
.Cd "device ppi0 at ppbus?"
.sp
$B%^%$%J!<HV9f(B: $B%f%K%C%HHV9f$O(B ppbus $BHV9f$KD>@\BP1~$9$k!#(B
.Sh $B2r@b(B
.Nm
$B%G%P%$%9%I%i%$%P$O%f!<%6%"%W%j%1!<%7%g%s$,%Q%i%l%k%]!<%H$N>uBV$rA`:n$7$9$k$?$a$NJXMx$J<jCJ$rDs6!$7!"(B
.Pa /dev/io
$B%$%s%?%U%'!<%9$r;H$&$3$H$K5/0x$9$k%;%-%e%j%F%#LdBj$r@8$8$k$3$H$J$/!"(B
$BDcB.(B I/O $BA`:n$r4JC1$K2DG=$K$7$F$$$^$9!#(B
.Sh $B%W%m%0%i%_%s%0%$%s%?%U%'!<%9(B
.Pp
.Fd #include </sys/dev/ppbus/ppi.h>
.Fd #include </sys/dev/ppbus/ppbconf.h>
.Pp
.Nm
$B%$%s%?%U%'!<%9$G$NA4$F$N(B I/O $B$O(B
.Fn ioctl
$B8F$S=P$7$r;H$&$3$H$K$h$C$F9T$$$^$9!#(B
$B3F!9$N%3%^%s%I$O(B 1 $B$D$N(B
.Ty u_int8_t
$B0z?t$r$H$j!"(B1 $B%P%$%H$N%G!<%?$rE>Aw$7$^$9!#(B
$B0J2<$N%3%^%s%I$r;H$&$3$H$,$G$-$^$9!#(B
.Bl -tag -width 10
.It PPIGDATA, PPISDATA
$B%G!<%?%l%8%9%?$NFbMF$NFI$_=P$7$H=q$-9~$_$r9T$$$^$9!#(B
.It PPIGSTATUS, PPISSTATUS
$B%9%F!<%?%9%l%8%9%?$NFbMF$NFI$_=P$7$H=q$-9~$_$r9T$$$^$9!#(B
.It PPIGCTRL, PPISCTRL
$B@)8f%l%8%9%?$NFbMF$NFI$_=P$7$H=q$-9~$_$r9T$$$^$9!#(B
$B0J2<$G$O$3$N%l%8%9%?$N%S%C%H$KBP1~$7$?Dj5A$r9T$C$F$$$^$9!#(B
$B@)8f%l%8%9%?$N%S%C%H$r%;%C%H$9$k$3$H$OAjEv$9$k=PNO$r(B low $B$K$9$k$3$H$K$J$j$^$9!#(B
.Bl -tag -width 10 -compact
.It STROBE
.It AUTOFEED
.It nINIT
.It SELECTIN
.It PCD
.El
.It PPIGEPP, PPISEPP
EPP $B@)8f%l%8%9%?$NFbMF$NFI$_=P$7$H=q$-9~$_$r9T$$$^$9!#(B
.It PPIGECR, PPISECR
ECP $B@)8f%l%8%9%?$NFbMF$NFI$_=P$7$H=q$-9~$_$r9T$$$^$9!#(B
.It PPIGFIFO, PPISFIFO
ECP FIFO $B$NFI$_=q$-$r$*$3$J$$$^$9(B (8 $B%S%C%HA`:n$N$_(B)$B!#(B
.El
.Sh $B;HMQNc(B
$B%G!<%?%]!<%H$KCM(B 0x5a $B$r=PNO$9$k$?$a$K!"(B
STROBE $B$r(B low $B$K$7$?8e(B high $B$KLa$7$^$9!#(B
$B<!$N%3!<%I$r;H$&$3$H$,$G$-$^$9!#(B
.Bd -literal -compact

	int		fd;
	u_int8_t	val;

	val = 0x5a;
	ioctl(fd, PPISDATA, &val);
	ioctl(fd, PPIGCTRL, &val);
	val |= STROBE;
	ioctl(fd, PPISCTRL, &val);
	val &= ~STROBE;
	ioctl(fd, PPISCTRL, &val);

.Ed
.Sh $B%P%0(B
$B=PNO?.9f$,%l%8%9%?CM$H5U$K$J$C$F$$$k$N$O:.Mp$r>7$-$+$M$^$;$s!#(B
.Pp
.Fn ioctl
$B%$%s%?%U%'!<%9$ODcB.$G$"$j!"J#?t$NA`:n$rO"B3$7$F9T$&$?$a$NJ}K!$,(B ($B$^$@(B) $B$"$j$^$;$s!#(B
.Pp
$B%f!<%6%"%W%j%1!<%7%g%s$GI,MW$J%X%C%@$OI8=`$N%7%9%F%`$G$O%$%s%9%H!<%k$5$l$^$;$s!#(B

