Skip to content
Snippets Groups Projects
Select Git revision
  • dadc06924b0f0c6c38ae4890cdc01fada2184fe0
  • 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

scsiprint.h

Blame
  • knowndrives.cpp 17.65 KiB
    /*
     * knowndrives.c
     *
     * Home page of code is: http://smartmontools.sourceforge.net
     * Address of support mailing list: smartmontools-support@lists.sourceforge.net
     *
     * Copyright (C) 2003 Philip Williams, Bruce Allen
     *
     * 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.
     *
     */
    
    #include <stdio.h>
    #include <sys/types.h>
    #include <regex.h>
    #include "atacmds.h"
    #include "ataprint.h"
    #include "extern.h"
    #include "knowndrives.h"
    #include "utility.h"
    #include "config.h"
    
    const char *knowndrives_c_cvsid="$Id: knowndrives.cpp,v 1.58 2003/11/26 20:41:56 pjwilliams Exp $"
                                    ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID KNOWNDRIVES_H_CVSID UTILITY_H_CVSID;
    
    #define MODEL_STRING_LENGTH                         40
    #define FIRMWARE_STRING_LENGTH                       8
    #define TABLEPRINTWIDTH                             19
    
    // See vendorattributeargs[] array in atacmds.c for definitions.
    #define PRESET_9_MINUTES                   {   9,  1 }
    #define PRESET_9_TEMP                      {   9,  2 }
    #define PRESET_9_SECONDS                   {   9,  3 }
    #define PRESET_9_HALFMINUTES               {   9,  4 }
    #define PRESET_192_EMERGENCYRETRACTCYCLECT { 192,  1 }
    #define PRESET_193_LOADUNLOAD              { 193,  1 }
    #define PRESET_194_10XCELSIUS              { 194,  1 }
    #define PRESET_194_UNKNOWN                 { 194,  2 }
    #define PRESET_198_OFFLINESCANUNCSECTORCT  { 198,  1 }
    #define PRESET_200_WRITEERRORCOUNT         { 200,  1 }
    #define PRESET_201_DETECTEDTACOUNT         { 201,  1 }         
    #define PRESET_220_TEMP                    { 220,  1 }
    
    /* Arrays of preset vendor-specific attribute options for use in
     * knowndrives[]. */
    
    extern long long bytes;
    
    // to hold onto exit code for atexit routine
    extern int exitstatus;
    
    // These two are common to several models.
    const unsigned char vendoropts_9_minutes[][2] = {
      PRESET_9_MINUTES,
      {0,0}
    };
    const unsigned char vendoropts_9_seconds[][2] = {
      PRESET_9_SECONDS,
      {0,0}
    };
    
    const unsigned char vendoropts_Maxtor_4D080H4[][2] = {
      PRESET_9_MINUTES,