uboot/include/exports.h
<<
>>
Prefs
   1#ifndef __EXPORTS_H__
   2#define __EXPORTS_H__
   3
   4#ifndef __ASSEMBLY__
   5#ifdef CONFIG_PHY_AQUANTIA
   6#include <miiphy.h>
   7#include <phy.h>
   8#endif
   9
  10struct spi_slave;
  11
  12/* These are declarations of exported functions available in C code */
  13unsigned long get_version(void);
  14int  getc(void);
  15int  tstc(void);
  16void putc(const char);
  17void puts(const char*);
  18int printf(const char* fmt, ...);
  19void install_hdlr(int, interrupt_handler_t, void*);
  20void free_hdlr(int);
  21void *malloc(size_t);
  22#if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
  23void free(void*);
  24#endif
  25void __udelay(unsigned long);
  26unsigned long get_timer(unsigned long);
  27int vprintf(const char *, va_list);
  28unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
  29int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
  30char *getenv (const char *name);
  31int setenv (const char *varname, const char *varvalue);
  32long simple_strtol(const char *cp, char **endp, unsigned int base);
  33int strcmp(const char *cs, const char *ct);
  34unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
  35unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
  36#if defined(CONFIG_CMD_I2C) && \
  37                (!defined(CONFIG_DM_I2C) || defined(CONFIG_DM_I2C_COMPAT))
  38int i2c_write (uchar, uint, int , uchar* , int);
  39int i2c_read (uchar, uint, int , uchar* , int);
  40#endif
  41#ifdef CONFIG_PHY_AQUANTIA
  42struct mii_dev *mdio_get_current_dev(void);
  43struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
  44                phy_interface_t interface);
  45struct phy_device *mdio_phydev_for_ethname(const char *ethname);
  46int miiphy_set_current_dev(const char *devname);
  47#endif
  48
  49void app_startup(char * const *);
  50
  51#endif    /* ifndef __ASSEMBLY__ */
  52
  53struct jt_funcs {
  54#define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
  55#include <_exports.h>
  56#undef EXPORT_FUNC
  57};
  58
  59
  60#define XF_VERSION      9
  61
  62#if defined(CONFIG_X86)
  63extern gd_t *global_data;
  64#endif
  65
  66#endif  /* __EXPORTS_H__ */
  67