[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>
This commit is contained in:
Piotr Jaroszyński
2010-07-27 20:37:55 +02:00
committed by Michael Brown
parent e3c7a1948d
commit 5bbad9c8f0
13 changed files with 51 additions and 47 deletions

View File

@@ -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 );