File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / smartmontools / os_openbsd.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:17:35 2013 UTC (10 years, 10 months ago) by misho
Branches: smartmontools, elwix, MAIN
CVS tags: v6_2, v6_1p0, v6_1, HEAD
6.1

    1: /*
    2:  * os_openbsd.h
    3:  *
    4:  * Home page of code is: http://smartmontools.sourceforge.net
    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,v 1.1.1.2 2013/07/22 01:17:35 misho Exp $\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_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>