xref: /titanic_50/usr/src/cmd/fm/eversholt/common/eft.h (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  *
25  * eft.h -- public definitions for eft files
26  *
27  */
28 
29 #ifndef	_ESC_COMMON_EFT_H
30 #define	_ESC_COMMON_EFT_H
31 
32 #pragma ident	"%Z%%M%	%I%	%E% SMI"
33 
34 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 #include <stdint.h>
39 
40 /* eft file header */
41 #define	EFT_HDR_MAGIC	0x45465400
42 #define	EFT_HDR_MAJOR 3
43 #define	EFT_HDR_MINOR 1
44 #define	EFT_HDR_MAXCOMMENT 256
45 struct eftheader {
46 	uint32_t magic;
47 	uint16_t major;
48 	uint16_t minor;
49 	uint16_t cmajor;
50 	uint16_t cminor;
51 	uint32_t identlen;
52 	uint32_t dictlen;
53 	uint32_t unused[2];
54 	uint32_t csum;
55 	char comment[EFT_HDR_MAXCOMMENT];
56 };
57 
58 #ifdef	__cplusplus
59 }
60 #endif
61 
62 #endif	/* _ESC_COMMON_EFT_H */
63