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