]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - extern.h
add debian specific patches
[mirror_smartmontools-debian.git] / extern.h
1 /*
2 * extern.h
3 *
4 * Home page of code is: http://smartmontools.sourceforge.net
5 *
6 * Copyright (C) 2002-6 Bruce Allen <smartmontools-support@lists.sourceforge.net>
7 * Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
12 * any later version.
13 *
14 * You should have received a copy of the GNU General Public License
15 * (for example COPYING); if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 *
18 * This code was originally developed as a Senior Thesis by Michael Cornwell
19 * at the Concurrent Systems Laboratory (now part of the Storage Systems
20 * Research Center), Jack Baskin School of Engineering, University of
21 * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
22 *
23 */
24
25 #ifndef EXTERN_H_
26 #define EXTERN_H_
27
28 #define EXTERN_H_CVSID "$Id: extern.h,v 1.41 2006/04/12 14:54:28 ballen4705 Exp $\n"
29
30 // Possible values for fixfirmwarebug. If use has NOT specified -F at
31 // all, then value is 0.
32 #define FIX_NOTSPECIFIED 0
33 #define FIX_NONE 1
34 #define FIX_SAMSUNG 2
35 #define FIX_SAMSUNG2 3
36
37 // Block used for global control/communications. If you need more
38 // global variables, this should be the only place that you need to
39 // add them.
40 typedef struct smartmonctrl_s {
41 // spans for selective self-test
42 uint64_t smartselectivespan[5][2];
43 // number of spans
44 int smartselectivenumspans;
45 int testcase;
46 // one plus time in minutes to wait after powerup before restarting
47 // interrupted offline scan after selective self-test.
48 int pendingtime;
49 // run offline scan after selective self-test. 0: don't change, 1:
50 // turn off scan after selective self-test, 2: turn on scan after
51 // selective self-test.
52 unsigned char scanafterselect;
53 unsigned char driveinfo;
54 unsigned char checksmart;
55 unsigned char smartvendorattrib;
56 unsigned char generalsmartvalues;
57 unsigned char smartlogdirectory;
58 unsigned char smartselftestlog;
59 unsigned char selectivetestlog;
60 unsigned char smarterrorlog;
61 unsigned char smartdisable;
62 unsigned char smartenable;
63 unsigned char smartstatus;
64 unsigned char smartexeoffimmediate;
65 unsigned char smartshortselftest;
66 unsigned char smartextendselftest;
67 unsigned char smartconveyanceselftest;
68 unsigned char smartselectiveselftest;
69 unsigned char smartshortcapselftest;
70 unsigned char smartextendcapselftest;
71 unsigned char smartconveyancecapselftest;
72 unsigned char smartselectivecapselftest;
73 unsigned char smartselftestabort;
74 unsigned char smartautoofflineenable;
75 unsigned char smartautoofflinedisable;
76 unsigned char smartautosaveenable;
77 unsigned char smartautosavedisable;
78 unsigned char printing_switchable;
79 unsigned char dont_print;
80 unsigned char permissive;
81 unsigned char conservative;
82 unsigned char checksumfail;
83 unsigned char checksumignore;
84 unsigned char reportataioctl;
85 unsigned char reportscsiioctl;
86 unsigned char fixfirmwarebug;
87 // 3Ware controller type, but also extensible to other contoller types
88 unsigned char controller_type;
89 // For 3Ware controllers, nonzero value is 1 plus the disk number
90 unsigned char controller_port;
91 unsigned char ignorepresets;
92 unsigned char showpresets;
93 // The i'th entry in this array will modify the printed meaning of
94 // the i'th SMART attribute. The default definitions of the
95 // Attributes are obtained by having the array be all zeros. If
96 // attributedefs[i] is nonzero, it means that the i'th attribute has
97 // a non-default meaning. See the ataPrintSmartAttribName and
98 // and parse_attribute_def functions.
99 unsigned char attributedefs[256];
100 } smartmonctrl;
101
102 #endif