4 * Home page of code is: http://www.smartmontools.org
6 * Copyright (C) 2008 Christian Franke
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef DEV_ATA_CMD_SET_H
12 #define DEV_ATA_CMD_SET_H
14 #define DEV_ATA_CMD_SET_H_CVSID "$Id: dev_ata_cmd_set.h 4760 2018-08-19 18:45:53Z chrfranke $"
16 #include "atacmds.h" // smart_command_set
17 #include "dev_interface.h"
19 /////////////////////////////////////////////////////////////////////////////
20 // ata_device_with_command_set
22 /// Adapter class to implement new ATA pass through old interface.
24 class ata_device_with_command_set
25 : public /*implements*/ ata_device
28 /// ATA pass through mapped to ata_command_interface().
29 virtual bool ata_pass_through(const ata_cmd_in
& in
, ata_cmd_out
& out
);
32 /// Old ATA interface called by ata_pass_through()
33 virtual int ata_command_interface(smart_command_set command
, int select
, char * data
) = 0;
35 ata_device_with_command_set()
36 : smart_device(never_called
) { }
39 #endif // DEV_ATA_CMD_SET_H