summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorPiotr Jaroszyński2010-07-27 20:37:55 +0200
committerMichael Brown2010-08-16 17:54:03 +0200
commit5bbad9c8f0eacf92fa0ddb6d2d34afe7a0d4278e (patch)
tree6994da16fdddf65f13409b184fdbba7d3907ff80 /src/interface
parent[dhcp] Allow multiple interfaces in dhcp command (diff)
downloadipxe-5bbad9c8f0eacf92fa0ddb6d2d34afe7a0d4278e.tar.gz
ipxe-5bbad9c8f0eacf92fa0ddb6d2d34afe7a0d4278e.tar.xz
ipxe-5bbad9c8f0eacf92fa0ddb6d2d34afe7a0d4278e.zip
[ioapi] Move get_memmap() to the I/O API group
pcbios specific get_memmap() is used by the b44 driver making all-drivers builds fail on other platforms. Move it to the I/O API group and provide a dummy implementation on EFI. Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_io.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/interface/efi/efi_io.c b/src/interface/efi/efi_io.c
index 13a3e2322..9a9aad31c 100644
--- a/src/interface/efi/efi_io.c
+++ b/src/interface/efi/efi_io.c
@@ -176,6 +176,17 @@ static void efi_iodelay ( void ) {
outb ( 0, 0x80 );
}
+/**
+ * Get memory map
+ *
+ * Can't be done on EFI so return an empty map
+ *
+ * @v memmap Memory map to fill in
+ */
+static void efi_get_memmap ( struct memory_map *memmap ) {
+ memmap->count = 0;
+}
+
PROVIDE_IOAPI_INLINE ( efi, phys_to_bus );
PROVIDE_IOAPI_INLINE ( efi, bus_to_phys );
PROVIDE_IOAPI_INLINE ( efi, ioremap );
@@ -203,3 +214,4 @@ PROVIDE_IOAPI_INLINE ( efi, outsw );
PROVIDE_IOAPI_INLINE ( efi, outsl );
PROVIDE_IOAPI ( efi, iodelay, efi_iodelay );
PROVIDE_IOAPI_INLINE ( efi, mb );
+PROVIDE_IOAPI ( efi, get_memmap, efi_get_memmap );