global: Migrate CONFIG_STACKBASE to CFG
[platform/kernel/u-boot.git] / include / _exports.h
index 1e9ba86..1af946f 100644 (file)
@@ -8,10 +8,13 @@
 #define EXPORT_FUNC(a, b, c, ...)
 #endif
        EXPORT_FUNC(get_version, unsigned long, get_version, void)
-       EXPORT_FUNC(getc, int, getc, void)
+       EXPORT_FUNC(getchar, int, getc, void)
        EXPORT_FUNC(tstc, int, tstc, void)
        EXPORT_FUNC(putc, void, putc, const char)
        EXPORT_FUNC(puts, void, puts, const char *)
+#ifdef CONFIG_CONSOLE_FLUSH_SUPPORT
+       EXPORT_FUNC(flush, void, flush, void)
+#endif
        EXPORT_FUNC(printf, int, printf, const char*, ...)
 #if (defined(CONFIG_X86) && !defined(CONFIG_X86_64)) || defined(CONFIG_PPC)
        EXPORT_FUNC(irq_install_handler, void, install_hdlr,
@@ -40,7 +43,7 @@
        EXPORT_FUNC(simple_strtol, long, simple_strtol,
                    const char *, char **, unsigned int)
        EXPORT_FUNC(strcmp, int, strcmp, const char *cs, const char *ct)
-#if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C)
+#if defined(CONFIG_CMD_I2C) && !CONFIG_IS_ENABLED(DM_I2C)
        EXPORT_FUNC(i2c_write, int, i2c_write, uchar, uint, int , uchar * , int)
        EXPORT_FUNC(i2c_read, int, i2c_read, uchar, uint, int , uchar * , int)
 #else
@@ -77,8 +80,7 @@
        EXPORT_FUNC(mdio_get_current_dev, struct mii_dev *,
                    mdio_get_current_dev, void)
        EXPORT_FUNC(phy_find_by_mask, struct phy_device *, phy_find_by_mask,
-                   struct mii_dev *bus, unsigned phy_mask,
-                   phy_interface_t interface)
+                   struct mii_dev *bus, unsigned phy_mask)
        EXPORT_FUNC(mdio_phydev_for_ethname, struct phy_device *,
                    mdio_phydev_for_ethname, const char *ethname)
        EXPORT_FUNC(miiphy_set_current_dev, int, miiphy_set_current_dev,