xref: /csrg-svn/sys/hp300/dev/ppiioctl.h (revision 63151)
145475Smckusick /*
2*63151Sbostic  * Copyright (c) 1990, 1993
3*63151Sbostic  *	The Regents of the University of California.  All rights reserved.
445475Smckusick  *
545475Smckusick  * %sccs.include.redist.c%
645475Smckusick  *
7*63151Sbostic  *	@(#)ppiioctl.h	8.1 (Berkeley) 06/10/93
845475Smckusick  */
945475Smckusick 
1045475Smckusick #ifndef _IOCTL_
1145475Smckusick #include <sys/ioctl.h>
1245475Smckusick #endif
1345475Smckusick 
1445475Smckusick struct ppiparam {
1545475Smckusick 	int	burst;	/* chars to send/recv in one call */
1645475Smckusick 	int	timo;	/* timeout: -1 blocking, 0 non-blocking, >0 msec */
1745475Smckusick 	int	delay;	/* delay between polls (msec) */
1845475Smckusick };
1945475Smckusick 
2045475Smckusick #define PPI_BLOCK	-1
2145475Smckusick #define PPI_NOBLOCK	0
2245475Smckusick 
2345475Smckusick /* default values */
2445475Smckusick #define	PPI_BURST	1024
2545475Smckusick #define PPI_TIMO	PPI_BLOCK
2645475Smckusick #define PPI_DELAY	10
2745475Smckusick 
2845475Smckusick /* limits */
2945475Smckusick #define	PPI_BURST_MIN	1
3045475Smckusick #define	PPI_BURST_MAX	1024
3145475Smckusick #define PPI_DELAY_MIN	0
3245475Smckusick #define PPI_DELAY_MAX	30000
3345475Smckusick 
3445475Smckusick #define PPIIOCSPARAM	_IOW('P', 0x1, struct ppiparam)
3545475Smckusick #define PPIIOCGPARAM	_IOR('P', 0x2, struct ppiparam)
3645475Smckusick #define PPIIOCSSEC	_IOW('P', 0x3, int)
37