^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __AXP_CONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __AXP_CONSOLE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <uapi/asm/console.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) extern long callback_puts(long unit, const char *s, long length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) extern long callback_getc(long unit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) extern long callback_open_console(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern long callback_close_console(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern long callback_open(const char *device, long length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern long callback_close(long unit);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern long callback_read(long channel, long count, const char *buf, long lbn);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern long callback_getenv(long id, const char *buf, unsigned long buf_size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern long callback_setenv(long id, const char *buf, unsigned long buf_size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern long callback_save_env(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern int srm_fixup(unsigned long new_callback_addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) unsigned long new_hwrpb_addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern long srm_puts(const char *, long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern long srm_printk(const char *, ...)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) __attribute__ ((format (printf, 1, 2)));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) struct crb_struct;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct hwrpb_struct;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern int callback_init_done;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern void * callback_init(void *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #endif /* __ASSEMBLY__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #endif /* __AXP_CONSOLE_H */