1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2024b246eSLinus Torvalds #ifndef __AXP_CONSOLE_H 3024b246eSLinus Torvalds #define __AXP_CONSOLE_H 4024b246eSLinus Torvalds 596433f6eSDavid Howells #include <uapi/asm/console.h> 6024b246eSLinus Torvalds 7024b246eSLinus Torvalds #ifndef __ASSEMBLY__ 8024b246eSLinus Torvalds extern long callback_puts(long unit, const char *s, long length); 9024b246eSLinus Torvalds extern long callback_getc(long unit); 10024b246eSLinus Torvalds extern long callback_open_console(void); 11024b246eSLinus Torvalds extern long callback_close_console(void); 12024b246eSLinus Torvalds extern long callback_open(const char *device, long length); 13024b246eSLinus Torvalds extern long callback_close(long unit); 14024b246eSLinus Torvalds extern long callback_read(long channel, long count, const char *buf, long lbn); 15024b246eSLinus Torvalds extern long callback_getenv(long id, const char *buf, unsigned long buf_size); 16024b246eSLinus Torvalds extern long callback_setenv(long id, const char *buf, unsigned long buf_size); 17024b246eSLinus Torvalds extern long callback_save_env(void); 18024b246eSLinus Torvalds 19024b246eSLinus Torvalds extern int srm_fixup(unsigned long new_callback_addr, 20024b246eSLinus Torvalds unsigned long new_hwrpb_addr); 21024b246eSLinus Torvalds extern long srm_puts(const char *, long); 22024b246eSLinus Torvalds extern long srm_printk(const char *, ...) 23024b246eSLinus Torvalds __attribute__ ((format (printf, 1, 2))); 24024b246eSLinus Torvalds 25024b246eSLinus Torvalds struct crb_struct; 26024b246eSLinus Torvalds struct hwrpb_struct; 27024b246eSLinus Torvalds extern int callback_init_done; 28024b246eSLinus Torvalds extern void * callback_init(void *); 29024b246eSLinus Torvalds #endif /* __ASSEMBLY__ */ 30024b246eSLinus Torvalds #endif /* __AXP_CONSOLE_H */ 31