]>
Commit | Line | Data |
---|---|---|
832b75ed GG |
1 | /* |
2 | * scsiprint.h | |
3 | * | |
4 | * Home page of code is: http://smartmontools.sourceforge.net | |
5 | * | |
2127e193 | 6 | * Copyright (C) 2002-9 Bruce Allen <smartmontools-support@lists.sourceforge.net> |
832b75ed GG |
7 | * Copyright (C) 2000 Michael Cornwell <cornwell@acm.org> |
8 | * | |
9 | * Additional SCSI work: | |
2127e193 | 10 | * Copyright (C) 2003-9 Douglas Gilbert <dougg@torque.net> |
832b75ed GG |
11 | * |
12 | * This program is free software; you can redistribute it and/or modify | |
13 | * it under the terms of the GNU General Public License as published by | |
14 | * the Free Software Foundation; either version 2, or (at your option) | |
15 | * any later version. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License | |
18 | * (for example COPYING); if not, write to the Free | |
19 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | * | |
21 | * This code was originally developed as a Senior Thesis by Michael Cornwell | |
22 | * at the Concurrent Systems Laboratory (now part of the Storage Systems | |
23 | * Research Center), Jack Baskin School of Engineering, University of | |
24 | * California, Santa Cruz. http://ssrc.soe.ucsc.edu/ | |
25 | * | |
26 | */ | |
27 | ||
28 | ||
832b75ed GG |
29 | #ifndef SCSI_PRINT_H_ |
30 | #define SCSI_PRINT_H_ | |
31 | ||
2127e193 | 32 | #define SCSIPRINT_H_CVSID "$Id: scsiprint.h,v 1.24 2009/06/21 02:39:32 dpgilbert Exp $\n" |
832b75ed | 33 | |
2127e193 GI |
34 | // Options for scsiPrintMain |
35 | // TODO: Move remaining options from con->* to here. | |
36 | struct scsi_print_options | |
37 | { | |
38 | bool drive_info; | |
39 | bool smart_check_status; | |
40 | bool smart_vendor_attrib; | |
41 | bool smart_error_log; | |
42 | bool smart_selftest_log; | |
43 | bool smart_background_log; | |
44 | ||
45 | bool smart_disable, smart_enable; | |
46 | bool smart_auto_save_disable, smart_auto_save_enable; | |
47 | ||
48 | bool smart_default_selftest; | |
49 | bool smart_short_selftest, smart_short_cap_selftest; | |
50 | bool smart_extend_selftest, smart_extend_cap_selftest; | |
51 | bool smart_selftest_abort; | |
52 | ||
53 | bool sasphy, sasphy_reset; | |
54 | ||
55 | scsi_print_options() | |
56 | : drive_info(false), | |
57 | smart_check_status(false), | |
58 | smart_vendor_attrib(false), | |
59 | smart_error_log(false), | |
60 | smart_selftest_log(false), | |
61 | smart_background_log(false), | |
62 | smart_disable(false), smart_enable(false), | |
63 | smart_auto_save_disable(false), smart_auto_save_enable(false), | |
64 | smart_default_selftest(false), | |
65 | smart_short_selftest(false), smart_short_cap_selftest(false), | |
66 | smart_extend_selftest(false), smart_extend_cap_selftest(false), | |
67 | smart_selftest_abort(false), | |
68 | sasphy(false), sasphy_reset(false) | |
69 | { } | |
70 | }; | |
71 | ||
72 | int scsiPrintMain(scsi_device * device, const scsi_print_options & options); | |
832b75ed GG |
73 | |
74 | #endif |