Annotation of Gnu-Mach/device/buf.h, revision 1.1

1.1     ! root        1: /* 
        !             2:  * Mach Operating System
        !             3:  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
        !             4:  * All Rights Reserved.
        !             5:  * 
        !             6:  * Permission to use, copy, modify and distribute this software and its
        !             7:  * documentation is hereby granted, provided that both the copyright
        !             8:  * notice and this permission notice appear in all copies of the
        !             9:  * software, derivative works or modified versions, and any portions
        !            10:  * thereof, and that both notices appear in supporting documentation.
        !            11:  * 
        !            12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
        !            13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
        !            14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
        !            15:  * 
        !            16:  * Carnegie Mellon requests users of this software to return to
        !            17:  * 
        !            18:  *  Software Distribution Coordinator  or  [email protected]
        !            19:  *  School of Computer Science
        !            20:  *  Carnegie Mellon University
        !            21:  *  Pittsburgh PA 15213-3890
        !            22:  * 
        !            23:  * any improvements or extensions that they make and grant Carnegie Mellon
        !            24:  * the rights to redistribute these changes.
        !            25:  */
        !            26: /*
        !            27:  *     Author: David B. Golub, Carnegie Mellon University
        !            28:  *     Date:   3/90
        !            29:  *
        !            30:  *     Definitions to make new IO structures look like old ones
        !            31:  */
        !            32: 
        !            33: /*
        !            34:  * io_req and fields
        !            35:  */
        !            36: #include <device/io_req.h>
        !            37: 
        !            38: #define        buf     io_req
        !            39: 
        !            40: /*
        !            41:  * Redefine fields for drivers using old names
        !            42:  */
        !            43: #define        b_flags         io_op
        !            44: #define        b_bcount        io_count
        !            45: #define        b_error         io_error
        !            46: #define        b_dev           io_unit
        !            47: #define        b_blkno         io_recnum
        !            48: #define        b_resid         io_residual
        !            49: #define        b_un            io_un
        !            50: #define        b_addr          data
        !            51: #define        av_forw         io_next
        !            52: #define        av_back         io_prev
        !            53: #define b_physblock     io_physrec
        !            54: #define b_blocktotal    io_rectotal
        !            55: 
        !            56: /*
        !            57:  * Redefine fields for driver request list heads, using old names.
        !            58:  */
        !            59: #define        b_actf          io_next
        !            60: #define        b_actl          io_prev
        !            61: #define        b_forw          io_link
        !            62: #define        b_back          io_rlink
        !            63: #define        b_active        io_count
        !            64: #define        b_errcnt        io_residual
        !            65: #define        b_bufsize       io_alloc_size
        !            66: 
        !            67: /*
        !            68:  * Redefine flags
        !            69:  */
        !            70: #define        B_WRITE         IO_WRITE
        !            71: #define        B_READ          IO_READ
        !            72: #define        B_OPEN          IO_OPEN
        !            73: #define        B_DONE          IO_DONE
        !            74: #define        B_ERROR         IO_ERROR
        !            75: #define        B_BUSY          IO_BUSY
        !            76: #define        B_WANTED        IO_WANTED
        !            77: #define        B_BAD           IO_BAD
        !            78: #define        B_CALL          IO_CALL
        !            79: 
        !            80: #define        B_MD1           IO_SPARE_START
        !            81: 
        !            82: /*
        !            83:  * Redefine uio structure
        !            84:  */
        !            85: #define        uio     io_req
        !            86: 
        !            87: /*
        !            88:  * Redefine physio routine
        !            89:  */
        !            90: #define        physio(strat, xbuf, dev, ops, minphys, ior) \
        !            91:                block_io(strat, minphys, ior)
        !            92: 
        !            93: /*
        !            94:  * Export standard minphys routine.
        !            95:  */
        !            96: extern minphys();
        !            97: 
        !            98: /*
        !            99:  * Alternate name for iodone
        !           100:  */
        !           101: #define        biodone iodone
        !           102: #define biowait iowait

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.