Skip to content
Snippets Groups Projects
Select Git revision
  • d0579b172c1517f17262871027b6b57e90ffd691
  • master default
  • trunk
  • RELEASE_6_5_DRIVEDB
  • RELEASE_6_6_DRIVEDB
  • RELEASE_7_0_DRIVEDB
  • RELEASE_7_2_DRIVEDB
  • RELEASE_7_3_DRIVEDB
  • RELEASE_6_0_DRIVEDB
  • RELEASE_6_1_DRIVEDB
  • RELEASE_6_2_DRIVEDB
  • RELEASE_6_3_DRIVEDB
  • RELEASE_6_4_DRIVEDB
  • tags/RELEASE_7_4
  • tags/RELEASE_7_3
  • RELEASE_5_41_DRIVEDB
  • RELEASE_5_42_DRIVEDB
  • RELEASE_5_43_DRIVEDB
  • tags/RELEASE_7_2
  • tags/RELEASE_7_1
  • tags/RELEASE_7_0
  • RELEASE_5_40_DRIVEDB
22 results

os_openbsd.h

Blame
  • os_openbsd.h 1.73 KiB
    /*
     * os_openbsd.h
     *
     * Home page of code is: http://smartmontools.sourceforge.net
     *
     * Copyright (C) 2004-6 David Snyder <smartmontools-support@lists.sourceforge.net>
     *
     * Derived from os_netbsd.c by Sergey Svishchev <smartmontools-support@lists.sourceforge.net>, Copyright (C) 2003-6 
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 2, or (at your option)
     * any later version.
     *
     * You should have received a copy of the GNU General Public License
     * (for example COPYING); if not, write to the Free
     * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     *
     * This code was originally developed as a Senior Thesis by Michael Cornwell
     * at the Concurrent Systems Laboratory (now part of the Storage Systems
     * Research Center), Jack Baskin School of Engineering, University of
     * California, Santa Cruz. http://ssrc.soe.ucsc.edu/
     *
     */
    
    #ifndef OS_OPENBSD_H_
    #define OS_OPENBSD_H_
    
    #define OS_OPENBSD_H_CVSID "$Id: os_openbsd.h,v 1.5 2006/09/19 07:22:09 snyderx Exp $\n"
    
    /* from NetBSD: atareg.h,v 1.17, by Manuel Bouyer */
    /* Actually fits _perfectly_ into OBSDs wdcreg.h, but... */
    /* Subcommands for SMART (features register) */
    #define WDSMART_CYL             0xc24f
    
    #include <sys/device.h>
    #include <sys/param.h>
    #include <sys/sysctl.h>
    
    #include <sys/scsiio.h>
    #include <sys/ataio.h>
    
    #define ata_smart_selftestlog __openbsd_ata_smart_selftestlog
    #include <dev/ata/atareg.h>
    #if HAVE_DEV_ATA_ATAVAR_H
    #include <dev/ata/atavar.h>
    #endif
    #include <dev/ic/wdcreg.h>
    #undef ata_smart_selftestlog
    
    #include <err.h>
    #include <fcntl.h>
    #include <util.h>
    #include <unistd.h>
    
    #endif /* OS_OPENBSD_H_ */