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

« back to all changes in this revision

Viewing changes to include/grub/i386/coreboot/memory.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:
21
21
#define _GRUB_MEMORY_MACHINE_LB_HEADER      1
22
22
 
23
23
#include <grub/symbol.h>
24
 
#include <grub/i386/pc/memory.h>
25
24
 
26
25
#ifndef ASM_FILE
27
26
#include <grub/err.h>
28
27
#include <grub/types.h>
 
28
#include <grub/memory.h>
29
29
#endif
30
30
 
31
31
#define GRUB_MEMORY_MACHINE_LOWER_USABLE                0x9fc00         /* 640 kiB - 1 kiB */
35
35
 
36
36
#ifndef ASM_FILE
37
37
 
38
 
struct grub_linuxbios_table_header
39
 
{
40
 
  char signature[4];
41
 
  grub_uint32_t size;
42
 
};
43
 
typedef struct grub_linuxbios_table_header *grub_linuxbios_table_header_t;
44
 
 
45
 
struct grub_linuxbios_table_item
46
 
{
47
 
#define GRUB_LINUXBIOS_MEMBER_UNUSED            0
48
 
#define GRUB_LINUXBIOS_MEMBER_MEMORY            1
49
 
  grub_uint32_t tag;
50
 
  grub_uint32_t size;
51
 
};
52
 
typedef struct grub_linuxbios_table_item *grub_linuxbios_table_item_t;
53
 
 
54
 
struct grub_linuxbios_mem_region
55
 
{
56
 
  grub_uint64_t addr;
57
 
  grub_uint64_t size;
58
 
#define GRUB_MACHINE_MEMORY_AVAILABLE           1
59
 
  grub_uint32_t type;
60
 
};
61
 
typedef struct grub_linuxbios_mem_region *mem_region_t;
62
 
 
63
38
void grub_machine_mmap_init (void);
64
39
 
65
 
grub_err_t EXPORT_FUNC(grub_machine_mmap_iterate)
66
 
     (int NESTED_FUNC_ATTR (*hook) (grub_uint64_t, grub_uint64_t, grub_uint32_t));
 
40
static inline grub_err_t
 
41
grub_machine_mmap_register (grub_uint64_t start __attribute__ ((unused)),
 
42
                            grub_uint64_t size __attribute__ ((unused)),
 
43
                            int type __attribute__ ((unused)),
 
44
                            int handle __attribute__ ((unused)))
 
45
{
 
46
  return GRUB_ERR_NONE;
 
47
}
 
48
static inline grub_err_t
 
49
grub_machine_mmap_unregister (int handle  __attribute__ ((unused)))
 
50
{
 
51
  return GRUB_ERR_NONE;
 
52
}
67
53
 
68
54
#endif
69
55