aboutsummaryrefslogtreecommitdiffstats
path: root/roms/skiboot/libflash/test/stubs.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/skiboot/libflash/test/stubs.h')
-rw-r--r--roms/skiboot/libflash/test/stubs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/roms/skiboot/libflash/test/stubs.h b/roms/skiboot/libflash/test/stubs.h
new file mode 100644
index 000000000..3f890c930
--- /dev/null
+++ b/roms/skiboot/libflash/test/stubs.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+/* Copyright 2013-2018 IBM Corp. */
+
+#include <lock.h>
+#include <stdint.h>
+
+#include "../../include/lpc-mbox.h"
+
+void check_timers(bool unused);
+void time_wait_ms(unsigned long ms);
+unsigned long mftb(void);
+void _prlog(int log_level, const char* fmt, ...);
+void bmc_put_u16(struct bmc_mbox_msg *msg, int offset, uint16_t data);
+void bmc_put_u32(struct bmc_mbox_msg *msg, int offset, uint32_t data);
+u16 bmc_get_u16(struct bmc_mbox_msg *msg, int offset);
+u32 bmc_get_u32(struct bmc_mbox_msg *msg, int offset);
+void *__zalloc(size_t sz);
+void __free(const void *p);
+void lock_caller(struct lock *l, const char *caller);
+void unlock(struct lock *l);