Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / boot / alpha / libalpha / bbinfo.h
1 /* 
2  * $FreeBSD: src/sys/boot/alpha/libalpha/bbinfo.h,v 1.2 1999/08/28 00:39:26 peter Exp $
3  * From $NetBSD: bbinfo.h,v 1.2 1997/04/06 08:40:57 cgd Exp $ 
4  */
5
6 /*
7  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
8  * All rights reserved.
9  *
10  * Author: Chris G. Demetriou
11  *
12  * Permission to use, copy, modify and distribute this software and
13  * its documentation is hereby granted, provided that both the copyright
14  * notice and this permission notice appear in all copies of the
15  * software, derivative works or modified versions, and any portions
16  * thereof, and that both notices appear in supporting documentation.
17  *
18  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
19  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
20  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
21  *
22  * Carnegie Mellon requests users of this software to return to
23  *
24  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
25  *  School of Computer Science
26  *  Carnegie Mellon University
27  *  Pittsburgh PA 15213-3890
28  *
29  * any improvements or extensions that they make and grant Carnegie the
30  * rights to redistribute these changes.
31  */
32
33 struct bbinfoloc {
34         u_int64_t       magic1;
35         u_int64_t       start;
36         u_int64_t       end;
37         u_int64_t       pad1[4];
38         u_int64_t       magic2;
39 };
40
41 struct bbinfo {
42         int32_t         cksum;
43         int32_t         nblocks;
44         int32_t         bsize;
45         u_int32_t       pad1[8];
46         int32_t         blocks[1];
47 };
48
49 struct netbbinfo {
50         u_int64_t       magic1;
51         u_int8_t        set;
52         u_int8_t        ether_addr[6];
53         u_int8_t        force;
54         u_int64_t       pad1[4];
55         u_int64_t       cksum;
56         u_int64_t       magic2;
57 };