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

« back to all changes in this revision

Viewing changes to include/grub/i386/pc/vbe.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:
19
19
#ifndef GRUB_VBE_MACHINE_HEADER
20
20
#define GRUB_VBE_MACHINE_HEADER 1
21
21
 
22
 
#include <grub/video_fb.h>
23
 
 
24
22
/* Default video mode to be used.  */
25
23
#define GRUB_VBE_DEFAULT_VIDEO_MODE     0x101
26
24
 
171
169
  grub_uint8_t alignment;
172
170
} __attribute__ ((packed));
173
171
 
174
 
/* Prototypes for kernel real mode thunks.  */
175
 
 
 
172
/* Prototypes for helper functions.  */
176
173
/* Call VESA BIOS 0x4f00 to get VBE Controller Information, return status.  */
177
 
grub_vbe_status_t grub_vbe_bios_get_controller_info (struct grub_vbe_info_block *controller_info);
178
 
 
 
174
grub_vbe_status_t 
 
175
grub_vbe_bios_get_controller_info (struct grub_vbe_info_block *controller_info);
179
176
/* Call VESA BIOS 0x4f01 to get VBE Mode Information, return status.  */
180
 
grub_vbe_status_t grub_vbe_bios_get_mode_info (grub_uint32_t mode,
181
 
                                               struct grub_vbe_mode_info_block *mode_info);
182
 
 
183
 
grub_vbe_status_t grub_vbe_bios_getset_dac_palette_width (int set, int *width);
184
 
 
185
 
#define grub_vbe_bios_get_dac_palette_width(width)      grub_vbe_bios_getset_dac_palette_width(0, (width))
186
 
#define grub_vbe_bios_set_dac_palette_width(width)      grub_vbe_bios_getset_dac_palette_width(1, (width))
187
 
 
188
 
/* Call VESA BIOS 0x4f02 to set video mode, return status.  */
189
 
grub_vbe_status_t grub_vbe_bios_set_mode (grub_uint32_t mode,
190
 
                                          struct grub_vbe_crtc_info_block *crtc_info);
191
 
 
 
177
grub_vbe_status_t 
 
178
grub_vbe_bios_get_mode_info (grub_uint32_t mode,
 
179
                             struct grub_vbe_mode_info_block *mode_info);
192
180
/* Call VESA BIOS 0x4f03 to return current VBE Mode, return status.  */
193
 
grub_vbe_status_t grub_vbe_bios_get_mode (grub_uint32_t *mode);
194
 
 
 
181
grub_vbe_status_t 
 
182
grub_vbe_bios_get_mode (grub_uint32_t *mode);
195
183
/* Call VESA BIOS 0x4f05 to set memory window, return status.  */
196
 
grub_vbe_status_t grub_vbe_bios_set_memory_window (grub_uint32_t window,
197
 
                                                   grub_uint32_t position);
198
 
 
 
184
grub_vbe_status_t
 
185
grub_vbe_bios_set_memory_window (grub_uint32_t window, grub_uint32_t position);
199
186
/* Call VESA BIOS 0x4f05 to return memory window, return status.  */
200
 
grub_vbe_status_t grub_vbe_bios_get_memory_window (grub_uint32_t window,
201
 
                                                   grub_uint32_t *position);
202
 
 
 
187
grub_vbe_status_t
 
188
grub_vbe_bios_get_memory_window (grub_uint32_t window,
 
189
                                 grub_uint32_t *position);
203
190
/* Call VESA BIOS 0x4f06 to set scanline length (in bytes), return status.  */
204
 
grub_vbe_status_t grub_vbe_bios_set_scanline_length (grub_uint32_t length);
205
 
 
 
191
grub_vbe_status_t 
 
192
grub_vbe_bios_set_scanline_length (grub_uint32_t length);
206
193
/* Call VESA BIOS 0x4f06 to return scanline length (in bytes), return status.  */
207
 
grub_vbe_status_t grub_vbe_bios_get_scanline_length (grub_uint32_t *length);
208
 
 
209
 
/* Call VESA BIOS 0x4f07 to set display start, return status.  */
210
 
grub_vbe_status_t grub_vbe_bios_set_display_start (grub_uint32_t x,
211
 
                                                   grub_uint32_t y);
212
 
 
 
194
grub_vbe_status_t 
 
195
grub_vbe_bios_get_scanline_length (grub_uint32_t *length);
213
196
/* Call VESA BIOS 0x4f07 to get display start, return status.  */
214
 
grub_vbe_status_t grub_vbe_bios_get_display_start (grub_uint32_t *x,
215
 
                                                   grub_uint32_t *y);
216
 
 
217
 
/* Call VESA BIOS 0x4f09 to set palette data, return status.  */
218
 
grub_vbe_status_t grub_vbe_bios_set_palette_data (grub_uint32_t color_count,
219
 
                                                  grub_uint32_t start_index,
220
 
                                                  struct grub_vbe_palette_data *palette_data);
221
 
 
222
 
/* Prototypes for helper functions.  */
 
197
grub_vbe_status_t 
 
198
grub_vbe_bios_get_display_start (grub_uint32_t *x,
 
199
                                 grub_uint32_t *y);
 
200
 
 
201
grub_vbe_status_t grub_vbe_bios_getset_dac_palette_width (int set, int *width);
 
202
 
 
203
#define grub_vbe_bios_get_dac_palette_width(width)      grub_vbe_bios_getset_dac_palette_width(0, (width))
 
204
#define grub_vbe_bios_set_dac_palette_width(width)      grub_vbe_bios_getset_dac_palette_width(1, (width))
223
205
 
224
206
grub_err_t grub_vbe_probe (struct grub_vbe_info_block *info_block);
225
207
grub_err_t grub_vbe_set_video_mode (grub_uint32_t mode,
227
209
grub_err_t grub_vbe_get_video_mode (grub_uint32_t *mode);
228
210
grub_err_t grub_vbe_get_video_mode_info (grub_uint32_t mode,
229
211
                                         struct grub_vbe_mode_info_block *mode_info);
 
212
grub_vbe_status_t 
 
213
grub_vbe_bios_get_pm_interface (grub_uint16_t *seg, grub_uint16_t *offset,
 
214
                                grub_uint16_t *length);
230
215
 
231
216
 
232
217
#endif /* ! GRUB_VBE_MACHINE_HEADER */