|
|
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: * File: bsd/dev/Event_server.defs
26: *
27: */
28: subsystem Event 31000;
29:
30: /* Select a userprefix to bring the user side in compliance with the name
31: * format for private API.
32: */
33: userprefix _NX;
34:
35: #include <mach/std_types.defs>
36: #include <mach/mach_types.defs>
37:
38: type unsigned = int;
39: type EVString = array[64] of char;
40: type EVObjectNumber = unsigned;
41: type EVParameterName = array[64] of char;
42: type EVIntParameter = array[*:64] of int;
43: type EVCharParameter = array[*:4096] of char;
44:
45: import <bsd/dev/evio.h>;
46:
47: routine EvOpen(
48: device_master : port_t;
49: in event_port : port_t );
50:
51: routine EvClose(
52: device_master : port_t;
53: in event_port : port_t );
54:
55: routine EvMapEventShmem(
56: device_master : port_t;
57: in event_port : port_t;
58: in task : port_t;
59: in size : vm_size_t;
60: out addr : vm_offset_t );
61:
62: routine EvFrameBufferDevicePort(
63: device_master : port_t;
64: in event_port : port_t;
65: in name : EVString;
66: in class : EVString;
67: out nameDevicePort : port_t );
68:
69: routine EvSetSpecialKeyPort(
70: device_master : port_t;
71: in special_key : int;
72: in key_port : port_t );
73:
74:
75: /*
76: * Get/set parameter RPCs.
77: */
78:
79: routine EvGetParameterInt(
80: device_master : port_t;
81: in unit : EVObjectNumber;
82: in parameterName : EVParameterName;
83: in maxCount : unsigned;
84: out parameterArray : EVIntParameter);
85:
86: routine EvGetParameterChar(
87: device_master : port_t;
88: in unit : EVObjectNumber;
89: in parameterName : EVParameterName;
90: in maxCount : unsigned;
91: out parameterArray : EVCharParameter);
92:
93: routine EvSetParameterInt(
94: device_master : port_t;
95: in unit : EVObjectNumber;
96: in parameterName : EVParameterName;
97: in parameterArray : EVIntParameter);
98:
99: routine EvSetParameterChar(
100: device_master : port_t;
101: in unit : EVObjectNumber;
102: in parameterName : EVParameterName;
103: in parameterArray : EVCharParameter);
104:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.