]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/devs/eth/phy/v2_0/src/DP83847.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / devs / eth / phy / v2_0 / src / DP83847.c
index 54bd115498be7c5e52dd317ffd6148948474fba4..7bb4c9aebf0b035a27fe9d90b13ea12786339d4b 100644 (file)
@@ -55,7 +55,6 @@
 #include <pkgconf/devs_eth_phy.h>
 
 #include <cyg/infra/cyg_type.h>
-#include <cyg/infra/diag.h>
 
 #include <cyg/hal/hal_arch.h>
 #include <cyg/hal/drv_api.h>
@@ -73,7 +72,7 @@ static bool dp83847_stat(eth_phy_access_t *f, int *state)
     // Read negotiated state
     if (_eth_phy_read(f, 0x10, f->phy_addr, &phy_state)) {
         if ((phy_state & 0x10) == 0) {
-            diag_printf("... waiting for auto-negotiation");
+            eth_phy_printf("... waiting for auto-negotiation");
             for (tries = 0;  tries < CYGINT_DEVS_ETH_PHY_AUTO_NEGOTIATION_TIME;  tries++) {
                 if (_eth_phy_read(f, 0x10, f->phy_addr, &phy_state)) {
                     if ((phy_state & 0x10) != 0) {
@@ -81,9 +80,9 @@ static bool dp83847_stat(eth_phy_access_t *f, int *state)
                     }
                 }
                 CYGACC_CALL_IF_DELAY_US(1000000);   // 1 second
-                diag_printf(".");
+                eth_phy_printf(".");
             }
-            diag_printf("\n");
+            eth_phy_printf("\n");
         }
         if ((phy_state & 0x10) != 0) {
             *state = 0;