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