The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/linux/common/linux_hdio.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: linux_hdio.h,v 1.1 2000/12/10 14:12:17 fvdl Exp $      */
    2 
    3 /*
    4  * Copyright (c) 2000 Wasabi Systems, Inc.
    5  * All rights reserved.
    6  *
    7  * Written by Frank van der Linden for Wasabi Systems, Inc.
    8  *
    9  * Redistribution and use in source and binary forms, with or without
   10  * modification, are permitted provided that the following conditions
   11  * are met:
   12  * 1. Redistributions of source code must retain the above copyright
   13  *    notice, this list of conditions and the following disclaimer.
   14  * 2. Redistributions in binary form must reproduce the above copyright
   15  *    notice, this list of conditions and the following disclaimer in the
   16  *    documentation and/or other materials provided with the distribution.
   17  * 3. All advertising materials mentioning features or use of this software
   18  *    must display the following acknowledgement:
   19  *      This product includes software developed for the NetBSD Project by
   20  *      Wasabi Systems, Inc.
   21  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
   22  *    or promote products derived from this software without specific prior
   23  *    written permission.
   24  *
   25  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
   26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   27  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   28  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
   29  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   30  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   32  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   33  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   34  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   35  * POSSIBILITY OF SUCH DAMAGE.
   36  */
   37 
   38 #ifndef _LINUX_HDIO_H
   39 #define _LINUX_HDIO_H
   40 
   41 /*
   42  * Linux 'hd' (mostly really IDE disk) ioctl calls.
   43  */
   44 
   45 #define LINUX_HDIO_GETGEO               0x0301
   46 #define LINUX_HDIO_GETGEO_BIG           0x0330
   47 #define LINUX_HDIO_GETGEO_BIG_RAW       0x0331
   48 #define LINUX_HDIO_GET_UNMASKINTR       0x0302
   49 #define LINUX_HDIO_GET_MULTCOUNT        0x0304
   50 #define LINUX_HDIO_OBSOLETE_IDENTITY    0x0307
   51 #define LINUX_HDIO_GET_KEEPSETTINGS     0x0308
   52 #define LINUX_HDIO_GET_32BIT            0x0309
   53 #define LINUX_HDIO_GET_NOWERR           0x030a
   54 #define LINUX_HDIO_GET_DMA              0x030b
   55 #define LINUX_HDIO_GET_NICE             0x030c
   56 #define LINUX_HDIO_GET_IDENTITY         0x030d
   57 
   58 #define LINUX_HDIO_DRIVE_RESET          0x031c
   59 #define LINUX_HDIO_TRISTATE_HWIF        0x031d
   60 #define LINUX_HDIO_DRIVE_TASK           0x031e
   61 #define LINUX_HDIO_DRIVE_CMD            0x031f
   62 
   63 #define LINUX_HDIO_SET_MULTCOUNT        0x0321
   64 #define LINUX_HDIO_SET_UNMASKINTR       0x0322
   65 #define LINUX_HDIO_SET_KEEPSETTINGS     0x0323
   66 #define LINUX_HDIO_SET_32BIT            0x0324
   67 #define LINUX_HDIO_SET_NOWERR           0x0325
   68 #define LINUX_HDIO_SET_DMA              0x0326
   69 #define LINUX_HDIO_SET_PIO_MODE         0x0327
   70 #define LINUX_HDIO_SCAN_HWIF            0x0328
   71 #define LINUX_HDIO_SET_NICE             0x0329
   72 #define LINUX_HDIO_UNREGISTER_HWIF      0x032a
   73 
   74 struct linux_hd_geometry {
   75         u_char heads;
   76         u_char sectors;
   77         u_short cylinders;
   78         u_long start;
   79 };
   80 
   81 struct linux_hd_big_geometry {
   82         u_char heads;
   83         u_char sectors;
   84         u_int cylinders;
   85         u_long start;
   86 };
   87 
   88 #endif /* _LINUX_HDIO_H */

Cache object: ec02d5c40e7956e0da67dbe3124ac305


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.