]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
* Fix timeout handling in TFTP code
authorwdenk <wdenk>
Thu, 23 Nov 2000 13:12:40 +0000 (13:12 +0000)
committerwdenk <wdenk>
Thu, 23 Nov 2000 13:12:40 +0000 (13:12 +0000)
* Fix FEC driver for IVMS8

30 files changed:
CHANGELOG
include/asm/bitops.h
include/asm/byteorder.h
include/version.h
include/zlib.h
mpc8240/drivers/dma/Makefile
mpc8240/drivers/dma/Makefile_pc
mpc8240/drivers/dma/dma.h
mpc8240/drivers/dma/dma1.c
mpc8240/drivers/dma/dma2.S
mpc8240/drivers/epic/epic1.c
mpc8240/drivers/epic/epic2.S
mpc8240/drivers/epic/epicutil.S
mpc8240/drivers/i2c/Makefile
mpc8240/drivers/i2c/Makefile_pc
mpc8240/drivers/i2c/i2c.h
mpc8240/drivers/i2c/i2c1.c
mpc8240/drivers/i2c/i2c2.S
mpc8240/drivers/i2c/i2c_export.h
mpc8240/drivers/i2c_export.h
mpc8240/drivers/i2o.h
mpc8240/drivers/i2o/Makefile
mpc8240/drivers/i2o/Makefile_pc
mpc8240/drivers/i2o/i2o.h
mpc8240/drivers/i2o/i2o2.S
mpc8xx/fec.c
net/tftp.c
ppc/crc32.c
ppc/zlib.c
tools/mkimage.c

index f9372ff9391a727a8be3ebbbcba420b49a2d14cf..08e7b606fafca340ed5233a0217cc0c7068542e7 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -61,6 +61,8 @@ To do:
 Modifications since 0.6.3:
 ======================================================================
 
