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_os2.cpp

Blame
  • dev_ata_cmd_set.h 1.40 KiB
    /*
     * dev_ata_cmd_set.h
     *
     * Home page of code is: http://smartmontools.sourceforge.net
     *
     * Copyright (C) 2008 Christian Franke <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, see <http://www.gnu.org/licenses/>.
     *
     */
    
    #ifndef DEV_ATA_CMD_SET_H
    #define DEV_ATA_CMD_SET_H
    
    #define DEV_ATA_CMD_SET_H_CVSID "$Id: dev_ata_cmd_set.h,v 1.2 2008/08/23 17:07:16 chrfranke Exp $\n"
    
    #include "atacmds.h" // smart_command_set
    #include "dev_interface.h"
    
    /////////////////////////////////////////////////////////////////////////////
    // ata_device_with_command_set
    
    /// Adapter class to implement new ATA pass through old interface.
    
    class ata_device_with_command_set
    : public /*implements*/ ata_device
    {
    protected:
      /// ATA pass through mapped to ata_command_interface().
      virtual bool ata_pass_through(const ata_cmd_in & in, ata_cmd_out & out);
    
      /// Old ATA interface called by ata_pass_through()
      virtual int ata_command_interface(smart_command_set command, int select, char * data) = 0;
    
      ata_device_with_command_set()
        : smart_device(never_called) { }
    };
    
    #endif // DEV_ATA_CMD_SET_H