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