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