exports.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. int 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. int vprintf(const char *, va_list);
  19. unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
  20. int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
  21. char *getenv (const char *name);
  22. int setenv (const char *varname, const char *varvalue);
  23. long simple_strtol(const char *cp,char **endp,unsigned int base);
  24. int strcmp(const char * cs,const char * ct);
  25. int ustrtoul(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. #include <spi.h>
  31. void app_startup(char * const *);
  32. #endif /* ifndef __ASSEMBLY__ */
  33. enum {
  34. #define EXPORT_FUNC(x) XF_ ## x ,
  35. #include <_exports.h>
  36. #undef EXPORT_FUNC
  37. XF_MAX
  38. };
  39. #define XF_VERSION 6
  40. #if defined(CONFIG_X86)
  41. extern gd_t *global_data;
  42. #endif
  43. #endif /* __EXPORTS_H__ */