LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Jan 28 03:42:46 CET 2008
    Subject: [cvs-checkins] MODIFIED: mlite ...
    Top
    Date: 00/08/01 28:03:42

    Modified: mlite/kernel tcpip.h
    Log:
    Added Ethernet support


    Revision Changes Path
    1.12 mlite/kernel/tcpip.h

    http://www.opencores.org/cvsweb.shtml/mlite/kernel/tcpip.h.diff?r1=1.11&r2=1.12

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: tcpip.h
    ===================================================================
    RCS file: /cvsroot/rhoads/mlite/kernel/tcpip.h,v
    retrieving revision 1.11
    retrieving revision 1.12
    diff -u -b -r1.11 -r1.12
    --- tcpip.h 13 Jul 2007 05:05:50 -0000 1.11
    +++ tcpip.h 28 Jan 2008 02:42:45 -0000 1.12
    @@ -17,7 +17,7 @@
    #define FRAME_COUNT_SYNC 50
    #define FRAME_COUNT_SEND 10
    #define FRAME_COUNT_RCV 5
    -#define RETRANSMIT_TIME 3
    +#define RETRANSMIT_TIME 110
    #define SOCKET_TIMEOUT 12

    typedef enum IPMode_e {
    @@ -44,7 +44,8 @@
    struct IPFrame *next, *prev;
    struct IPSocket *socket;
    uint32 seqEnd;
    - uint16 length, timeout;
    + uint16 length;
    + short timeout;
    uint8 state, retryCnt;
    } IPFrame;

    @@ -71,7 +72,10 @@
    } IPSocket;

    //ethernet.c
    -void EthernetSendPacket(const unsigned char *packet, int length);
    +void EthernetSendPacket(const unsigned char *packet, int length); //Windows
    +void EthernetInit(unsigned char MacAddress[6]);
    +int EthernetReceive(unsigned char *buffer, int length);
    +void EthernetTransmit(unsigned char *buffer, int length);

    //tcpip.c
    void IPInit(IPFuncPtr frameSendFunction);



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.