xref: /onnv-gate/usr/src/lib/libstmf/common/libstmf_impl.h (revision 10765:7ae75584baf6)
19585STim.Szeto@Sun.COM /*
29585STim.Szeto@Sun.COM  * CDDL HEADER START
39585STim.Szeto@Sun.COM  *
49585STim.Szeto@Sun.COM  * The contents of this file are subject to the terms of the
59585STim.Szeto@Sun.COM  * Common Development and Distribution License (the "License").
69585STim.Szeto@Sun.COM  * You may not use this file except in compliance with the License.
79585STim.Szeto@Sun.COM  *
89585STim.Szeto@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99585STim.Szeto@Sun.COM  * or http://www.opensolaris.org/os/licensing.
109585STim.Szeto@Sun.COM  * See the License for the specific language governing permissions
119585STim.Szeto@Sun.COM  * and limitations under the License.
129585STim.Szeto@Sun.COM  *
139585STim.Szeto@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
149585STim.Szeto@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159585STim.Szeto@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
169585STim.Szeto@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
179585STim.Szeto@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
189585STim.Szeto@Sun.COM  *
199585STim.Szeto@Sun.COM  * CDDL HEADER END
209585STim.Szeto@Sun.COM  */
219585STim.Szeto@Sun.COM /*
229585STim.Szeto@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
239585STim.Szeto@Sun.COM  * Use is subject to license terms.
249585STim.Szeto@Sun.COM  */
259585STim.Szeto@Sun.COM 
269585STim.Szeto@Sun.COM #ifndef	_LIBSTMF_IMPL_H
279585STim.Szeto@Sun.COM #define	_LIBSTMF_IMPL_H
289585STim.Szeto@Sun.COM 
299585STim.Szeto@Sun.COM #ifdef	__cplusplus
309585STim.Szeto@Sun.COM extern "C" {
319585STim.Szeto@Sun.COM #endif
329585STim.Szeto@Sun.COM 
339585STim.Szeto@Sun.COM #include <libstmf.h>
349585STim.Szeto@Sun.COM 
359585STim.Szeto@Sun.COM typedef struct _luResourceImpl {
369585STim.Szeto@Sun.COM 	uint16_t type;
379585STim.Szeto@Sun.COM 	void *resource;
389585STim.Szeto@Sun.COM } luResourceImpl;
399585STim.Szeto@Sun.COM 
409585STim.Szeto@Sun.COM 
419585STim.Szeto@Sun.COM typedef struct _diskResource {
429585STim.Szeto@Sun.COM 	boolean_t   luDataFileNameValid;
439585STim.Szeto@Sun.COM 	char	    luDataFileName[MAXPATHLEN];
449585STim.Szeto@Sun.COM 	boolean_t   luMetaFileNameValid;
459585STim.Szeto@Sun.COM 	char	    luMetaFileName[MAXPATHLEN];
469585STim.Szeto@Sun.COM 	boolean_t   luSizeValid;
479585STim.Szeto@Sun.COM 	uint64_t    luSize;
489585STim.Szeto@Sun.COM 	boolean_t   blkSizeValid;
499585STim.Szeto@Sun.COM 	uint16_t    blkSize;
509585STim.Szeto@Sun.COM 	boolean_t   luGuidValid;
519585STim.Szeto@Sun.COM 	uint8_t	    luGuid[16];
529585STim.Szeto@Sun.COM 	boolean_t   serialNumValid;
539585STim.Szeto@Sun.COM 	char	    serialNum[253];
549585STim.Szeto@Sun.COM 	boolean_t   companyIdValid;
559585STim.Szeto@Sun.COM 	uint32_t    companyId;
569585STim.Szeto@Sun.COM 	boolean_t   luAliasValid;
579585STim.Szeto@Sun.COM 	char	    luAlias[256];
5810113SNattuvetty.Bhavyan@Sun.COM 	boolean_t   luMgmtUrlValid;
5910113SNattuvetty.Bhavyan@Sun.COM 	char	    luMgmtUrl[1024];
609585STim.Szeto@Sun.COM 	boolean_t   vidValid;
619585STim.Szeto@Sun.COM 	char	    vid[8];
629585STim.Szeto@Sun.COM 	boolean_t   pidValid;
639585STim.Szeto@Sun.COM 	char	    pid[16];
649585STim.Szeto@Sun.COM 	boolean_t   revValid;
659585STim.Szeto@Sun.COM 	char	    rev[4];
669585STim.Szeto@Sun.COM 	boolean_t   writeProtectEnableValid;
679585STim.Szeto@Sun.COM 	boolean_t   writeProtectEnable;
689585STim.Szeto@Sun.COM 	boolean_t   writebackCacheDisableValid;
699585STim.Szeto@Sun.COM 	boolean_t   writebackCacheDisable;
7010725SJohn.Forte@Sun.COM 	uint16_t    accessState;
71*10765SJohn.Forte@Sun.COM 	uint32_t    hostId;
72*10765SJohn.Forte@Sun.COM 	boolean_t   hostIdValid;
739585STim.Szeto@Sun.COM } diskResource;
749585STim.Szeto@Sun.COM 
759585STim.Szeto@Sun.COM 
769585STim.Szeto@Sun.COM #ifdef	__cplusplus
779585STim.Szeto@Sun.COM }
789585STim.Szeto@Sun.COM #endif
799585STim.Szeto@Sun.COM 
809585STim.Szeto@Sun.COM #endif	/* _LIBSTMF_IMPL_H */
81