|
|
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: Copyright 1988, 1989 by Intel Corporation, Santa Clara, California.
28:
29: All Rights Reserved
30:
31: Permission to use, copy, modify, and distribute this software and
32: its documentation for any purpose and without fee is hereby
33: granted, provided that the above copyright notice appears in all
34: copies and that both the copyright notice and this permission notice
35: appear in supporting documentation, and that the name of Intel
36: not be used in advertising or publicity pertaining to distribution
37: of the software without specific, written prior permission.
38:
39: INTEL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
40: INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
41: IN NO EVENT SHALL INTEL BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
42: CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43: LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
44: NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
45: WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
46: */
47:
48: /*
49: * disk.h
50: */
51:
1.1.1.2 root 52: #ifndef _DISK_H_
53: #define _DISK_H_
54:
1.1 root 55: #define V_NUMPAR 16 /* maximum number of partitions */
56:
57: #define VTOC_SANE 0x600DDEEE /* Indicates a sane VTOC */
58: #define PDLOCATION 29 /* location of VTOC */
59:
60: #define LBLLOC 1 /* label block for xxxbsd */
61:
62: struct localpartition {
63: u_int p_flag; /*permision flags*/
64: long p_start; /*physical start sector no of partition*/
65: long p_size; /*# of physical sectors in partition*/
66: };
67: typedef struct localpartition localpartition_t;
68:
69: struct evtoc {
70: u_int fill0[6];
71: u_int cyls; /*number of cylinders per drive*/
72: u_int tracks; /*number tracks per cylinder*/
73: u_int sectors; /*number sectors per track*/
74: u_int fill1[13];
75: u_int version; /*layout version*/
76: u_int alt_ptr; /*byte offset of alternates table*/
77: u_short alt_len; /*byte length of alternates table*/
78: u_int sanity; /*to verify vtoc sanity*/
79: u_int xcyls; /*number of cylinders per drive*/
80: u_int xtracks; /*number tracks per cylinder*/
81: u_int xsectors; /*number sectors per track*/
82: u_short nparts; /*number of partitions*/
83: u_short fill2; /*pad for 286 compiler*/
84: char label[40];
85: struct localpartition part[V_NUMPAR];/*partition headers*/
86: char fill[512-352];
87: };
88:
1.1.1.2 root 89: #endif /* _DISK_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.