import less(1)
[unleashed/tickless.git] / usr / src / lib / libstmf / common / libstmf_impl.h
blobec02fcd93db0062c25cecf367dfa353995f32650
1 /*
2 * CDDL HEADER START
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.
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.
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]
19 * CDDL HEADER END
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _LIBSTMF_IMPL_H
27 #define _LIBSTMF_IMPL_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 #include <libstmf.h>
35 typedef struct _luResourceImpl {
36 uint16_t type;
37 void *resource;
38 } luResourceImpl;
41 typedef struct _diskResource {
42 boolean_t luDataFileNameValid;
43 char luDataFileName[MAXPATHLEN];
44 boolean_t luMetaFileNameValid;
45 char luMetaFileName[MAXPATHLEN];
46 boolean_t luSizeValid;
47 uint64_t luSize;
48 boolean_t blkSizeValid;
49 uint16_t blkSize;
50 boolean_t luGuidValid;
51 uint8_t luGuid[16];
52 boolean_t serialNumValid;
53 char serialNum[253];
54 boolean_t companyIdValid;
55 uint32_t companyId;
56 boolean_t luAliasValid;
57 char luAlias[256];
58 boolean_t luMgmtUrlValid;
59 char luMgmtUrl[1024];
60 boolean_t vidValid;
61 char vid[8];
62 boolean_t pidValid;
63 char pid[16];
64 boolean_t revValid;
65 char rev[4];
66 boolean_t writeProtectEnableValid;
67 boolean_t writeProtectEnable;
68 boolean_t writebackCacheDisableValid;
69 boolean_t writebackCacheDisable;
70 uint16_t accessState;
71 uint32_t hostId;
72 boolean_t hostIdValid;
73 } diskResource;
76 #ifdef __cplusplus
78 #endif
80 #endif /* _LIBSTMF_IMPL_H */