~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
#include <grub/types.h>
51
51
 
52
 
 
53
52
#define NETBSD_BTINFO_BOOTPATH          0
54
53
#define NETBSD_BTINFO_ROOTDEVICE        1
55
 
#define NETBSD_BTINFO_BOOTDISK          3
 
54
#define NETBSD_BTINFO_CONSOLE           6
 
55
#define NETBSD_BTINFO_SYMTAB            8
56
56
#define NETBSD_BTINFO_MEMMAP            9
 
57
#define NETBSD_BTINFO_MODULES           11
 
58
#define NETBSD_BTINFO_FRAMEBUF          12
 
59
 
 
60
struct grub_netbsd_bootinfo
 
61
{
 
62
  grub_uint32_t bi_count;
 
63
  grub_uint32_t bi_data[0];
 
64
};
57
65
 
58
66
struct grub_netbsd_btinfo_common
59
67
{
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
 
68
  grub_uint32_t len;
78
69
  grub_uint32_t type;
79
70
};
80
71
 
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
 
};
 
72
#define GRUB_NETBSD_MAX_BOOTPATH_LEN 80
92
73
 
93
74
struct grub_netbsd_btinfo_bootdisk
94
75
{
95
 
  struct grub_netbsd_btinfo_common common;
96
 
  int labelsector;  /* label valid if != -1 */
 
76
  grub_uint32_t labelsector;  /* label valid if != 0xffffffff */
97
77
  struct
98
78
    {
99
79
      grub_uint16_t type, checksum;
100
80
      char packname[16];
101
81
    } 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
 
};
 
82
  grub_uint32_t biosdev;
 
83
  grub_uint32_t partition;
 
84
};
 
85
 
 
86
struct grub_netbsd_btinfo_symtab
 
87
{
 
88
  grub_uint32_t nsyms;
 
89
  grub_uint32_t ssyms;
 
90
  grub_uint32_t esyms;
 
91
};
 
92
 
 
93
 
 
94
struct grub_netbsd_btinfo_serial
 
95
{
 
96
  char devname[16];
 
97
  grub_uint32_t addr;
 
98
  grub_uint32_t speed;
 
99
};
 
100
 
 
101
struct grub_netbsd_btinfo_modules
 
102
{
 
103
  grub_uint32_t num;
 
104
  grub_uint32_t last_addr;
 
105
  struct grub_netbsd_btinfo_module
 
106
  {
 
107
    char name[80];
 
108
#define GRUB_NETBSD_MODULE_RAW 0
 
109
#define GRUB_NETBSD_MODULE_ELF 1
 
110
    grub_uint32_t type;
 
111
    grub_uint32_t size;
 
112
    grub_uint32_t addr;
 
113
  } mods[0];
 
114
};
 
115
 
 
116
struct grub_netbsd_btinfo_framebuf
 
117
{
 
118
  grub_uint64_t fbaddr;
 
119
  grub_uint32_t flags;
 
120
  grub_uint32_t width;
 
121
  grub_uint32_t height;
 
122
  grub_uint16_t pitch;
 
123
  grub_uint8_t bpp;
 
124
 
 
125
  grub_uint8_t red_mask_size;
 
126
  grub_uint8_t green_mask_size;
 
127
  grub_uint8_t blue_mask_size;
 
128
 
 
129
  grub_uint8_t red_field_pos;
 
130
  grub_uint8_t green_field_pos;
 
131
  grub_uint8_t blue_field_pos;
 
132
 
 
133
  grub_uint8_t reserved[16];
 
134
};
 
135
 
 
136
#define GRUB_NETBSD_MAX_ROOTDEVICE_LEN 16
111
137
 
112
138
#endif