Annotation of sys/arch/sparc64/include/bppioctl.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: bppioctl.h,v 1.1 2002/01/12 20:19:40 jason Exp $ */
! 2:
! 3: /*
! 4: * Copyright (c) 1998 Iain Hibbert
! 5: * All rights reserved.
! 6: *
! 7: * Redistribution and use in source and binary forms, with or without
! 8: * modification, are permitted provided that the following conditions
! 9: * are met:
! 10: * 1. Redistributions of source code must retain the above copyright
! 11: * notice, this list of conditions and the following disclaimer.
! 12: * 2. Redistributions in binary form must reproduce the above copyright
! 13: * notice, this list of conditions and the following disclaimer in the
! 14: * documentation and/or other materials provided with the distribution.
! 15: * 3. The name Iain Hibbert may not be used to endorse or promote products
! 16: * derived from this software without specific prior written permission.
! 17: *
! 18: * THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED
! 19: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
! 20: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
! 21: * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
! 22: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
! 23: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
! 24: * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
! 25: * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
! 26: * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
! 27: * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 28: *
! 29: * bppioctl.h
! 30: */
! 31:
! 32: #ifndef _IOCTL_
! 33: #include <sys/ioctl.h>
! 34: #endif
! 35:
! 36: struct bpp_param {
! 37: int bp_burst; /* chars to send/recv in one call */
! 38: int bp_timeout; /* timeout: -1 blocking, 0 non blocking >0 ms */
! 39: int bp_delay; /* delay between polls (ms) */
! 40: };
! 41:
! 42: #define BPP_BLOCK -1
! 43: #define BPP_NOBLOCK 0
! 44:
! 45: /* defaults */
! 46: #define BPP_BURST 1024
! 47: #define BPP_TIMEOUT BPP_BLOCK
! 48: #define BPP_DELAY 10
! 49:
! 50: /* limits */
! 51: #define BPP_BURST_MIN 1
! 52: #define BPP_BURST_MAX 1024
! 53: #define BPP_DELAY_MIN 0
! 54: #define BPP_DELAY_MAX 30000
! 55:
! 56: /* status bits */
! 57: #define BPP_BUSY (1<<0)
! 58: #define BPP_PAPER (1<<1)
! 59:
! 60: /* ioctl commands */
! 61: #define BPPIOCSPARAM _IOW('P', 0x1, struct bpp_param)
! 62: #define BPPIOCGPARAM _IOR('P', 0x2, struct bpp_param)
! 63: #define BPPIOCGSTAT _IOR('P', 0x4, int)
CVSweb