smartmontools  SVN Rev 5304
Utility to control and monitor storage systems with "S.M.A.R.T."
os_openbsd.h
Go to the documentation of this file.
1 /*
2  * os_openbsd.h
3  *
4  * Home page of code is: http://www.smartmontools.org
5  *
6  * Copyright (C) 2004-8 David Snyder
7  *
8  * Derived from os_netbsd.c by Sergey Svishchev, Copyright (C) 2003-8
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef OS_OPENBSD_H_
14 #define OS_OPENBSD_H_
15 
16 #define OS_OPENBSD_H_CVSID "$Id: os_openbsd.h 4760 2018-08-19 18:45:53Z chrfranke $\n"
17 
18 /* from NetBSD: atareg.h,v 1.17, by Manuel Bouyer */
19 /* Actually fits _perfectly_ into OBSDs wdcreg.h, but... */
20 /* Subcommands for SMART (features register) */
21 #define WDSMART_CYL 0xc24f
22 
23 #include <sys/device.h>
24 #include <sys/param.h>
25 #include <sys/sysctl.h>
26 
27 #include <sys/scsiio.h>
28 #include <sys/ataio.h>
29 
30 #define ata_smart_selftestlog __openbsd_ata_smart_selftestlog
31 #include <dev/ata/atareg.h>
32 #if HAVE_DEV_ATA_ATAVAR_H
33 #include <dev/ata/atavar.h>
34 #endif
35 #include <dev/ic/wdcreg.h>
36 #undef ata_smart_selftestlog
37 
38 #include <err.h>
39 #include <fcntl.h>
40 #include <util.h>
41 #include <unistd.h>
42 
43 #endif /* OS_OPENBSD_H_ */