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

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: 
1.1.1.3 ! root       33: #ifndef _DEVICE_BUF_H_
        !            34: #define _DEVICE_BUF_H_
        !            35: 
1.1       root       36: /*
                     37:  * io_req and fields
                     38:  */
                     39: #include <device/io_req.h>
                     40: 
                     41: #define        buf     io_req
                     42: 
                     43: /*
                     44:  * Redefine fields for drivers using old names
                     45:  */
                     46: #define        b_flags         io_op
                     47: #define        b_bcount        io_count
                     48: #define        b_error         io_error
                     49: #define        b_dev           io_unit
                     50: #define        b_blkno         io_recnum
                     51: #define        b_resid         io_residual
                     52: #define        b_un            io_un
                     53: #define        b_addr          data
                     54: #define        av_forw         io_next
                     55: #define        av_back         io_prev
                     56: #define b_physblock     io_physrec
                     57: #define b_blocktotal    io_rectotal
                     58: 
                     59: /*
                     60:  * Redefine fields for driver request list heads, using old names.
                     61:  */
                     62: #define        b_actf          io_next
                     63: #define        b_actl          io_prev
                     64: #define        b_forw          io_link
                     65: #define        b_back          io_rlink
                     66: #define        b_active        io_count
                     67: #define        b_errcnt        io_residual
                     68: #define        b_bufsize       io_alloc_size
                     69: 
                     70: /*
                     71:  * Redefine flags
                     72:  */
                     73: #define        B_WRITE         IO_WRITE
                     74: #define        B_READ          IO_READ
                     75: #define        B_OPEN          IO_OPEN
                     76: #define        B_DONE          IO_DONE
                     77: #define        B_ERROR         IO_ERROR
                     78: #define        B_BUSY          IO_BUSY
                     79: #define        B_WANTED        IO_WANTED
                     80: #define        B_BAD           IO_BAD
                     81: #define        B_CALL          IO_CALL
                     82: 
                     83: #define        B_MD1           IO_SPARE_START
                     84: 
                     85: /*
                     86:  * Redefine physio routine
                     87:  */
                     88: #define        physio(strat, xbuf, dev, ops, minphys, ior) \
                     89:                block_io(strat, minphys, ior)
                     90: 
                     91: /*
                     92:  * Export standard minphys routine.
                     93:  */
1.1.1.2   root       94: extern void minphys(io_req_t);
1.1       root       95: 
                     96: /*
                     97:  * Alternate name for iodone
                     98:  */
                     99: #define        biodone iodone
                    100: #define biowait iowait
1.1.1.3 ! root      101: 
        !           102: #endif /* _DEVICE_BUF_H_ */

unix.superglobalmegacorp.com

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