exports.h 690 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef __MON_SYS_CALL_H__
  2. #define __MON_SYS_CALL_H__
  3. #ifndef __ASSEMBLY__
  4. #include <common.h>
  5. /* These are declarations of exported functions available in C code */
  6. unsigned long get_version(void);
  7. int getc(void);
  8. int tstc(void);
  9. void putc(const char);
  10. void puts(const char*);
  11. void printf(const char* fmt, ...);
  12. void install_hdlr(int, interrupt_handler_t*, void*);
  13. void free_hdlr(int);
  14. void *malloc(size_t);
  15. void free(void*);
  16. void udelay(unsigned long);
  17. unsigned long get_timer(unsigned long);
  18. void app_startup(char **);
  19. #endif /* ifndef __ASSEMBLY__ */
  20. enum {
  21. #define EXPORT_FUNC(x) XF_ ## x ,
  22. #include <_exports.h>
  23. #undef EXPORT_FUNC
  24. XF_MAX
  25. };
  26. #define XF_VERSION 1
  27. #endif