]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
E820: Add interface for accessing e820 table
authorGabriel L. Somlo <gsomlo@gmail.com>
Wed, 23 Apr 2014 13:42:36 +0000 (09:42 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 5 May 2014 10:29:39 +0000 (12:29 +0200)
commit7bf8ef196e80bedec3c48017e3105e46548e7a7b
tree9682f521872ccf46182ebc613c5bc0d44ff716a0
parent3458b2b075f92f163ccb9a1f24733eb5705947f0
E820: Add interface for accessing e820 table

Add the following two functions:

  - e820_get_num_entries() - query the size of the e820 table
  - e820_get_entry() - grab an entry matching a given set of criteria

This interface is currently necessary for creating type 19
(memory array mapped address) structures in smbios.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/i386/pc.c
include/hw/i386/pc.h