console.h 1.0 KB

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