~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/firmware/hvmloader/e820.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __HVMLOADER_E820_H__
 
2
#define __HVMLOADER_E820_H__
 
3
 
 
4
#include <xen/hvm/e820.h>
 
5
 
 
6
/*
 
7
 * PC BIOS standard E820 types and structure.
 
8
 */
 
9
#define E820_RAM          1
 
10
#define E820_RESERVED     2
 
11
#define E820_ACPI         3
 
12
#define E820_NVS          4
 
13
 
 
14
struct e820entry {
 
15
    uint64_t addr;
 
16
    uint64_t size;
 
17
    uint32_t type;
 
18
} __attribute__((packed));
 
19
 
 
20
#define E820_NR ((uint16_t *)(E820_PHYSICAL_ADDRESS + E820_NR_OFFSET))
 
21
#define E820    ((struct e820entry *)(E820_PHYSICAL_ADDRESS + E820_OFFSET))
 
22
 
 
23
#endif /* __HVMLOADER_E820_H__ */