1*95e1ffb1Schristos /* $NetBSD: parioctl.h,v 1.7 2005/12/11 12:16:28 christos Exp $ */ 2ec77f0b3Scgd 3f208f367Smw /* 4f208f367Smw * Copyright (c) 1990 The Regents of the University of California. 5f208f367Smw * All rights reserved. 6f208f367Smw * 7f208f367Smw * Redistribution and use in source and binary forms, with or without 8f208f367Smw * modification, are permitted provided that the following conditions 9f208f367Smw * are met: 10f208f367Smw * 1. Redistributions of source code must retain the above copyright 11f208f367Smw * notice, this list of conditions and the following disclaimer. 12f208f367Smw * 2. Redistributions in binary form must reproduce the above copyright 13f208f367Smw * notice, this list of conditions and the following disclaimer in the 14f208f367Smw * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 16f208f367Smw * may be used to endorse or promote products derived from this software 17f208f367Smw * without specific prior written permission. 18f208f367Smw * 19f208f367Smw * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20f208f367Smw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21f208f367Smw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22f208f367Smw * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23f208f367Smw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24f208f367Smw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25f208f367Smw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26f208f367Smw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27f208f367Smw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28f208f367Smw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29f208f367Smw * SUCH DAMAGE. 30f208f367Smw * 31582d43b3Scgd * @(#)ppiioctl.h 7.2 (Berkeley) 12/16/90 32f208f367Smw */ 33f208f367Smw 34f208f367Smw #ifndef _IOCTL_ 35f208f367Smw #include <sys/ioctl.h> 36f208f367Smw #endif 37f208f367Smw 38f208f367Smw struct parparam { 39f208f367Smw int burst; /* chars to send/recv in one call */ 40f208f367Smw int timo; /* timeout: -1 blocking, 0 non-blocking, >0 msec */ 41f208f367Smw int delay; /* delay between polls (msec) */ 42f208f367Smw }; 43f208f367Smw 44f208f367Smw #define PAR_BLOCK -1 45f208f367Smw #define PAR_NOBLOCK 0 46f208f367Smw 47f208f367Smw /* default values */ 48f208f367Smw #define PAR_BURST 1024 49f208f367Smw #define PAR_TIMO PAR_BLOCK 50f208f367Smw #define PAR_DELAY 10 51f208f367Smw 52f208f367Smw /* limits */ 53f208f367Smw #define PAR_BURST_MIN 1 54f208f367Smw #define PAR_BURST_MAX 1024 55f208f367Smw #define PAR_DELAY_MIN 0 56f208f367Smw #define PAR_DELAY_MAX 30000 57f208f367Smw 58f208f367Smw #define PARIOCSPARAM _IOW('P', 0x1, struct parparam) 59f208f367Smw #define PARIOCGPARAM _IOR('P', 0x2, struct parparam) 60