]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - scsiprint.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / scsiprint.h
CommitLineData
832b75ed
GG
1/*
2 * scsiprint.h
3 *
a86ec89e 4 * Home page of code is: http://www.smartmontools.org
832b75ed 5 *
f9e10201 6 * Copyright (C) 2002-9 Bruce Allen
832b75ed
GG
7 * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org>
8 *
9 * Additional SCSI work:
ff28b140 10 * Copyright (C) 2003-18 Douglas Gilbert <dgilbert@interlog.com>
832b75ed 11 *
ff28b140 12 * SPDX-License-Identifier: GPL-2.0-or-later
832b75ed
GG
13 */
14
15
832b75ed
GG
16#ifndef SCSI_PRINT_H_
17#define SCSI_PRINT_H_
18
ff28b140 19#define SCSIPRINT_H_CVSID "$Id: scsiprint.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
832b75ed 20
2127e193 21// Options for scsiPrintMain
2127e193
GI
22struct scsi_print_options
23{
24 bool drive_info;
25 bool smart_check_status;
26 bool smart_vendor_attrib;
27 bool smart_error_log;
28 bool smart_selftest_log;
29 bool smart_background_log;
d008864d 30 bool smart_ss_media_log;
2127e193
GI
31
32 bool smart_disable, smart_enable;
33 bool smart_auto_save_disable, smart_auto_save_enable;
34
35 bool smart_default_selftest;
36 bool smart_short_selftest, smart_short_cap_selftest;
37 bool smart_extend_selftest, smart_extend_cap_selftest;
38 bool smart_selftest_abort;
ee38a438 39 bool smart_selftest_force; // Ignore already running test
2127e193
GI
40
41 bool sasphy, sasphy_reset;
ee38a438
GI
42
43 bool get_wce, get_rcd;
44 short int set_wce, set_rcd; // disable(-1), enable(1) cache
2127e193
GI
45
46 scsi_print_options()
47 : drive_info(false),
48 smart_check_status(false),
49 smart_vendor_attrib(false),
50 smart_error_log(false),
51 smart_selftest_log(false),
52 smart_background_log(false),
d008864d 53 smart_ss_media_log(false),
2127e193
GI
54 smart_disable(false), smart_enable(false),
55 smart_auto_save_disable(false), smart_auto_save_enable(false),
56 smart_default_selftest(false),
57 smart_short_selftest(false), smart_short_cap_selftest(false),
58 smart_extend_selftest(false), smart_extend_cap_selftest(false),
59 smart_selftest_abort(false),
ee38a438
GI
60 smart_selftest_force(false),
61 sasphy(false), sasphy_reset(false),
62 get_wce(false), get_rcd(false),
63 set_wce(0), set_rcd(0)
2127e193
GI
64 { }
65};
66
67int scsiPrintMain(scsi_device * device, const scsi_print_options & options);
832b75ed
GG
68
69#endif