]>
Commit | Line | Data |
---|---|---|
832b75ed GG |
1 | /* |
2 | * os_openbsd.h | |
3 | * | |
a86ec89e | 4 | * Home page of code is: http://www.smartmontools.org |
832b75ed | 5 | * |
f9e10201 | 6 | * Copyright (C) 2004-8 David Snyder |
832b75ed | 7 | * |
f9e10201 | 8 | * Derived from os_netbsd.c by Sergey Svishchev, Copyright (C) 2003-8 |
832b75ed | 9 | * |
ff28b140 | 10 | * SPDX-License-Identifier: GPL-2.0-or-later |
832b75ed GG |
11 | */ |
12 | ||
13 | #ifndef OS_OPENBSD_H_ | |
14 | #define OS_OPENBSD_H_ | |
15 | ||
ff28b140 | 16 | #define OS_OPENBSD_H_CVSID "$Id: os_openbsd.h 4760 2018-08-19 18:45:53Z chrfranke $\n" |
832b75ed GG |
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> | |
4d59bff9 | 41 | #include <unistd.h> |
832b75ed GG |
42 | |
43 | #endif /* OS_OPENBSD_H_ */ |