|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* ! 26: * Copyright 1996 1995 by Open Software Foundation, Inc. 1997 1996 1995 1994 1993 1992 1991 ! 27: * All Rights Reserved ! 28: * ! 29: * Permission to use, copy, modify, and distribute this software and ! 30: * its documentation for any purpose and without fee is hereby granted, ! 31: * provided that the above copyright notice appears in all copies and ! 32: * that both the copyright notice and this permission notice appear in ! 33: * supporting documentation. ! 34: * ! 35: * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE ! 36: * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS ! 37: * FOR A PARTICULAR PURPOSE. ! 38: * ! 39: * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR ! 40: * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM ! 41: * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT, ! 42: * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION ! 43: * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ! 44: * ! 45: */ ! 46: /* ! 47: * MKLINUX-1.0DR2 ! 48: */ ! 49: ! 50: #ifndef __ADB_IO_H_ ! 51: #define __ADB_IO_H_ ! 52: ! 53: /* ! 54: * Default ADB ID's ! 55: */ ! 56: ! 57: #define ADB_DEV_PROTECT 1 ! 58: #define ADB_DEV_KEYBOARD 2 ! 59: #define ADB_DEV_MOUSE 3 ! 60: #define ADB_DEV_TABLET 4 ! 61: #define ADB_DEV_MODEM 5 ! 62: #define ADB_DEV_RESERVED6 6 ! 63: #define ADB_DEV_APPL 7 ! 64: ! 65: /* ! 66: * Number of devices ! 67: */ ! 68: ! 69: #define ADB_DEVICE_COUNT 16 /* Note ID 0 is special */ ! 70: ! 71: #define ADB_IOC ('A'<<8) ! 72: #define ADB_GET_INFO (ADB_IOC | 1) ! 73: #define ADB_READ_REG (ADB_IOC | 2) ! 74: #define ADB_WRITE_REG (ADB_IOC | 3) ! 75: #define ADB_GET_COUNT (ADB_IOC | 4) ! 76: #define ADB_SET_HANDLER (ADB_IOC | 5) ! 77: ! 78: #define ADB_READ_DATA (ADB_IOC | 10) /* For MACH and the Server */ ! 79: ! 80: struct adb_info { ! 81: unsigned short a_type; /* Type / Original address */ ! 82: unsigned short a_addr; /* Current address */ ! 83: unsigned short a_handler; /* Current Handler */ ! 84: unsigned short a_orighandler; /* Handler ID at boot */ ! 85: unsigned long _pad[5]; /* extra info */ ! 86: }; ! 87: ! 88: struct adb_regdata { ! 89: unsigned char a_addr; /* Device to talk to*/ ! 90: unsigned char a_reg; /* Register */ ! 91: unsigned short a_count; /* Size of buffer */ ! 92: unsigned char a_buffer[32]; /* Buffer */ ! 93: }; ! 94: ! 95: /* ! 96: * Layout of extended mouse register 1 ! 97: */ ! 98: struct adb_extmouse { ! 99: unsigned char m_id[4]; /* Unique identifier*/ ! 100: unsigned char m_resolution[2]; /* Resolution in units/inch*/ ! 101: unsigned char m_class; /* Class of mouse*/ ! 102: unsigned char m_buttons; /* Number of buttons*/ ! 103: }; ! 104: ! 105: #endif /* __ADB_IO_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.