mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:26:46 +07:00
b2c5f61920
This abstracts the operations used in the bootwrapper, and defines the operations needed for the bootwrapper to run on an OF platform. The operations have been divided up into platform ops (platform_ops), firmware ops (fw_ops), device tree ops (dt_ops), and console ops (console_ops). The proper operations will be hooked up at runtime to provide the functionality that you need. Signed-off-by: Mark A. Greer <mgreer@mvista.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
19 lines
446 B
C
19 lines
446 B
C
#ifndef _PPC_BOOT_STDIO_H_
|
|
#define _PPC_BOOT_STDIO_H_
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define ENOMEM 12 /* Out of Memory */
|
|
#define EINVAL 22 /* Invalid argument */
|
|
#define ENOSPC 28 /* No space left on device */
|
|
|
|
extern int printf(const char *fmt, ...);
|
|
|
|
#define fprintf(fmt, args...) printf(args)
|
|
|
|
extern int sprintf(char *buf, const char *fmt, ...);
|
|
|
|
extern int vsprintf(char *buf, const char *fmt, va_list args);
|
|
|
|
#endif /* _PPC_BOOT_STDIO_H_ */
|