imx6: iomux: Add generic function to set RGMII IO voltage on IMX6 SoCs
[oweals/u-boot.git] / include / efi_selftest.h
index beb662d4e1b84f90055fea86983b4484f2178e82..7ec42a0406bca52da1add4ddcc224c38ffa2b7c5 100644 (file)
@@ -23,8 +23,8 @@
  * @...        format string followed by fields to print
  */
 #define efi_st_error(...) \
-       efi_st_printf("%s(%u):\nERROR: ", __FILE__, __LINE__); \
-       efi_st_printf(__VA_ARGS__) \
+       (efi_st_printf("%s(%u):\nERROR: ", __FILE__, __LINE__), \
+       efi_st_printf(__VA_ARGS__)) \
 
 /*
  * A test may be setup and executed at boottime,
@@ -60,6 +60,17 @@ void efi_st_exit_boot_services(void);
 void efi_st_printf(const char *fmt, ...)
                 __attribute__ ((format (__printf__, 1, 2)));
 
+/*
+ * Compare memory.
+ * We cannot use lib/string.c due to different CFLAGS values.
+ *
+ * @buf1:      first buffer
+ * @buf2:      second buffer
+ * @length:    number of bytes to compare
+ * @return:    0 if both buffers contain the same bytes
+ */
+int efi_st_memcmp(const void *buf1, const void *buf2, size_t length);
+
 /*
  * Reads an Unicode character from the input device.
  *