diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2017-02-15 20:34:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-24 08:21:33 +0100 |
commit | c7263b02f83c330ffaf0f7f7128f747681e08a9e (patch) | |
tree | 6a6ef6a16478f5a9287216f45e56ed77276076e8 /include/efi | |
parent | 3858b78c1bea4d8b6aca73348edd48cbe59a428e (diff) | |
download | barebox-c7263b02f83c330ffaf0f7f7128f747681e08a9e.tar.gz barebox-c7263b02f83c330ffaf0f7f7128f747681e08a9e.tar.xz |
efi: move debug_ll.h to include/efi
so other arch could include it too
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/efi')
-rw-r--r-- | include/efi/debug_ll.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/efi/debug_ll.h b/include/efi/debug_ll.h new file mode 100644 index 0000000000..4ca72de312 --- /dev/null +++ b/include/efi/debug_ll.h @@ -0,0 +1,20 @@ +#ifndef __MACH_DEBUG_LL_H__ +#define __MACH_DEBUG_LL_H__ + +#define EFI_DEBUG 0 +#define EFI_DEBUG_CLEAR_MEMORY 0 + +#include <efi.h> +#include <efi/efi.h> + +static inline void PUTC_LL(char c) +{ + uint16_t str[2] = {}; + struct efi_simple_text_output_protocol *con_out = efi_sys_table->con_out; + + str[0] = c; + + con_out->output_string(con_out, str); +} + +#endif |