exports.h 976 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef __EXPORTS_H__
  2. #define __EXPORTS_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 vprintf(const char *, va_list);
  19. void do_reset (void);
  20. #if (CONFIG_COMMANDS & CFG_CMD_I2C)
  21. int i2c_write (uchar, uint, int , uchar* , int);
  22. int i2c_read (uchar, uint, int , uchar* , int);
  23. #endif /* CFG_CMD_I2C */
  24. void app_startup(char **);
  25. #endif /* ifndef __ASSEMBLY__ */
  26. enum {
  27. #define EXPORT_FUNC(x) XF_ ## x ,
  28. #include <_exports.h>
  29. #undef EXPORT_FUNC
  30. XF_MAX
  31. };
  32. #define XF_VERSION 2
  33. #if defined(CONFIG_I386)
  34. extern gd_t *global_data;
  35. #endif
  36. #endif /* __EXPORTS_H__ */