Annotation of sys/arch/powerpc/include/wsconsio.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: wsconsio.h,v 1.1 1998/09/27 03:55:57 rahnds Exp $ */
! 2: /* $NetBSD: wsconsio.h,v 1.1 1996/04/12 01:43:06 cgd Exp $ */
! 3:
! 4: /*
! 5: * Copyright (c) 1995, 1996 Carnegie-Mellon University.
! 6: * All rights reserved.
! 7: *
! 8: * Author: Chris G. Demetriou
! 9: *
! 10: * Permission to use, copy, modify and distribute this software and
! 11: * its documentation is hereby granted, provided that both the copyright
! 12: * notice and this permission notice appear in all copies of the
! 13: * software, derivative works or modified versions, and any portions
! 14: * thereof, and that both notices appear in supporting documentation.
! 15: *
! 16: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
! 17: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
! 18: * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
! 19: *
! 20: * Carnegie Mellon requests users of this software to return to
! 21: *
! 22: * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
! 23: * School of Computer Science
! 24: * Carnegie Mellon University
! 25: * Pittsburgh PA 15213-3890
! 26: *
! 27: * any improvements or extensions that they make and grant Carnegie the
! 28: * rights to redistribute these changes.
! 29: */
! 30:
! 31: /*
! 32: * Get keyboard type. Keyboard type definitions are below.
! 33: */
! 34: #define WSCONSIO_KBD_GTYPE _IOR('W',100,int)
! 35: #define KBD_TYPE_LK201 0 /* lk-201 */
! 36: #define KBD_TYPE_LK401 1 /* lk-401 */
! 37: #define KBD_TYPE_PC 2 /* pc-like */
! 38:
! 39: /*
! 40: * If arg is one, don't process scancodes into characters
! 41: */
! 42: #define WSCONSIO_KBD_SCANCODES _IO('W',101,int)
! 43:
! 44: /*
! 45: * Bell ioctls.
! 46: */
! 47:
! 48: struct wsconsio_bell_data {
! 49: int wbd_flags;
! 50: int wbd_pitch; /* pitch, in Hz. */
! 51: int wbd_period; /* period, in milliseconds. */
! 52: int wbd_volume; /* percentage of maximum volume. */
! 53: };
! 54:
! 55: #define WSCONSIO_BELLDATA_PITCH 0x01 /* pitch data present */
! 56: #define WSCONSIO_BELLDATA_PERIOD 0x02 /* period data present */
! 57: #define WSCONSIO_BELLDATA_VOLUME 0x04 /* volume data present */
! 58:
! 59: #define WSCONSIO_BELL _IO('W',102)
! 60: #define WSCONSIO_COMPLEXBELL _IOW('W',103,struct wsconsio_bell_data)
! 61: #define WSCONSIO_SETBELL _IOW('W',104,struct wsconsio_bell_data)
! 62: #define WSCONSIO_GETBELL _IOR('W',105,struct wsconsio_bell_data)
CVSweb