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/device/param.h

Version: -  FREEBSD  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1991,1990 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  Software.Distribution@CS.CMU.EDU
   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  * HISTORY
   28  * $Log:        param.h,v $
   29  * Revision 2.6  91/05/14  16:00:44  mrt
   30  *      Correcting copyright
   31  * 
   32  * Revision 2.5  91/02/05  17:10:13  mrt
   33  *      Changed to new Mach copyright
   34  *      [91/01/31  17:30:33  mrt]
   35  * 
   36  * Revision 2.4  90/12/05  23:27:45  af
   37  * 
   38  * 
   39  * Revision 2.3  90/12/05  20:42:08  af
   40  *      Fixed missing parenthesis.
   41  *      [90/11/29            af]
   42  * 
   43  * Revision 2.2  90/08/27  21:55:37  dbg
   44  *      Re-wrote from scratch.
   45  *      [90/07/16            dbg]
   46  * 
   47  */
   48 /*
   49  *      Author: David B. Golub, Carnegie Mellon University
   50  *      Date:   7/90
   51  */
   52 
   53 #ifndef _DEVICE_PARAM_H_
   54 #define _DEVICE_PARAM_H_
   55 
   56 /*
   57  * Compatibility definitions for disk IO.
   58  */
   59 
   60 /*
   61  * Disk devices do all IO in 512-byte blocks.
   62  */
   63 #define DEV_BSIZE       512
   64 
   65 /*
   66  * Conversion between bytes and disk blocks.
   67  */
   68 #define btodb(byte_offset)      ((byte_offset) >> 9)
   69 #define dbtob(block_number)     ((block_number) << 9)
   70 
   71 #endif  /* _DEVICE_PARAM_H_ */

Cache object: a3bb2e4009a9e01225827c4c81eccbb4


[ 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.