Annotation of embedaddon/smartmontools/os_netbsd.h, revision 1.1.1.1
1.1 misho 1: /*
2: * os_netbsd.h
3: *
4: * Home page of code is: http://smartmontools.sourceforge.net
5: *
6: * Copyright (C) 2003-8 Sergey Svishchev <smartmontools-support@lists.sourceforge.net>
7: *
8: * This program is free software; you can redistribute it and/or modify
9: * it under the terms of the GNU General Public License as published by
10: * the Free Software Foundation; either version 2, or (at your option)
11: * any later version.
12: *
13: * You should have received a copy of the GNU General Public License
14: * (for example COPYING); if not, write to the Free
15: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16: *
17: * This code was originally developed as a Senior Thesis by Michael Cornwell
18: * at the Concurrent Systems Laboratory (now part of the Storage Systems
19: * Research Center), Jack Baskin School of Engineering, University of
20: * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
21: *
22: */
23:
24: #ifndef OS_NETBSD_H_
25: #define OS_NETBSD_H_
26:
27: #define OS_NETBSD_H_CVSID "$Id: os_netbsd.h,v 1.10 2008/03/04 22:09:47 ballen4705 Exp $\n"
28:
29: #include <sys/device.h>
30: #include <sys/param.h>
31: #include <sys/sysctl.h>
32:
33: #include <sys/scsiio.h>
34: #include <sys/ataio.h>
35:
36: #define ata_smart_selftestlog __netbsd_ata_smart_selftestlog
37: #include <dev/ata/atareg.h>
38: #if HAVE_DEV_ATA_ATAVAR_H
39: #include <dev/ata/atavar.h>
40: #endif
41: #include <dev/ic/wdcreg.h>
42: #undef ata_smart_selftestlog
43:
44: #include <err.h>
45: #include <fcntl.h>
46: #include <util.h>
47:
48: #ifndef WDSM_RD_THRESHOLDS /* pre-1.6.2 system */
49: #define WDSM_RD_THRESHOLDS 0xd1
50: #endif
51: #ifndef WDSMART_CYL
52: #define WDSMART_CYL 0xc24f
53: #endif
54:
55: #endif /* OS_NETBSD_H_ */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>