]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - os_os2.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / os_os2.h
index 3d8cb860c82db66b44f7e2f09b3fd524d5daf2d3..a5febb052f01f882f9d2a8871a5c0ac50e76ab76 100644 (file)
--- a/os_os2.h
+++ b/os_os2.h
@@ -1,24 +1,17 @@
 /*
  * os_os2.c
  *
- * Home page of code is: http://smartmontools.sourceforge.net
+ * Home page of code is: http://www.smartmontools.org
  *
- * Copyright (C) 2004-8 Yuri Dario <smartmontools-support@lists.sourceforge.net>
+ * Copyright (C) 2004-8 Yuri Dario
  *
- * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #ifndef OS_OS2_H_
 #define OS_OS2_H_
 
-#define OS_XXXX_H_CVSID "$Id: os_os2.h 3728 2012-12-13 17:57:50Z chrfranke $\n"
+#define OS_XXXX_H_CVSID "$Id: os_os2.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
 
 // Additional material should start here.  Note: to keep the '-V' CVS
 // reporting option working as intended, you should only #include
 #define INCL_DOS
 #include <os2.h>
 
-#include "os_os2\hdreg.h"
 #include "os_linux.h"
 
 #pragma pack(1)
 
+/* IOCTL definitions from s506oem.h (primarily required for SMART calls) */
 #define DSKSP_CAT_SMART             0x80  /* SMART IOCTL category */
 #define DSKSP_SMART_ONOFF           0x20  /* turn SMART on or off */
 #define DSKSP_SMART_AUTOSAVE_ONOFF  0x21  /* turn SMART autosave on or off */
 #define DSKSP_SMART_GETSTATUS       0x23  /* get SMART status (pass/fail) */
 #define DSKSP_SMART_GET_ATTRIBUTES  0x24  /* get SMART attributes table */
 #define DSKSP_SMART_GET_THRESHOLDS  0x25  /* get SMART thresholds table */
-#define DSKSP_SMART_READ_LOG        0x26  
-#define DSKSP_SMART_WRITE_LOG       0x27  
-#define DSKSP_SMART_READ_LOG_EXT    0x28  
-#define DSKSP_SMART_WRITE_LOG_EXT   0x29  
-#define DSKSP_SMART_EOLI            0x30  /* EXECUTE OFF-LINE IMMEDIATE */
+#define DSKSP_SMART_GET_LOG         0x26  /* get SMART log        table */
+#define DSKSP_SMART_AUTO_OFFLINE    0x27  /* set SMART offline autosave timer */
+#define DSKSP_SMART_EXEC_OFFLINE 0x28 /* execute SMART immediate offline */
 
 #define SMART_CMD_ON      1   /* on  value for related SMART functions */
 #define SMART_CMD_OFF     0   /* off value for related SMART functions */
@@ -67,4 +58,9 @@ struct SMART_ParamExt {
   ULONG      reserved;        // reserved. must be set to 0
 };
 
+const char * danisdev="\\DEV\\IBMS506$"; // DANIS506
+const char * danispref="hd";
+const char * ahcidev="\\DEV\\OS2AHCI$";  // OS2AHCI
+const char * ahcipref="ahci";
+
 #endif /* OS_GENERIC_H_ */