2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2008,2009 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
/* $NetBSD: bootinfo.h,v 1.16 2009/08/24 02:15:46 jmcneill Exp $ */
23
* Matthias Drochner. All rights reserved.
25
* Redistribution and use in source and binary forms, with or without
26
* modification, are permitted provided that the following conditions
28
* 1. Redistributions of source code must retain the above copyright
29
* notice, this list of conditions and the following disclaimer.
30
* 2. Redistributions in binary form must reproduce the above copyright
31
* notice, this list of conditions and the following disclaimer in the
32
* documentation and/or other materials provided with the distribution.
34
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
35
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
37
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
38
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
39
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
40
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
41
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
43
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47
#ifndef GRUB_NETBSD_BOOTINFO_CPU_HEADER
48
#define GRUB_NETBSD_BOOTINFO_CPU_HEADER 1
50
#include <grub/types.h>
53
#define NETBSD_BTINFO_BOOTPATH 0
54
#define NETBSD_BTINFO_ROOTDEVICE 1
55
#define NETBSD_BTINFO_BOOTDISK 3
56
#define NETBSD_BTINFO_MEMMAP 9
58
struct grub_netbsd_btinfo_common
64
struct grub_netbsd_btinfo_mmap_header
66
struct grub_netbsd_btinfo_common common;
70
struct grub_netbsd_btinfo_mmap_entry
74
#define NETBSD_MMAP_AVAILABLE 1
75
#define NETBSD_MMAP_RESERVED 2
76
#define NETBSD_MMAP_ACPI 3
77
#define NETBSD_MMAP_NVS 4
81
struct grub_netbsd_btinfo_bootpath
83
struct grub_netbsd_btinfo_common common;
87
struct grub_netbsd_btinfo_rootdevice
89
struct grub_netbsd_btinfo_common common;
93
struct grub_netbsd_btinfo_bootdisk
95
struct grub_netbsd_btinfo_common common;
96
int labelsector; /* label valid if != -1 */
99
grub_uint16_t type, checksum;
106
struct grub_netbsd_bootinfo
108
grub_uint32_t bi_count;