FreeBSD/Linux Kernel Cross Reference
sys/device/param.h
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
|