+* Fix timeout handling in TFTP code
+
 * Fix Bug in Boot File Size calculation
 
 * Fix MPC8xxFADS configuration (don't clobber unused port lines;
index b4af64b591810dae23de50a10d3a6178eacb8644..6419db0de0de2e7283de81ee039648f7c07054de 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * $Id: bitops.h,v 1.1 2000/08/21 14:18:07 wd Exp $
  * bitops.h: Bit string operations on the ppc
  */
 
index 0ac793d3954ec552afe2de660b470f75a57e03b1..7b6048249c91274fedacc89051ba6ad4b282acf6 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef _PPC_BYTEORDER_H
 #define _PPC_BYTEORDER_H
 
-/*
- *  $Id: byteorder.h,v 1.1 2000/08/21 14:18:07 wd Exp $
- */
-
 #include <asm/types.h>
 
 #ifdef __GNUC__
index be25ab437ea873434c1ae0e46e4ddf1e0222237f..65db04f62ca89e33e3eac98264f523c9f6fcce25 100644 (file)
@@ -24,6 +24,6 @@
 #ifndef        __VERSION_H__
 #define        __VERSION_H__
 
-#define        PPCBOOT_VERSION "ppcboot 0.6.3"
+#define        PPCBOOT_VERSION "ppcboot 0.6.3+"
 
 #endif /* __VERSION_H__ */
index 4b9bbc562c9192afb4c8f4630efd6f5ddaed3db1..e1d1979fa9f122264109943d3919236e271f2d83 100644 (file)
@@ -1,5 +1,3 @@
-/*     $Id: zlib.h,v 1.2 2000/10/25 10:46:51 wd Exp $  */
-
 /*
  * This file is derived from zlib.h and zconf.h from the zlib-0.95
  * distribution by Jean-loup Gailly and Mark Adler, with some additions
index 3e72c7d21f003999a651e15c422463d4c2c159f6..ec6c7fb22d0a581e0898483758199076947a4fbc 100644 (file)
@@ -1,7 +1,5 @@
 ##########################################################################
 #
-# $Id: Makefile,v 1.2 2000/11/23 00:46:21 wdenk Exp $
-#
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
 #
index 8ccd38630c41b231806481c734e3250dbe81daeb..318a263255ab4a16745818263475955ea8423f33 100644 (file)
@@ -1,7 +1,7 @@
 ##########################################################################
 #
 #   makefile_pc  for use with mksnt tools   drivers/dma
-#  $Id: Makefile_pc,v 1.2 2000/11/23 00:46:21 wdenk Exp $
+#
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
 #
index 23f644cd4492c7129f3f388af8cbd7ec641d27e0..e07e54b147bc762137ef8d3bb33eb72e9ae53f46 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef DMA_H
 #define DMA_H
 /*******************************************************
- * $Id: dma.h,v 1.1 2000/11/20 17:22:32 wdenk Exp $
  *
  * copyright @ Motorola 1999
  *
index cfdb17bd96cb4d1084fd6abe890c3680d0073cd1..cb6a3d5c2500b86e69d122ece4c759562baefd36 100644 (file)
@@ -1,5 +1,4 @@
 /************************************************************
- * $Id: dma1.c,v 1.1 2000/11/20 17:22:32 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index fb176a0697a6f8ef8a0787b9c974682138f8625c..e4a7410724830b1e333ea7af568c4ff6b533ca0c 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************
- * $Id: dma2.S,v 1.1 2000/11/20 17:22:32 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index e9d386162a81348faf9bf9a445e7b8c5e6089e6f..5d14078eeef785aa5362bbc040017907677eee66 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************************
- * $Id: epic1.c,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ motorola, 1999
  *
index 873b95a1fb754920711d4a3aceb7e94b8dbc7af6..99c468e14bbbed697dd510f0ea46474ddff964e6 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************
- * $Id: epic2.S,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index 72787a5d2d18f5b63a859f271204d502bf151b27..e4318b5d5127a474c9a8dc2f0d318fbc676b19b3 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************
- * $Id: epicutil.S,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index 6c21f6a33ec28547a3f25ee633944112af7e67ad..f8072685ac23b81f254a079fdf49153b8f24bfd0 100644 (file)
@@ -1,7 +1,5 @@
 ##########################################################################
 #
-# $Id: Makefile,v 1.2 2000/11/23 00:46:21 wdenk Exp $
-#
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
 #
index 071e2025e4e1081d535a4bcb70b65443bfdf45f3..ae0d7906c4b8f4e898af60a7b79587275f61c501 100644 (file)
@@ -1,7 +1,6 @@
 ##########################################################################
 #
 #       makefile_pc for use with PC mksnt tools  dink32/drivers/i2c
-# $Id: Makefile_pc,v 1.2 2000/11/23 00:46:21 wdenk Exp $
 #
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
index ef6a183ef6d575795998da25deae3c4fc7d2cace..5e5790b9b0ce67b4826f4870d8efedeec90450cf 100644 (file)
@@ -2,7 +2,6 @@
 #define I2C_H
 
 /****************************************************
- * $Id: i2c.h,v 1.2 2000/11/23 00:46:21 wdenk Exp $
  *
  * Copyright Motrola 1999
  *
index b63e6338622eab13fa9fde18ed6439e9e7c26cde..82ba478f7fe645f06744662c5e6bbf755f3f0492 100644 (file)
@@ -1,5 +1,4 @@
 /*************************************************************
- * $Id: i2c1.c,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * Copyright @ Motorola, 1999
  *
index fce84df3892f57b7954d2a6cbb89d04b821732f2..e767562bb5a2c8e01bb322751258bf193f30e3f4 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************
- * $Id: i2c2.S,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index 2c3d22a4006dfbd6be7419c3bfab0d0db7609ef2..3bda6cb25a8fa5f5c4030dfd07959d2ba2cdba2e 100644 (file)
@@ -2,7 +2,6 @@
 #define I2C_EXPORT_H
 
 /****************************************************
- * $Id: i2c_export.h,v 1.2 2000/11/23 00:46:21 wdenk Exp $
  *
  * Copyright Motrola 1999
  *
index 2c3d22a4006dfbd6be7419c3bfab0d0db7609ef2..3bda6cb25a8fa5f5c4030dfd07959d2ba2cdba2e 100644 (file)
@@ -2,7 +2,6 @@
 #define I2C_EXPORT_H
 
 /****************************************************
- * $Id: i2c_export.h,v 1.2 2000/11/23 00:46:21 wdenk Exp $
  *
  * Copyright Motrola 1999
  *
index 8b46156cfdb0a80d5ad8d661a67d75a95aa67c19..8c4770bc08d6d198ceed58917c351489d6f976de 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef I2O_H
 #define I2O_H
 /*********************************************************
- * $Id: i2o.h,v 1.1 2000/11/20 17:22:32 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *********************************************************/
index 6d6146f20a7855e8a17dcce3dd795b596f27590f..0874d95a18aa03ba05625dd2991582a1ade13419 100644 (file)
@@ -1,7 +1,5 @@
 ##########################################################################
 #
-# $Id: Makefile,v 1.2 2000/11/23 00:46:50 wdenk Exp $
-#
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
 #
index 0fb1f58ccfefb6ea1144bbeeb5d8e89eeb211d67..385667236049c88649ff96dbbf8f17a5a90ba2e2 100644 (file)
@@ -1,7 +1,6 @@
 ##########################################################################
 #
 #      makefile_pc for use with PC mksnt tools   dink32/drivers/i2o
-# $Id: Makefile_pc,v 1.2 2000/11/23 00:46:50 wdenk Exp $
 #
 #       Copyright Motorola, Inc. 1997
 #       ALL RIGHTS RESERVED
index e82c7233d482ba7567efc363257a0a1c49252fed..a77a071d1baf76c7039683bf39616332746665b0 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef I2O_H
 #define I2O_H
 /*********************************************************
- * $Id: i2o.h,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ Motorola, 1999
+ *
  *********************************************************/
 
 #define I2O_REG_OFFSET 0x0004
index f9d9287b2620dbba3d1324b659f27a6442d151a8..27e6f2cc49928ce1f1a651e294cefe9cb22dc97f 100644 (file)
@@ -1,5 +1,4 @@
 /**************************************
- * $Id: i2o2.S,v 1.1 2000/11/20 17:22:33 wdenk Exp $
  *
  * copyright @ Motorola, 1999
  *
index 7c2e0618f110769562046a8b4493040835043776..d39f910a1b8d70a4e268c3f4cc79e1a0130300ca 100644 (file)
@@ -26,7 +26,7 @@
 #include <net.h>
 #include <command.h>
 
-#define        ET_DEBUG
+#undef ET_DEBUG
 
 #if (CONFIG_COMMANDS & CFG_CMD_NET) && defined(FEC_ENET)
 
@@ -66,63 +66,49 @@ static RTXBD *rtx;
 
 int eth_send(volatile void *packet, int length)
 {
-       int i, j=0;
+       int j, rc;
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile fec_t *fecp = &(immr->im_cpm.cp_fec);
 
-printf("%s[%d] %s: addr %p, len %d -- txIdx=%d\n",
-__FILE__,__LINE__,__FUNCTION__,packet,length,txIdx);
        /* section 16.9.23.3
         * Wait for ready
         */
+       j = 0;
        while ((rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY) && (j<TOUT_LOOP)) {
                udelay(1);
                j++;
        }
        if (j>=TOUT_LOOP) {
                printf("TX not ready\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_HB) printf("- No heartbeat\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_LC) printf("- Late collision\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_RL) printf("- Retrans limit\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_UN) printf("- Underrun\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_CSL) printf("- Carrier lost\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_DEF) printf("- Deferred\n");
        }
 
-printf("%s[%d] %s: tx_bd[%d] @ %p: addr %p len %d\n",
-__FILE__,__LINE__,__FUNCTION__,txIdx,&(rtx->txbd[txIdx]), packet, length);
        rtx->txbd[txIdx].cbd_bufaddr = (uint)packet;
-       rtx->txbd[txIdx].cbd_datlen = length;
-       rtx->txbd[txIdx].cbd_sc |= (BD_ENET_TX_READY | BD_ENET_TX_LAST |BD_ENET_TX_WRAP);
+       rtx->txbd[txIdx].cbd_datlen  = length;
+       rtx->txbd[txIdx].cbd_sc |= BD_ENET_TX_READY | BD_ENET_TX_LAST;
        __asm__ ("eieio");
 
        /* Activate transmit Buffer Descriptor polling */
        fecp->fec_x_des_active = 0x01000000;    /* Descriptor polling active    */
 
+       j = 0;
        while ((rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_READY) && (j<TOUT_LOOP)) {
-printf("%s[%d] %s: tx_bd[%d] @ %p: sc=%04x\n",
-__FILE__,__LINE__,__FUNCTION__,txIdx,&(rtx->txbd[txIdx]),rtx->txbd[txIdx].cbd_sc);
                udelay(1);
                j++;
        }
        if (j>=TOUT_LOOP) {
                printf("TX timeout\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_HB) printf("- No heartbeat\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_LC) printf("- Late collision\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_RL) printf("- Retrans limit\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_UN) printf("- Underrun\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_CSL) printf("- Carrier lost\n");
-if (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_DEF) printf("- Deferred\n");
        }
 #ifdef ET_DEBUG
        printf("%s[%d] %s: cycles: %d    status: %x  retry cnt: %d\n",
        __FILE__,__LINE__,__FUNCTION__,j,rtx->txbd[txIdx].cbd_sc,
        (rtx->txbd[txIdx].cbd_sc & 0x003C)>>2);
 #endif
-       i = (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_STATS) /* return only status bits */;
+       /* return only status bits */;
+       rc = (rtx->txbd[txIdx].cbd_sc & BD_ENET_TX_STATS);
 
-printf("%s[%d] %s: return 0x%x\n",__FILE__,__LINE__,__FUNCTION__,i);
-       return i;
+       txIdx = (txIdx + 1) % TX_BUF_CNT;
+
+       return rc;
 }
 
 int eth_rx(void)
@@ -135,10 +121,6 @@ int eth_rx(void)
    {
        /* section 16.9.23.2 */
        if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_EMPTY) {
-#if 0
-               printf("%s[%d] %s: status: %x ==> return (-1)\n",
-                       __FILE__,__LINE__,__FUNCTION__,rtx->rxbd[rxIdx].cbd_sc);
-#endif
                length = -1;
                break;     /* nothing received - leave for() loop */
        }
@@ -149,13 +131,6 @@ int eth_rx(void)
 #ifdef ET_DEBUG
                printf("%s[%d] %s: err: %x\n",
                __FILE__,__LINE__,__FUNCTION__,rtx->rxbd[rxIdx].cbd_sc);
-if ((rtx->rxbd[rxIdx].cbd_sc & (BD_ENET_RX_LAST | BD_ENET_RX_OV)) == (BD_ENET_RX_LAST | BD_ENET_RX_OV)) printf("- RX overrun\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_MISS) printf("- MISS flag set\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_LG) printf("- frame too long\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_NO) printf("- nonocted-aligned frame\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_SH) printf("- frame too short\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_CR) printf("- CRC error\n");
-if (rtx->rxbd[rxIdx].cbd_sc & BD_ENET_RX_CL) printf("- frame truncated\n");
 #endif
        } else {
                /* Pass the packet up to the protocol layers. */
@@ -213,7 +188,6 @@ int eth_init (bd_t * bd)
        volatile immap_t *immr = (immap_t *) CFG_IMMR;
        volatile fec_t *fecp = &(immr->im_cpm.cp_fec);
 
-printf ("Start FEC init\n");
        /* Whack a reset.
         * A delay is required between a reset of the FEC block and
         * initialization of other FEC registers because the reset takes
@@ -254,7 +228,6 @@ printf ("Start FEC init\n");
        txIdx = 0;
 
        rtx = (RTXBD *) (immr->im_cpm.cp_dpmem + m8xx_cpm_dpbase_align(8));
-printf("%s[%d] %s: rtx = %p\n",__FILE__,__LINE__,__FUNCTION__,rtx);
 
        /*
         * Setup Receiver Buffer Descriptors (13.14.24.18)
@@ -262,8 +235,8 @@ printf("%s[%d] %s: rtx = %p\n",__FILE__,__LINE__,__FUNCTION__,rtx);
         *     Empty, Wrap
         */
        for (i = 0; i < PKTBUFSRX; i++) {
-               rtx->rxbd[i].cbd_sc = BD_ENET_RX_EMPTY;
-               rtx->rxbd[i].cbd_datlen = 0;    /* Reset */
+               rtx->rxbd[i].cbd_sc      = BD_ENET_RX_EMPTY;
+               rtx->rxbd[i].cbd_datlen  = 0;   /* Reset */
                rtx->rxbd[i].cbd_bufaddr = (uint) NetRxPackets[i];
        }
        rtx->rxbd[PKTBUFSRX - 1].cbd_sc |= BD_ENET_RX_WRAP;
@@ -274,10 +247,9 @@ printf("%s[%d] %s: rtx = %p\n",__FILE__,__LINE__,__FUNCTION__,rtx);
         *    Add PADs to Short FRAMES, Wrap, Last, Tx CRC
         */
        for (i = 0; i < TX_BUF_CNT; i++) {
-               rtx->txbd[i].cbd_sc =
-                               (BD_ENET_TX_PAD | BD_ENET_TX_LAST | BD_ENET_TX_TC);
-               rtx->txbd[i].cbd_datlen = 0;    /* Reset */
-               rtx->txbd[i].cbd_bufaddr = (uint) & txbuf[i][0];
+               rtx->txbd[i].cbd_sc      = BD_ENET_TX_LAST | BD_ENET_TX_TC;
+               rtx->txbd[i].cbd_datlen  = 0;   /* Reset */
+               rtx->txbd[i].cbd_bufaddr = (uint) (&(txbuf[i][0]));
        }
        rtx->txbd[TX_BUF_CNT - 1].cbd_sc |= BD_ENET_TX_WRAP;
 
@@ -301,7 +273,7 @@ printf("%s[%d] %s: rtx = %p\n",__FILE__,__LINE__,__FUNCTION__,rtx);
 
        /* Enable MII mode
         */
-#if 1  /* Full duplex mode */
+#if 0  /* Full duplex mode */
        fecp->fec_r_cntrl = FEC_RCNTRL_MII_MODE;
        fecp->fec_x_cntrl = FEC_TCNTRL_FDEN;
 #else  /* Half duplex mode */
@@ -339,7 +311,6 @@ printf("%s[%d] %s: rtx = %p\n",__FILE__,__LINE__,__FUNCTION__,rtx);
        /* Try to fill Rx Buffer Descriptors */
        fecp->fec_r_des_active = 0x01000000;    /* Descriptor polling active    */
 
-printf ("FEC init done\n");
        return 1;
 }
 
index aa7d76d409eb373a15eb902ad6bc68aa3e6f8879..e9d47afd0db81a2debc9c273112146200a921e5c 100644 (file)
@@ -47,6 +47,8 @@ store_block (unsigned block, uchar * src, unsigned len)
        (void)memcpy((void *)(load_addr + block * 512), src, len);
 }
 
