exports.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. int ustrtoul(const char *cp, char **endp, unsigned int base);
  25. #if defined(CONFIG_CMD_I2C)
  26. int i2c_write (uchar, uint, int , uchar* , int);
  27. int i2c_read (uchar, uint, int , uchar* , int);
  28. #endif
  29. void app_startup(char * const *);
  30. #endif /* ifndef __ASSEMBLY__ */
  31. enum {
  32. #define EXPORT_FUNC(x) XF_ ## x ,
  33. #include <_exports.h>
  34. #undef EXPORT_FUNC
  35. XF_MAX
  36. };
  37. #define XF_VERSION 6
  38. #if defined(CONFIG_X86)
  39. extern gd_t *global_data;
  40. #endif
  41. #endif /* __EXPORTS_H__ */