exports.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
  21. char *getenv (char *name);
  22. void setenv (char *varname, char *varvalue);
  23. long simple_strtol(const char *cp,char **endp,unsigned int base);
  24. int strcmp(const char * cs,const char * ct);
  25. #ifdef CONFIG_HAS_UID
  26. void forceenv (char *varname, char *varvalue);
  27. #endif
  28. #if defined(CONFIG_CMD_I2C)
  29. int i2c_write (uchar, uint, int , uchar* , int);
  30. int i2c_read (uchar, uint, int , uchar* , int);
  31. #endif
  32. void app_startup(char **);
  33. #endif /* ifndef __ASSEMBLY__ */
  34. enum {
  35. #define EXPORT_FUNC(x) XF_ ## x ,
  36. #include <_exports.h>
  37. #undef EXPORT_FUNC
  38. XF_MAX
  39. };
  40. #define XF_VERSION 4
  41. #if defined(CONFIG_I386)
  42. extern gd_t *global_data;
  43. #endif
  44. #endif /* __EXPORTS_H__ */