]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - packages/devs/eth/phy/v2_0/src/AM79C874.c
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / devs / eth / phy / v2_0 / src / AM79C874.c
index 975999941b262fa5ad0ee167792f7cf49216be00..73375f9ab519bfb9fe6dc0fa2cbd11e0e70c53e1 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 am79c874_stat(eth_phy_access_t *f, int *state)
     // Read negotiated state
     if (_eth_phy_read(f, 0x1, f->phy_addr, &phy_state)) {
         if ((phy_state & 0x20) == 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, 0x1, f->phy_addr, &phy_state)) {
                     if ((phy_state & 0x20) != 0) {
@@ -81,9 +80,9 @@ static bool am79c874_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 & 0x20) != 0) {
             *state = 0;