aboutsummaryrefslogtreecommitdiff
path: root/include/sg_cmds_extra.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2011-02-08 21:43:06 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2011-02-08 21:43:06 +0000
commit9b5ace47bb89360d7b3f813ec10d6c93c41712fc (patch)
tree61fa8b249be09162e9cdaa91037dfde6e60e42cc /include/sg_cmds_extra.h
parent9c835372f5e737b9e967f6b2a9eabf2a401713a3 (diff)
downloadsg3_utils-9b5ace47bb89360d7b3f813ec10d6c93c41712fc.tar.gz
add scsi_pt_win32_spt_state() for windows; add sg_ll_verify16(); decode user data segment referral sense data descriptor
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@379 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r--include/sg_cmds_extra.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h
index 5d038e2e..2786151a 100644
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -2,7 +2,7 @@
#define SG_CMDS_EXTRA_H
/*
- * Copyright (c) 2004-2010 Douglas Gilbert.
+ * Copyright (c) 2004-2011 Douglas Gilbert.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
@@ -221,6 +221,20 @@ extern int sg_ll_verify10(int sg_fd, int vrprotect, int dpo, int bytechk,
int data_out_len, unsigned int * infop, int noisy,
int verbose);
+/* Invokes a SCSI VERIFY (16) command (SBC).
+ * Note that 'veri_len' is in blocks while 'data_out_len' is in bytes.
+ * Returns of 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> Verify(16) not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,
+ * SG_LIB_CAT_MEDIUM_HARD -> medium or hardware error, no valid info,
+ * SG_LIB_CAT_MEDIUM_HARD_WITH_INFO -> as previous, with valid info,
+ * SG_LIB_CAT_NOT_READY -> device not ready, SG_LIB_CAT_ABORTED_COMMAND,
+ * -1 -> other failure */
+extern int sg_ll_verify16(int sg_fd, int vrprotect, int dpo, int bytechk,
+ uint64_t llba, int veri_len, int group_num,
+ void * data_out, int data_out_len,
+ uint64_t * infop, int noisy, int verbose);
+
/* Invokes a SCSI WRITE BUFFER command (SPC). Return of 0 ->
* success, SG_LIB_CAT_INVALID_OP -> invalid opcode,
* SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,