~ubuntu-branches/ubuntu/wily/sg3-utils/wily

« back to all changes in this revision

Viewing changes to include/sg_lib.h

  • Committer: Package Import Robot
  • Author(s): Ritesh Raj Sarraf
  • Date: 2013-06-23 16:08:01 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20130623160801-7rt7zb2dwk0ba7ut
Tags: 1.36-1
* [69e9dac] Imported Upstream version 1.36
* [cb75936] Add debian compat, level 7
* [68fed25] update README.source
* [3c724fc] Add build-dep autotools-dev
* [e4b9fdd] add destdir to install path
* [7cfff11] Simplify build with debhelper
* [f9a7540] Update symbols for 1.36 release
* [7b0b48d] Enable hardening build

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define SG_LIB_H
3
3
 
4
4
/*
5
 
 * Copyright (c) 2004-2011 Douglas Gilbert.
 
5
 * Copyright (c) 2004-2013 Douglas Gilbert.
6
6
 * All rights reserved.
7
7
 * Use of this source code is governed by a BSD-style
8
8
 * license that can be found in the BSD_LICENSE file.
90
90
#define SPC_SK_MISCOMPARE 0xe
91
91
#define SPC_SK_COMPLETED 0xf
92
92
 
93
 
/* Transport protocol identifiers */
 
93
/* Transport protocol identifiers or just Protocol identifiers */
94
94
#define TPROTO_FCP 0
95
95
#define TPROTO_SPI 1
96
96
#define TPROTO_SSA 2
100
100
#define TPROTO_SAS 6
101
101
#define TPROTO_ADT 7
102
102
#define TPROTO_ATA 8
 
103
#define TPROTO_UAS 9
 
104
#define TPROTO_SOP 0xa
103
105
#define TPROTO_NONE 0xf
104
106
 
105
107
 
194
196
extern int sg_get_sense_progress_fld(const unsigned char * sensep,
195
197
                                     int sb_len, int * progress_outp);
196
198
 
197
 
/* Closely related to sg_print_sense(). Puts decode sense data in 'buff'.
 
199
/* Closely related to sg_print_sense(). Puts decoded sense data in 'buff'.
198
200
 * Usually multiline with multiple '\n' including one trailing. If
199
201
 * 'raw_sinfo' set appends sense buffer in hex. */
200
202
extern void sg_get_sense_str(const char * leadin,