+static void TftpTimeout (void);
+
 /**********************************************************************/
 
 static void
@@ -131,7 +133,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
                        return;
                len -= 2;
                TftpBlock = SWAP16(*(ushort *)pkt);
-               if (((TftpBlock - 1) % 10) == 0) printf ("#");
+               if (((TftpBlock - 1) % 10) == 0) putc ('#');
 
                if (TftpState == STATE_RRQ) {
                        TftpState = STATE_DATA;
@@ -139,9 +141,10 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
                        TftpLastBlock = 0;
 
                        if (TftpBlock != 1) {   /* Assertion */
-                               printf ("\nTFTP error: First block is not "
-                                               "block 1 (%d)\n", TftpBlock);
-                               printf ("Starting again\n\n");
+                               printf ("\nTFTP error: "
+                                       "First block is not block 1 (%d)\n"
+                                       "Starting again\n\n",
+                                       TftpBlock);
                                NetStartAgain ();
                                break;
                        }
@@ -155,7 +158,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
                }
 
                TftpLastBlock = TftpBlock;
-               TftpTimeoutCount = 0;
+               NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
 
                /* ImageSize += len; */
                store_block (TftpBlock - 1, pkt + 2, len);
@@ -171,7 +174,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
                         *      We received the whole thing.  Try to
                         *      run it.
                         */
