0001
0002 #ifndef __AXP_CONSOLE_H
0003 #define __AXP_CONSOLE_H
0004
0005 #include <uapi/asm/console.h>
0006
0007 #ifndef __ASSEMBLY__
0008 extern long callback_puts(long unit, const char *s, long length);
0009 extern long callback_getc(long unit);
0010 extern long callback_open_console(void);
0011 extern long callback_close_console(void);
0012 extern long callback_open(const char *device, long length);
0013 extern long callback_close(long unit);
0014 extern long callback_read(long channel, long count, const char *buf, long lbn);
0015 extern long callback_getenv(long id, const char *buf, unsigned long buf_size);
0016 extern long callback_setenv(long id, const char *buf, unsigned long buf_size);
0017 extern long callback_save_env(void);
0018
0019 extern int srm_fixup(unsigned long new_callback_addr,
0020 unsigned long new_hwrpb_addr);
0021 extern long srm_puts(const char *, long);
0022 extern long srm_printk(const char *, ...)
0023 __attribute__ ((format (printf, 1, 2)));
0024
0025 struct crb_struct;
0026 struct hwrpb_struct;
0027 extern int callback_init_done;
0028 extern void * callback_init(void *);
0029 #endif
0030 #endif