]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - os_openbsd.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / os_openbsd.h
1 /*
2 * os_openbsd.h
3 *
4 * Home page of code is: http://www.smartmontools.org
5 *
6 * Copyright (C) 2004-8 David Snyder <smartmontools-support@lists.sourceforge.net>
7 *
8 * Derived from os_netbsd.c by Sergey Svishchev <smartmontools-support@lists.sourceforge.net>, Copyright (C) 2003-8
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2, or (at your option)
13 * any later version.
14 *
15 * You should have received a copy of the GNU General Public License
16 * (for example COPYING); if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * This code was originally developed as a Senior Thesis by Michael Cornwell
20 * at the Concurrent Systems Laboratory (now part of the Storage Systems
21 * Research Center), Jack Baskin School of Engineering, University of
22 * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
23 *
24 */
25
26 #ifndef OS_OPENBSD_H_
27 #define OS_OPENBSD_H_
28
29 #define OS_OPENBSD_H_CVSID "$Id: os_openbsd.h 4120 2015-08-27 16:12:21Z samm2 $\n"
30
31 /* from NetBSD: atareg.h,v 1.17, by Manuel Bouyer */
32 /* Actually fits _perfectly_ into OBSDs wdcreg.h, but... */
33 /* Subcommands for SMART (features register) */
34 #define WDSMART_CYL 0xc24f
35
36 #include <sys/device.h>
37 #include <sys/param.h>
38 #include <sys/sysctl.h>
39
40 #include <sys/scsiio.h>
41 #include <sys/ataio.h>
42
43 #define ata_smart_selftestlog __openbsd_ata_smart_selftestlog
44 #include <dev/ata/atareg.h>
45 #if HAVE_DEV_ATA_ATAVAR_H
46 #include <dev/ata/atavar.h>
47 #endif
48 #include <dev/ic/wdcreg.h>
49 #undef ata_smart_selftestlog
50
51 #include <err.h>
52 #include <fcntl.h>
53 #include <util.h>
54 #include <unistd.h>
55
56 #endif /* OS_OPENBSD_H_ */