]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - os_solaris.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / os_solaris.h
CommitLineData
832b75ed
GG
1/*
2 * os_solaris.h
3 *
a86ec89e 4 * Home page of code is: http://www.smartmontools.org
832b75ed 5 *
f9e10201
JD
6 * Copyright (C) 2003-8 SAWADA Keiji
7 * Copyright (C) 2003-8 Casper Dik
832b75ed 8 *
ff28b140 9 * SPDX-License-Identifier: GPL-2.0-or-later
832b75ed
GG
10 */
11
12#ifndef OS_SOLARIS_H_
13#define OS_SOLARIS_H_
14
ff28b140 15#define OS_SOLARIS_H_CVSID "$Id: os_solaris.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
832b75ed
GG
16
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
21
22#include <sys/types.h>
23#include <sys/stat.h>
24#include <fcntl.h>
25
26// function prototypes for functions defined in os_solaris_ata.s
4d59bff9
GG
27extern "C" {
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);
40}
832b75ed
GG
41
42// wrapper macros
43#define smart_enable_auto_save(fd) smart_auto_save(fd, 0xf1)
44#define smart_disable_auto_save(fd) smart_auto_save(fd, 0x00)
45
46#endif /* OS_SOLARIS_H_ */