Changeset 6fa6367 in rtems


Ignore:
Timestamp:
04/20/01 20:32:08 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dd74e612
Parents:
a8c33268
Message:

2001-04-20 Radzislaw Galler <rgaller@…>

  • modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c, pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated Polish comments and other strings into English
  • pppd/STATUS: Updated to reflect the changes
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libnetworking/ChangeLog

    ra8c33268 r6fa6367  
     12001-04-20  Radzislaw Galler  <rgaller@et.put.poznan.pl>
     2
     3        * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
     4        pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
     5        Polish comments and other strings into English
     6        * pppd/STATUS: updated to reflect the changes
     7
    182001-04-20      Jake Janovetz <janovetz@uiuc.edu>
    29
    310        * rtems_servers/ftpd.c: Correct argument so hooks work again.
    411
    5 2001-03-15      Ralf Corsepiu <corsepius@faw.uni-ulm.de>
     122001-03-15      Ralf Corsepius <corsepius@faw.uni-ulm.de>
    613
    714        * include/.cvsignore: Remove danlgling file.
  • c/src/libnetworking/ChangeLog

    ra8c33268 r6fa6367  
     12001-04-20  Radzislaw Galler  <rgaller@et.put.poznan.pl>
     2
     3        * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
     4        pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
     5        Polish comments and other strings into English
     6        * pppd/STATUS: updated to reflect the changes
     7
    182001-04-20      Jake Janovetz <janovetz@uiuc.edu>
    29
    310        * rtems_servers/ftpd.c: Correct argument so hooks work again.
    411
    5 2001-03-15      Ralf Corsepiu <corsepius@faw.uni-ulm.de>
     122001-03-15      Ralf Corsepius <corsepius@faw.uni-ulm.de>
    613
    714        * include/.cvsignore: Remove danlgling file.
  • c/src/libnetworking/modem/ppp.c

    ra8c33268 r6fa6367  
    7676#include "ppp.h"
    7777#if NPPP > 0
    78 /* na razie wylaczmy kompresje*/
     78/* temporarily we switch off the compression */
    7979
    8080#include <rtems/rtems_bsdnet.h> /* to get right defines */
     
    217217#endif
    218218    }
    219 /* wpisane na twardo do rtems_glue.c
     219/* hardcoded in rtems_glue.c
    220220    netisrs[NETISR_PPP] = pppintr; */
    221221        return 1;
  • c/src/libnetworking/pppd/STATUS

    ra8c33268 r6fa6367  
    1616  other files suffer from this also.
    1717
    18 + Find comments in Polish and get Tomasz to translate them. :)
     18+ Find comments in Polish and get Tomasz to translate them. :)
     19 (DONE but not sure if completely
     20  Radzislaw Galler <rgaller@et.put.poznan.pl>)
    1921
    2022+ Add netdemo showing configuration and initialization.
  • c/src/libnetworking/pppd/main.c

    ra8c33268 r6fa6367  
    322322                char t[100];
    323323                        stat=LockSTBSystemParam();
    324                         sprintf(t,"Dzwoniê pod numer %s ...",stat->Phone_Number);
     324                        sprintf(t,"Calling number %s ...",stat->Phone_Number);
    325325                        UnlockSTBSystemParam();         
    326326#endif
     
    345345                {
    346346                char t[100];
    347                         sprintf(t,"£¹czenie z Internetem z prêdkosci¹ %d baud...",-i);
     347                        sprintf(t,"Connecting the Internet at %d baud...",-i);
    348348                    SetStatusInfo(0, t,0);
    349349                }
    350350                else           
    351                             SetStatusInfo(0, "£¹czenie z Internetem...",0);
     351                            SetStatusInfo(0, "Connecting the Internet...",0);
    352352                syslog(LOG_INFO, "Serial connection established.");
    353353
     
    383383
    384384                rtems_bsdnet_semaphore_release();
    385         SetStatusInfo(0, "Po³¹czenie z Internetem nawi¹zane.",1);
     385        SetStatusInfo(0, "Internet connection established.",1);
    386386
    387387                for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) {
     
    394394                        if (stat->WantConnection==DontConnect) {
    395395                                stat->ConnectionStatus = NotConnected;
    396                             SetStatusInfo(0, "Roz³¹czam siê ...",0);
     396                            SetStatusInfo(0, "Disconnecting...",0);
    397397                                lcp_close(0, "");
    398398                                kill_link = 0;
     
    415415                clean_check();
    416416                disestablish_ppp(ttyfd);
    417             SetStatusInfo(0, "Po³¹czenie z Internetem zerwane.",1);
     417            SetStatusInfo(0, "Broken internet connection.",1);
    418418
    419419                /*
     
    773773                stat->provider=DumbLogin;
    774774        switch (stat->provider) {
    775         case Poland_TPSA:
     775        case Poland_TPSA:       /* TPSA - Polish Telecom */
    776776                sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password);
    777777                break;
  • c/src/libnetworking/pppd/modem_example/modem.c

    ra8c33268 r6fa6367  
    715715        while (1)
    716716        {
    717                 if (xmt_len==0) //jezeli nic nie ma to czekajmy na event
     717                if (xmt_len==0) //if there is nothing then wait for an event
    718718                        rtems_event_receive(START_TRANSMIT_EVENT|INTERRUPT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events);
    719719                /* wait for transmit buffer to become empty */
    720720
    721                 while(_tx_stop) //tu czekamy na start transmisji
     721                while(_tx_stop) //here we are wainting for transmission start
    722722                        rtems_event_receive(INTERRUPT_EVENT|START_TRANSMIT_EVENT,RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT,&events);
    723723
    724724                _CPU_ISR_Disable(level);
    725                 if (*LSR & THRE) //jezeli nie ma transmisji to wyslijmy pierwsze bajty, jezeli jest, same pojda
     725                if (*LSR & THRE) //if there is no transmission then send first bytes, if there is one they will go eitherway
    726726                {
    727727                        maxonce=(xmt_len>14)?14:xmt_len;
     
    793793  /* Line control setup */
    794794
    795   *LCR = (char)(WL_8 ); /* 8 bitowe slowo */
    796   /* bylo NSB - bylo 2 jest 1*/
     795  *LCR = (char)(WL_8 ); /* 8 bit word */
     796  /* was NSB - was 2 is 1*/
    797797
    798798  /* Interrupt setup */
     
    811811void set_modem_dtr(int how)
    812812{
    813         unsigned char znak;
    814         znak=*MCR;
    815         *MCR=(how)?(znak|DTR):(znak&(~DTR));   
     813        unsigned char ch;
     814        ch=*MCR;
     815        *MCR=(how)?(ch|DTR):(ch&(~DTR));       
    816816}       
    817817void modem_status()
     
    862862                   * Buffer transmitted ?
    863863                   */
    864                 if (*LSR & THRE) //jezeli nie ma transmisji (a nie powinno byc) to wyslijmy  bajty
     864                if (*LSR & THRE) //if there is no transmission (and it shouldn't be) then send some bytes
    865865                {
    866866                        maxonce=(xmt_len>14)?14:xmt_len;
     
    12271227                if (sc->sc_inq.ifq_head != NULL)
    12281228                {
    1229 /*            printf("Read : Dane sa w buforze\n");
     1229/*            printf("Read : Data are in the buffer\n");
    12301230*/                      break;
    12311231                }
    1232 /*      printf("Read : Czekam na dane\n");
     1232/*      printf("Read : Waiting for data\n");
    12331233*/
    12341234                status=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks);
     
    13201320            m0->m_len -= PPP_HDRLEN;
    13211321
    1322 /*              printf("Wysylam %d bajtow \n",m0->m_len);
     1322/*              printf("Sending %d bytes \n",m0->m_len);
    13231323*/              n=pppoutput(&sc->sc_if, m0, &dst, (struct rtentry *)0);
    13241324                rtems_bsdnet_semaphore_release();
     
    14191419    rtems_interval    ticks;
    14201420  rtems_status_code              err;
    1421         int czekaj=1;
     1421        int num_wait=1;
    14221422    register struct ppp_softc *sc = (struct ppp_softc *)ModemData.t_sc;
    14231423    ticks = 1+(timo->tv_sec*1000000+timo->tv_usec)/rtems_bsdnet_microseconds_per_tick;
    1424         while (czekaj)
     1424        while (num_wait)
    14251425        {
    14261426                       
    14271427                if (sc->sc_inq.ifq_head != NULL)
    14281428                        break;
    1429 /*      printf("Wait : Czekam na dane przez %d ticks\n",ticks);
     1429/*      printf("Wait : Waiting for data for %d ticks\n",ticks);
    14301430*/              err=rtems_semaphore_obtain(ModemData.pppsem,RTEMS_WAIT,ticks);
    14311431                if (err==RTEMS_TIMEOUT)
    14321432                {
    1433 /*                      printf("TIMEOUT :Brak danych\n");
     1433/*                      printf("TIMEOUT : No data\n");
    14341434*/                      break;
    14351435                }
  • c/src/libnetworking/pppd/modem_example/ppp.c

    ra8c33268 r6fa6367  
    7676#include "ppp.h"
    7777#if NPPP > 0
    78 /* na razie wylaczmy kompresje*/
     78/* temporarily we switch off the compression */
    7979
    8080#include <sys/param.h>
     
    211211#endif
    212212    }
    213 /* wpisane na twardo do rtems_glue.c
     213/* hardcoded in rtems_glue.c
    214214    netisrs[NETISR_PPP] = pppintr; */
    215215        return 1;
  • c/src/libnetworking/pppd/pppmain.c

    ra8c33268 r6fa6367  
    337337                char t[100];
    338338                        stat=LockSTBSystemParam();
    339                         sprintf(t,"Dzwoniê pod numer %s ...",stat->Phone_Number);
     339                        sprintf(t,"Calling the number %s ...",stat->Phone_Number);
    340340                        UnlockSTBSystemParam();         
    341341                SetStatusInfo(0, t,0);
     
    363363#if 0
    364364                char t[100];
    365                         sprintf(t,"£¹czenie z Internetem z prêdkosci¹ %d baud...",-i);
     365                        sprintf(t,"Connecting the Internet at %d baud...",-i);
    366366                    SetStatusInfo(0, t,0);
    367367#endif
     
    370370                {
    371371#if 0
    372                             SetStatusInfo(0, "£¹czenie z Internetem...",0);
     372                            SetStatusInfo(0, "Connecting the Internet...",0);
    373373#endif
    374374                }
     
    407407                rtems_bsdnet_semaphore_release();
    408408#if 0
    409         SetStatusInfo(0, "Po³¹czenie z Internetem nawi¹zane.",1);
     409        SetStatusInfo(0, "Internet connection established.",1);
    410410#endif
    411411                for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD;) {
     
    420420                        if (stat->WantConnection==DontConnect) {
    421421                                stat->ConnectionStatus = NotConnected;
    422                             SetStatusInfo(0, "Roz³¹czam siê ...",0);
     422                            SetStatusInfo(0, "Disconnecting ...",0);
    423423                                lcp_close(0, "");
    424424                                kill_link = 0;
     
    442442                disestablish_ppp(ttyfd);
    443443#if 0
    444             SetStatusInfo(0, "Po³¹czenie z Internetem zerwane.",1);
     444            SetStatusInfo(0, "Broken the internet connection.",1);
    445445#endif
    446446                /*
     
    800800                stat->provider=DumbLogin;
    801801        switch (stat->provider) {
    802         case Poland_TPSA:
     802        case Poland_TPSA:       /* TPSA - Polish Telecom */
    803803                sprintf(program, scripts[1], stat->Phone_Number, stat->PPP_User, stat->PPP_Password);
    804804                break;
  • c/src/libnetworking/pppd/rtems-ppp.c

    ra8c33268 r6fa6367  
    428428    }
    429429/*    baud_rate = 9600;*/
    430 /* na razie wpisujemy na twardo*/
    431 
     430/* we hardcode it temporarily */
    432431    if (tcsetattr(fd, TCSANOW, &tios) < 0) {
    433432        syslog(LOG_ERR, "tcsetattr: %m");
  • cpukit/libnetworking/ChangeLog

    ra8c33268 r6fa6367  
     12001-04-20  Radzislaw Galler  <rgaller@et.put.poznan.pl>
     2
     3        * modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
     4        pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
     5        Polish comments and other strings into English
     6        * pppd/STATUS: updated to reflect the changes
     7
    182001-04-20      Jake Janovetz <janovetz@uiuc.edu>
    29
    310        * rtems_servers/ftpd.c: Correct argument so hooks work again.
    411
    5 2001-03-15      Ralf Corsepiu <corsepius@faw.uni-ulm.de>
     122001-03-15      Ralf Corsepius <corsepius@faw.uni-ulm.de>
    613
    714        * include/.cvsignore: Remove danlgling file.
  • cpukit/pppd/STATUS

    ra8c33268 r6fa6367  
    1616  other files suffer from this also.
    1717
    18 + Find comments in Polish and get Tomasz to translate them. :)
     18+ Find comments in Polish and get Tomasz to translate them. :)
     19 (DONE but not sure if completely
     20  Radzislaw Galler <rgaller@et.put.poznan.pl>)
    1921
    2022+ Add netdemo showing configuration and initialization.
Note: See TracChangeset for help on using the changeset viewer.