exports.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef __EXPORTS_H__
  2. #define __EXPORTS_H__
  3. #ifndef __ASSEMBLY__
  4. /* These are declarations of exported functions available in C code */
  5. unsigned long get_version(void);
  6. int getc(void);
  7. int tstc(void);
  8. void putc(const char);
  9. void puts(const char*);
  10. int printf(const char* fmt, ...);
  11. void install_hdlr(int, void (*interrupt_handler_t)(void *), void*);
  12. void free_hdlr(int);
  13. void *malloc(size_t);
  14. void free(void*);
  15. void __udelay(unsigned long);
  16. unsigned long get_timer(unsigned long);
  17. int vprintf(const char *, va_list);
  18. unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
  19. int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
  20. char *getenv (const char *name);
  21. int setenv (const char *varname, const char *varvalue);
  22. long simple_strtol(const char *cp,char **endp,unsigned int base);
  23. int strcmp(const char * cs,const char * ct);
  24. unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
  25. unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
  26. #if defined(CONFIG_CMD_I2C)
  27. int i2c_write (uchar, uint, int , uchar* , int);
  28. int i2c_read (uchar, uint, int , uchar* , int);
  29. #endif
  30. void app_startup(char * const *);
  31. #endif /* ifndef __ASSEMBLY__ */
  32. enum {
  33. #define EXPORT_FUNC(x) XF_ ## x ,
  34. #include <_exports.h>
  35. #undef EXPORT_FUNC
  36. XF_MAX
  37. };
  38. #define XF_VERSION 6
  39. #if defined(CONFIG_X86)
  40. extern gd_t *global_data;
  41. #endif
  42. #endif /* __EXPORTS_H__ */