-                       printf ("\ndone\n");
+                       puts ("\ndone\n");
                        NetState = NETLOOP_SUCCESS;
                }
                break;
@@ -179,7 +182,7 @@ TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
        case TFTP_ERROR:
                printf ("\nTFTP error: '%s' (%d)\n",
                                        pkt + 2, SWAP16(*(ushort *)pkt));
-               printf ("Starting again\n\n");
+               puts ("Starting again\n\n");
                NetStartAgain ();
                break;
        }
@@ -190,10 +193,10 @@ static void
 TftpTimeout (void)
 {
        if (++TftpTimeoutCount >= TIMEOUT_COUNT) {
-               printf ("\nRetry count exceeded; starting again\n");
+               puts ("\nRetry count exceeded; starting again\n");
                NetStartAgain ();
        } else {
-               printf ("T ");
+               puts ("T ");
                NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
                TftpSend ();
        }
@@ -214,8 +217,8 @@ TftpStart (ulong loadAdr)
        );
 #endif /* DEBUG */
 
-       printf ("TFTP from server ");    NetPrintIPaddr (NetServerIP);
-       printf ("; our IP address is "); NetPrintIPaddr (NetOurIP);
+       puts ("TFTP from server ");     NetPrintIPaddr (NetServerIP);
+       puts ("; our IP address is ");  NetPrintIPaddr (NetOurIP);
 
        // Check if we need to send across this subnet
        if (NetOurGatewayIP && NetOurSubnetMask) {
@@ -223,11 +226,11 @@ TftpStart (ulong loadAdr)
            IPaddr_t ServerNet  = NetServerIP & NetOurSubnetMask;
 
            if (OurNet != ServerNet) {
-               printf ("; sending throught gateway ");
+               puts ("; sending throught gateway ");
                NetPrintIPaddr (NetOurGatewayIP) ;
            }
        }
