]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - os_solaris.h
4 * Home page of code is: http://www.smartmontools.org
6 * Copyright (C) 2003-8 SAWADA Keiji
7 * Copyright (C) 2003-8 Casper Dik
9 * SPDX-License-Identifier: GPL-2.0-or-later
15 #define OS_SOLARIS_H_CVSID "$Id: os_solaris.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
17 // Additional material should start here. Note: to keep the '-V' CVS
18 // reporting option working as intended, you should only #include
19 // system include files <something.h>. Local #include files
20 // <"something.h"> should be #included in os_solaris.c
22 #include <sys/types.h>
26 // function prototypes for functions defined in os_solaris_ata.s
28 int smart_read_data(int fd
, void *data
);
29 int smart_read_thresholds(int fd
, void *data
);
30 int smart_read_log(int fd
, int s
, int count
, void *data
);
31 int ata_identify(int fd
, void *data
);
32 int ata_pidentify(int fd
, void *data
);
33 int smart_enable(int fd
);
34 int smart_disable(int fd
);
35 int smart_status(int fd
);
36 int smart_auto_offline(int fd
, int s
);
37 int smart_auto_save(int fd
, int s
);
38 int smart_immediate_offline(int fd
, int s
);
39 int smart_status_check(int fd
);
43 #define smart_enable_auto_save(fd) smart_auto_save(fd, 0xf1)
44 #define smart_disable_auto_save(fd) smart_auto_save(fd, 0x00)
46 #endif /* OS_SOLARIS_H_ */