~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to include/grub/i386/netbsd_bootinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  GRUB  --  GRand Unified Bootloader
 
3
 *  Copyright (C) 2008,2009  Free Software Foundation, Inc.
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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/>.
 
17
 */
 
18
 
 
19
/*      $NetBSD: bootinfo.h,v 1.16 2009/08/24 02:15:46 jmcneill Exp $   */
 
20
 
 
21
/*
 
22
 * Copyright (c) 1997
 
23
 *      Matthias Drochner.  All rights reserved.
 
24
 *
 
25
 * Redistribution and use in source and binary forms, with or without
 
26
 * modification, are permitted provided that the following conditions
 
27
 * are met:
 
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.
 
33
 *
 
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.
 
44
 *
 
45
 */
 
46
 
 
47
#ifndef GRUB_NETBSD_BOOTINFO_CPU_HEADER
 
48
#define GRUB_NETBSD_BOOTINFO_CPU_HEADER 1
 
49
 
 
50
#include <grub/types.h>
 
51
 
 
52
 
 
53
#define NETBSD_BTINFO_BOOTPATH          0
 
54
#define NETBSD_BTINFO_ROOTDEVICE        1
 
55
#define NETBSD_BTINFO_BOOTDISK          3
 
56
#define NETBSD_BTINFO_MEMMAP            9
 
57
 
 
58
struct grub_netbsd_btinfo_common
 
59
{
 
60
  int len;
 
61
  int type;
 
62
};
 
63
 
 
64
struct grub_netbsd_btinfo_mmap_header
 
65
{
 
66
  struct grub_netbsd_btinfo_common common;
 
67
  grub_uint32_t count;
 
68
};
 
69
 
 
70
struct grub_netbsd_btinfo_mmap_entry
 
71
{
 
72
  grub_uint64_t addr;
 
73
  grub_uint64_t len;
 
74
#define NETBSD_MMAP_AVAILABLE   1
 
75
#define NETBSD_MMAP_RESERVED    2
 
76
#define NETBSD_MMAP_ACPI        3
 
77
#define NETBSD_MMAP_NVS         4
 
78
  grub_uint32_t type;
 
79
};
 
80
 
 
81
struct grub_netbsd_btinfo_bootpath
 
82
{
 
83
  struct grub_netbsd_btinfo_common common;
 
84
  char bootpath[80];
 
85
};
 
86
 
 
87
struct grub_netbsd_btinfo_rootdevice
 
88
{
 
89
  struct grub_netbsd_btinfo_common common;
 
90
  char devname[16];
 
91
};
 
92
 
 
93
struct grub_netbsd_btinfo_bootdisk
 
94
{
 
95
  struct grub_netbsd_btinfo_common common;
 
96
  int labelsector;  /* label valid if != -1 */
 
97
  struct
 
98
    {
 
99
      grub_uint16_t type, checksum;
 
100
      char packname[16];
 
101
    } label;
 
102
  int biosdev;
 
103
  int partition;
 
104
};
 
105
 
 
106
struct grub_netbsd_bootinfo
 
107
{
 
108
  grub_uint32_t bi_count;
 
109
  void *bi_data[1];
 
110
};
 
111
 
 
112
#endif