|
smartmontools SVN Rev 3317
Utility to control and monitor storage systems with "S.M.A.R.T."
|
00001 /* 00002 * os_openbsd.h 00003 * 00004 * Home page of code is: http://smartmontools.sourceforge.net 00005 * 00006 * Copyright (C) 2004-8 David Snyder <smartmontools-support@lists.sourceforge.net> 00007 * 00008 * Derived from os_netbsd.c by Sergey Svishchev <smartmontools-support@lists.sourceforge.net>, Copyright (C) 2003-8 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2, or (at your option) 00013 * any later version. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * (for example COPYING); if not, write to the Free Software Foundation, 00017 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 * 00019 * This code was originally developed as a Senior Thesis by Michael Cornwell 00020 * at the Concurrent Systems Laboratory (now part of the Storage Systems 00021 * Research Center), Jack Baskin School of Engineering, University of 00022 * California, Santa Cruz. http://ssrc.soe.ucsc.edu/ 00023 * 00024 */ 00025 00026 #ifndef OS_OPENBSD_H_ 00027 #define OS_OPENBSD_H_ 00028 00029 #define OS_OPENBSD_H_CVSID "$Id: os_openbsd.h 3728 2012-12-13 17:57:50Z chrfranke $\n" 00030 00031 /* from NetBSD: atareg.h,v 1.17, by Manuel Bouyer */ 00032 /* Actually fits _perfectly_ into OBSDs wdcreg.h, but... */ 00033 /* Subcommands for SMART (features register) */ 00034 #define WDSMART_CYL 0xc24f 00035 00036 #include <sys/device.h> 00037 #include <sys/param.h> 00038 #include <sys/sysctl.h> 00039 00040 #include <sys/scsiio.h> 00041 #include <sys/ataio.h> 00042 00043 #define ata_smart_selftestlog __openbsd_ata_smart_selftestlog 00044 #include <dev/ata/atareg.h> 00045 #if HAVE_DEV_ATA_ATAVAR_H 00046 #include <dev/ata/atavar.h> 00047 #endif 00048 #include <dev/ic/wdcreg.h> 00049 #undef ata_smart_selftestlog 00050 00051 #include <err.h> 00052 #include <fcntl.h> 00053 #include <util.h> 00054 #include <unistd.h> 00055 00056 #endif /* OS_OPENBSD_H_ */
1.7.4