xref: /original-bsd/sys/hp300/dev/ppiioctl.h (revision 3705696b)
1 /*
2  * Copyright (c) 1990, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)ppiioctl.h	8.1 (Berkeley) 06/10/93
8  */
9 
10 #ifndef _IOCTL_
11 #include <sys/ioctl.h>
12 #endif
13 
14 struct ppiparam {
15 	int	burst;	/* chars to send/recv in one call */
16 	int	timo;	/* timeout: -1 blocking, 0 non-blocking, >0 msec */
17 	int	delay;	/* delay between polls (msec) */
18 };
19 
20 #define PPI_BLOCK	-1
21 #define PPI_NOBLOCK	0
22 
23 /* default values */
24 #define	PPI_BURST	1024
25 #define PPI_TIMO	PPI_BLOCK
26 #define PPI_DELAY	10
27 
28 /* limits */
29 #define	PPI_BURST_MIN	1
30 #define	PPI_BURST_MAX	1024
31 #define PPI_DELAY_MIN	0
32 #define PPI_DELAY_MAX	30000
33 
34 #define PPIIOCSPARAM	_IOW('P', 0x1, struct ppiparam)
35 #define PPIIOCGPARAM	_IOR('P', 0x2, struct ppiparam)
36 #define PPIIOCSSEC	_IOW('P', 0x3, int)
37