1*9585STim.Szeto@Sun.COM /*
2*9585STim.Szeto@Sun.COM  * CDDL HEADER START
3*9585STim.Szeto@Sun.COM  *
4*9585STim.Szeto@Sun.COM  * The contents of this file are subject to the terms of the
5*9585STim.Szeto@Sun.COM  * Common Development and Distribution License (the "License").
6*9585STim.Szeto@Sun.COM  * You may not use this file except in compliance with the License.
7*9585STim.Szeto@Sun.COM  *
8*9585STim.Szeto@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9585STim.Szeto@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*9585STim.Szeto@Sun.COM  * See the License for the specific language governing permissions
11*9585STim.Szeto@Sun.COM  * and limitations under the License.
12*9585STim.Szeto@Sun.COM  *
13*9585STim.Szeto@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*9585STim.Szeto@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9585STim.Szeto@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*9585STim.Szeto@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*9585STim.Szeto@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*9585STim.Szeto@Sun.COM  *
19*9585STim.Szeto@Sun.COM  * CDDL HEADER END
20*9585STim.Szeto@Sun.COM  */
21*9585STim.Szeto@Sun.COM /*
22*9585STim.Szeto@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*9585STim.Szeto@Sun.COM  * Use is subject to license terms.
24*9585STim.Szeto@Sun.COM  */
25*9585STim.Szeto@Sun.COM 
26*9585STim.Szeto@Sun.COM #ifndef	_LIBSTMF_IMPL_H
27*9585STim.Szeto@Sun.COM #define	_LIBSTMF_IMPL_H
28*9585STim.Szeto@Sun.COM 
29*9585STim.Szeto@Sun.COM #ifdef	__cplusplus
30*9585STim.Szeto@Sun.COM extern "C" {
31*9585STim.Szeto@Sun.COM #endif
32*9585STim.Szeto@Sun.COM 
33*9585STim.Szeto@Sun.COM #include <libstmf.h>
34*9585STim.Szeto@Sun.COM 
35*9585STim.Szeto@Sun.COM typedef struct _luResourceImpl {
36*9585STim.Szeto@Sun.COM 	uint16_t type;
37*9585STim.Szeto@Sun.COM 	void *resource;
38*9585STim.Szeto@Sun.COM } luResourceImpl;
39*9585STim.Szeto@Sun.COM 
40*9585STim.Szeto@Sun.COM 
41*9585STim.Szeto@Sun.COM typedef struct _diskResource {
42*9585STim.Szeto@Sun.COM 	boolean_t   luDataFileNameValid;
43*9585STim.Szeto@Sun.COM 	char	    luDataFileName[MAXPATHLEN];
44*9585STim.Szeto@Sun.COM 	boolean_t   luMetaFileNameValid;
45*9585STim.Szeto@Sun.COM 	char	    luMetaFileName[MAXPATHLEN];
46*9585STim.Szeto@Sun.COM 	boolean_t   luSizeValid;
47*9585STim.Szeto@Sun.COM 	uint64_t    luSize;
48*9585STim.Szeto@Sun.COM 	boolean_t   blkSizeValid;
49*9585STim.Szeto@Sun.COM 	uint16_t    blkSize;
50*9585STim.Szeto@Sun.COM 	boolean_t   luGuidValid;
51*9585STim.Szeto@Sun.COM 	uint8_t	    luGuid[16];
52*9585STim.Szeto@Sun.COM 	boolean_t   serialNumValid;
53*9585STim.Szeto@Sun.COM 	char	    serialNum[253];
54*9585STim.Szeto@Sun.COM 	boolean_t   companyIdValid;
55*9585STim.Szeto@Sun.COM 	uint32_t    companyId;
56*9585STim.Szeto@Sun.COM 	boolean_t   luAliasValid;
57*9585STim.Szeto@Sun.COM 	char	    luAlias[256];
58*9585STim.Szeto@Sun.COM 	boolean_t   vidValid;
59*9585STim.Szeto@Sun.COM 	char	    vid[8];
60*9585STim.Szeto@Sun.COM 	boolean_t   pidValid;
61*9585STim.Szeto@Sun.COM 	char	    pid[16];
62*9585STim.Szeto@Sun.COM 	boolean_t   revValid;
63*9585STim.Szeto@Sun.COM 	char	    rev[4];
64*9585STim.Szeto@Sun.COM 	boolean_t   writeProtectEnableValid;
65*9585STim.Szeto@Sun.COM 	boolean_t   writeProtectEnable;
66*9585STim.Szeto@Sun.COM 	boolean_t   writebackCacheDisableValid;
67*9585STim.Szeto@Sun.COM 	boolean_t   writebackCacheDisable;
68*9585STim.Szeto@Sun.COM } diskResource;
69*9585STim.Szeto@Sun.COM 
70*9585STim.Szeto@Sun.COM 
71*9585STim.Szeto@Sun.COM #ifdef	__cplusplus
72*9585STim.Szeto@Sun.COM }
73*9585STim.Szeto@Sun.COM #endif
74*9585STim.Szeto@Sun.COM 
75*9585STim.Szeto@Sun.COM #endif	/* _LIBSTMF_IMPL_H */
76