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

os_solaris.h

Blame
  • user avatar
    card_captor authored
    git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2235 4ea69e1a-61f1-4043-bf83-b5c94c648137
    66f80abe
    History
    os_solaris.h 2.10 KiB
    /*
     * os_solaris.h
     *
     * Home page of code is: http://smartmontools.sourceforge.net
     *
     * Copyright (C) 2003-6 SAWADA Keiji <smartmontools-support@lists.sourceforge.net>
     * Copyright (C) 2003-6 Casper Dik <smartmontools-support@lists.sourceforge.net>
     *
     * 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 OS_SOLARIS_H_
    #define OS_SOLARIS_H_
    
    #define OS_SOLARIS_H_CVSID "$Id: os_solaris.h,v 1.13 2006/08/12 05:41:13 card_captor Exp $\n"
    
    // Additional material should start here.  Note: to keep the '-V' CVS
    // reporting option working as intended, you should only #include
    // system include files <something.h>.  Local #include files
    // <"something.h"> should be #included in os_solaris.c
    
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    
    // function prototypes for functions defined in os_solaris_ata.s
    extern "C" {
      int smart_read_data(int fd, void *data);
      int smart_read_thresholds(int fd, void *data);
      int smart_read_log(int fd, int s, int count, void *data);
      int ata_identify(int fd, void *data);
      int ata_pidentify(int fd, void *data);
      int smart_enable(int fd);
      int smart_disable(int fd);
      int smart_status(int fd);
      int smart_auto_offline(int fd, int s);
      int smart_auto_save(int fd, int s);
      int smart_immediate_offline(int fd, int s);
      int smart_status_check(int fd);
    }
    
    // wrapper macros
    #define smart_enable_auto_save(fd)	smart_auto_save(fd, 0xf1)
    #define smart_disable_auto_save(fd)	smart_auto_save(fd, 0x00)
    
    #endif /* OS_SOLARIS_H_ */