-       printf ("\n");
+       putc ('\n');
 
        if (BootFile[0] == '\0') {
                int     i;
@@ -253,7 +256,7 @@ TftpStart (ulong loadAdr)
                (NetBootFileSize%2) ? ".5" : "",
                NetBootFileSize<<9);
 
-       printf ("\n");
+       putc ('\n');
 
        if (loadAdr == ~0) {
                load_addr = CFG_LOAD_ADDR;
@@ -263,7 +266,7 @@ TftpStart (ulong loadAdr)
                printf ("Load address: 0x%lx\n", load_addr);
        }
 
-       printf ("Loading: *\b");
+       puts ("Loading: *\b");
 
        NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
        NetSetHandler (TftpHandler);
index 52984634251a2030efa6c572b34651a71a710206..16f7fcf16a0bdf42b3bc0179f3b6ef1e490bdc0b 100644 (file)
@@ -8,8 +8,6 @@
  * For conditions of distribution and use, see copyright notice in zlib.h 
  */
 
-/* @(#) $Id: crc32.c,v 1.1 2000/07/18 08:54:27 wd Exp $ */
-
 #include "zlib.h"
 
 #define local static
index 0581158d87ee3b14758c0b1e2c91fb4c3558e954..26ca30d977696ed102b10c6c7c32fbd26afea0cf 100644 (file)
@@ -10,8 +10,6 @@
  * - added minCompression parameter to deflateInit2
  * - added Z_PACKET_FLUSH (see zlib.h for details)
  * - added inflateIncomp
- *
- * $Id: zlib.c,v 1.2 2000/10/25 10:46:51 wd Exp $
  */
 
 /*+++++*/
index 5bf890220561185242910c461bdaed1d8c486c77..3fc7dfae9ccef2377000c24b0d195dfc0168e5be 100644 (file)
@@ -3,9 +3,6 @@
  * DENX Software Engineering
  * Wolfgang Denk, wd@denx.de
  * All rights reserved.
- *     
- * $Date: 2000/11/16 20:16:58 $
- * $Revision: 1.10 $
  */
 
 #include <errno.h>