11ef61828SYuri Pankov /*
21ef61828SYuri Pankov  * This file and its contents are supplied under the terms of the
31ef61828SYuri Pankov  * Common Development and Distribution License ("CDDL"), version 1.0.
41ef61828SYuri Pankov  * You may only use this file in accordance with the terms of version
51ef61828SYuri Pankov  * 1.0 of the CDDL.
61ef61828SYuri Pankov  *
71ef61828SYuri Pankov  * A full copy of the text of the CDDL should have accompanied this
81ef61828SYuri Pankov  * source.  A copy of the CDDL is also available via the Internet at
91ef61828SYuri Pankov  * http://www.illumos.org/license/CDDL.
101ef61828SYuri Pankov  */
111ef61828SYuri Pankov 
121ef61828SYuri Pankov /*
131ef61828SYuri Pankov  * Copyright 2016 Nexenta Systems, Inc.
141ef61828SYuri Pankov  */
151ef61828SYuri Pankov 
161ef61828SYuri Pankov #ifndef _SYS_SCSI_SCSI_NAMES_H_
171ef61828SYuri Pankov #define	_SYS_SCSI_SCSI_NAMES_H_
181ef61828SYuri Pankov 
191ef61828SYuri Pankov #ifdef __cplusplus
201ef61828SYuri Pankov extern "C" {
211ef61828SYuri Pankov #endif
221ef61828SYuri Pankov 
231ef61828SYuri Pankov /* SCSI Name Strings */
241ef61828SYuri Pankov #define	SNS_EUI		"eui"
251ef61828SYuri Pankov #define	SNS_IQN		"iqn"
261ef61828SYuri Pankov #define	SNS_MAC		"mac"
271ef61828SYuri Pankov #define	SNS_NAA		"naa"
281ef61828SYuri Pankov #define	SNS_WWN		"wwn"
291ef61828SYuri Pankov 
301ef61828SYuri Pankov /* SCSI Name String maximum length definitions */
311ef61828SYuri Pankov #define	SNS_EUI_16	16
321ef61828SYuri Pankov #define	SNS_IQN_223	223
331ef61828SYuri Pankov #define	SNS_MAC_12	12
341ef61828SYuri Pankov #define	SNS_NAA_16	16
351ef61828SYuri Pankov #define	SNS_NAA_32	32
361ef61828SYuri Pankov #define	SNS_WWN_16	16
371ef61828SYuri Pankov 
38*61dfa509SRick McNeal #define	SNS_EUI_LEN_MAX		sizeof (SNS_EUI) + SNS_EUI_16
39*61dfa509SRick McNeal #define	SNS_IQN_LEN_MAX		SNS_IQN_223
40*61dfa509SRick McNeal #define	SNS_MAC_LEN_MAX		sizeof (SNS_MAC) + SNS_MAC_12
41*61dfa509SRick McNeal #define	SNS_NAA_LEN_MAX		sizeof (SNS_NAA) + SNS_NAA_32
42*61dfa509SRick McNeal #define	SNS_WWN_LEN_MAX		sizeof (SNS_WWN) + SNS_WWN_16
43*61dfa509SRick McNeal 
44*61dfa509SRick McNeal #define	SNS_LEN_MAX		SNS_IQN_LEN_MAX
451ef61828SYuri Pankov 
461ef61828SYuri Pankov #ifdef __cplusplus
471ef61828SYuri Pankov }
481ef61828SYuri Pankov #endif
491ef61828SYuri Pankov 
501ef61828SYuri Pankov #endif	/* _SYS_SCSI_SCSI_NAMES_H_ */
51