]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
8ad349bb | 4 | * @APPLE_LICENSE_OSREFERENCE_HEADER_START@ |
1c79356b | 5 | * |
8ad349bb A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. The rights granted to you under the | |
10 | * License may not be used to create, or enable the creation or | |
11 | * redistribution of, unlawful or unlicensed copies of an Apple operating | |
12 | * system, or to circumvent, violate, or enable the circumvention or | |
13 | * violation of, any terms of an Apple operating system software license | |
14 | * agreement. | |
15 | * | |
16 | * Please obtain a copy of the License at | |
17 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
18 | * file. | |
19 | * | |
20 | * The Original Code and all software distributed under the License are | |
21 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
22 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
23 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
24 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
25 | * Please see the License for the specific language governing rights and | |
26 | * limitations under the License. | |
27 | * | |
28 | * @APPLE_LICENSE_OSREFERENCE_HEADER_END@ | |
1c79356b A |
29 | */ |
30 | /* | |
31 | * @OSF_COPYRIGHT@ | |
32 | * | |
33 | */ | |
34 | /* | |
35 | * HISTORY | |
36 | * | |
37 | * Revision 1.1.1.1 1998/09/22 21:05:29 wsanchez | |
38 | * Import of Mac OS X kernel (~semeria) | |
39 | * | |
40 | * Revision 1.1.1.1 1998/03/07 02:25:45 wsanchez | |
41 | * Import of OSF Mach kernel (~mburg) | |
42 | * | |
43 | * Revision 1.1.5.1 1995/06/13 18:20:16 sjs | |
44 | * Merged from flipc_shared. | |
45 | * [95/06/07 sjs] | |
46 | * | |
47 | * Revision 1.1.3.4 1995/04/05 21:21:58 randys | |
48 | * Added allocations_lock_policy argument to usermsg_Init_Buffer set | |
49 | * status call. | |
50 | * [95/04/05 randys] | |
51 | * | |
52 | * Revision 1.1.3.3 1995/02/21 17:23:08 randys | |
53 | * Re-indented code to four space indentation | |
54 | * [1995/02/21 16:25:35 randys] | |
55 | * | |
56 | * Revision 1.1.3.2 1994/12/20 19:02:03 randys | |
57 | * Added filename in comment at top of each file | |
58 | * [1994/12/19 20:28:25 randys] | |
59 | * | |
60 | * Revision 1.1.3.1 1994/12/12 17:46:17 randys | |
61 | * Putting initial flipc implementation under flipc_shared | |
62 | * [1994/12/12 16:27:48 randys] | |
63 | * | |
64 | * Revision 1.1.1.2 1994/12/11 23:11:21 randys | |
65 | * Initial flipc code checkin | |
66 | * | |
67 | * $EndLog$ | |
68 | */ | |
69 | ||
70 | /* | |
71 | * mach/flipc_device.h | |
72 | * | |
73 | * Declarations related to the device driver interface to FLIPC. | |
74 | */ | |
75 | ||
76 | #ifndef _MACH_FLIPC_DEVICE_H_ | |
77 | #define _MACH_FLIPC_DEVICE_H_ | |
78 | ||
79 | /* | |
80 | * Definitions of constants both the ME and AIL need to know for | |
81 | * communications through the device driver interface. These are the | |
82 | * possible values for the top 16 bits of the flavor parameter; the | |
83 | * bottom 16 bits are extra information that may be needed (eg. to | |
84 | * parameterize a request for semaphore in the get status routine). | |
85 | */ | |
86 | typedef enum { /* Arguments. */ | |
87 | /* Get status flavors. */ | |
88 | usermsg_Get_Initialized_Status = 1, /* (int *init_p) */ | |
89 | usermsg_Get_Epgroup_Semaphore, /* (mach_port_t *semaphore) */ | |
90 | usermsg_Return_Allocations_Lock, /* (void) */ | |
91 | ||
92 | /* Set status flavors. */ | |
93 | usermsg_Init_Buffer, /* (int max_endpoints, | |
94 | int max_epgroups, | |
95 | int max_buffers, | |
96 | int max_buffers_per_endpoint, | |
97 | int allocations_lock_policy) */ | |
98 | usermsg_Process_Work, /* (void) */ | |
99 | usermsg_Acquire_Allocations_Lock, /* (void) */ | |
100 | usermsg_Release_Allocations_Lock, /* (void) */ | |
101 | usermsg_Epgroup_Associate_Semaphore /* (int epgroup_idx, mach_port_t port) */ | |
102 | } usermsg_devop_t; | |
103 | ||
104 | #define FLIPC_DEVICE_FLAVOR(devop, param) (((devop)<<16)|(param)) | |
105 | ||
106 | #endif /* _MACH_FLIPC_DEVICE_H_ */ |