]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/ndr.h
xnu-344.49.tar.gz
[apple/xnu.git] / osfmk / mach / ndr.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * @OSF_COPYRIGHT@
27 */
28/*
29 * HISTORY
30 *
31 * Revision 1.1.1.1 1998/09/22 21:05:30 wsanchez
32 * Import of Mac OS X kernel (~semeria)
33 *
34 * Revision 1.1.1.1 1998/03/07 02:25:46 wsanchez
35 * Import of OSF Mach kernel (~mburg)
36 *
37 * Revision 1.2.6.1 1994/09/23 02:40:51 ezf
38 * change marker to not FREE
39 * [1994/09/22 21:42:00 ezf]
40 *
41 * Revision 1.2.2.2 1993/06/09 02:42:37 gm
42 * Added to OSF/1 R1.3 from NMK15.0.
43 * [1993/06/02 21:17:34 jeffc]
44 *
45 * Revision 1.2 1993/04/19 16:38:03 devrcs
46 * Merge untyped ipc:
47 * New names for the fields - the structure isn't changed
48 * [1993/03/12 23:01:38 travos]
49 * Extended NDR record to include version number(s)
50 * [1993/03/05 23:10:21 travos]
51 * a new NDR structure
52 * 1993/02/13 00:47:46 travos]
53 * Created. [travos@osf.org]
54 * [1993/01/27 11:21:44 rod]
55 * [1993/03/16 13:23:15 rod]
56 *
57 * $EndLog$
58 */
59
60#ifndef _NDR_H_
61#define _NDR_H_
62
63typedef struct {
64 unsigned char mig_vers;
65 unsigned char if_vers;
66 unsigned char reserved1;
67 unsigned char mig_encoding;
68 unsigned char int_rep;
69 unsigned char char_rep;
70 unsigned char float_rep;
71 unsigned char reserved2;
72} NDR_record_t;
73
74/*
75 * MIG supported protocols for Network Data Representation
76 */
77#define NDR_PROTOCOL_2_0 0
78
79/*
80 * NDR 2.0 format flag type definition and values.
81 */
82#define NDR_INT_BIG_ENDIAN 0
83#define NDR_INT_LITTLE_ENDIAN 1
84#define NDR_FLOAT_IEEE 0
85#define NDR_FLOAT_VAX 1
86#define NDR_FLOAT_CRAY 2
87#define NDR_FLOAT_IBM 3
88#define NDR_CHAR_ASCII 0
89#define NDR_CHAR_EBCDIC 1
90
91extern NDR_record_t NDR_record;
92
93#endif /* _NDR_H_ */