Skip to content
Snippets Groups Projects
Select Git revision
  • 723b6d17b641fac582a33017f9980f7dca7dbd09
  • master default
  • trunk
  • RELEASE_6_5_DRIVEDB
  • RELEASE_6_6_DRIVEDB
  • RELEASE_7_0_DRIVEDB
  • RELEASE_7_2_DRIVEDB
  • RELEASE_7_3_DRIVEDB
  • RELEASE_6_0_DRIVEDB
  • RELEASE_6_1_DRIVEDB
  • RELEASE_6_2_DRIVEDB
  • RELEASE_6_3_DRIVEDB
  • RELEASE_6_4_DRIVEDB
  • tags/RELEASE_7_4
  • tags/RELEASE_7_3
  • RELEASE_5_41_DRIVEDB
  • RELEASE_5_42_DRIVEDB
  • RELEASE_5_43_DRIVEDB
  • tags/RELEASE_7_2
  • tags/RELEASE_7_1
  • tags/RELEASE_7_0
  • RELEASE_5_40_DRIVEDB
22 results

extern.h

Blame
  • extern.h 2.62 KiB
    /*
     * extern.h
     *
     * Home page of code is: http://smartmontools.sourceforge.net
     *
     * Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
     * Copyright (C) 1999-2000 Michael Cornwell <cornwell@acm.org>
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 2, or (at your option)
     * any later version.
     *
     * You should have received a copy of the GNU General Public License
     * (for example COPYING); if not, write to the Free
     * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     *
     * This code was originally developed as a Senior Thesis by Michael Cornwell
     * at the Concurrent Systems Laboratory (now part of the Storage Systems
     * Research Center), Jack Baskin School of Engineering, University of
     * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
     *
     */
    
    #ifndef _EXTERN_H_
    #define _EXTERN_H_
    
    
    #ifndef CVSID3
    #define CVSID3 "$Id: extern.h,v 1.12 2003/01/03 17:25:12 ballen4705 Exp $\n"
    #endif
    
    // Block used for global control/communications.  If you need more
    // global variables, this should be the only place that you need to
    // add them.
    typedef struct ataprintmain_s {
      unsigned char driveinfo;
      unsigned char checksmart;
      unsigned char smartvendorattrib;
      unsigned char generalsmartvalues;
      unsigned char smartselftestlog;
      unsigned char smarterrorlog;
      unsigned char smartdisable;
      unsigned char smartenable; 
      unsigned char smartstatus;
      unsigned char smartexeoffimmediate;
      unsigned char smartshortselftest;
      unsigned char smartextendselftest;
      unsigned char smartshortcapselftest;
      unsigned char smartextendcapselftest;
      unsigned char smartselftestabort;
      unsigned char smartautoofflineenable;
      unsigned char smartautoofflinedisable;
      unsigned char smartautosaveenable;
      unsigned char smartautosavedisable;
      int           testcase;
      unsigned char quietmode;
      unsigned char veryquietmode;
      unsigned char permissive;
      unsigned char conservative;
      unsigned char checksumfail;
      unsigned char checksumignore;
      // The i'th entry in this array will modify the printed meaning of
      // the i'th SMART attribute.  The default definitions of the
      // Attributes are obtained by having the array be all zeros.  If
      // attributedefs[i] is nonzero, it means that the i'th attribute has
      // a non-default meaning.  See the ataPrintSmartAttribName function,
      // and list below.
      unsigned char attributedefs[256];
    } atamainctrl;
    
    #endif
    
    /*
    
    attributedefs[9]:
      1 -- time in minutes
      2 -- temperature in Celsius
    attributedefs[220]:
      1 -- temperature in Celsius
    
    */