summaryrefslogtreecommitdiff
path: root/include/asm-x86/e820.h
diff options
context:
space:
mode:
authorAlok Kataria <akataria@vmware.com>2008-06-24 11:48:30 -0700
committerIngo Molnar <mingo@elte.hu>2008-07-08 13:10:39 +0200
commit3381959da5a00ae8289cfbd28b0b6d228f2d1d46 (patch)
tree6383c6b4cc564f84a07e84fd30622aa661d03c79 /include/asm-x86/e820.h
parentc987d12f8455b19b3b057d63bac3de161bd809fc (diff)
x86: cleanup e820_setup_gap(), add e820_search_gap(), v2
This is a preparatory patch for the next patch in series. Moves some code from e820_setup_gap to a new function e820_search_gap. This patch is a part of a bug fix where we walk the ACPI table to calculate a gap for PCI optional devices. v1->v2: Patch on top of tip/master. Fixes a bug introduced in the last patch about the typeof "last". Also the new function e820_search_gap now returns if we found a gap in e820_map. Signed-off-by: Alok N Kataria <akataria@vmware.com> Cc: lenb@kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/e820.h')
-rw-r--r--include/asm-x86/e820.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/e820.h b/include/asm-x86/e820.h
index 13fa5a076aa2..f622685c9af8 100644
--- a/include/asm-x86/e820.h
+++ b/include/asm-x86/e820.h
@@ -71,6 +71,8 @@ extern u64 e820_remove_range(u64 start, u64 size, unsigned old_type,
int checktype);
extern void update_e820(void);
extern void e820_setup_gap(void);
+extern int e820_search_gap(unsigned long *gapstart, unsigned long *gapsize,
+ unsigned long start_addr);
struct setup_data;
extern void parse_e820_ext(struct setup_data *data, unsigned long pa_data);