1. 22 Jun, 2017 1 commit
  2. 04 Apr, 2016 1 commit
    • Alessandro Rubini's avatar
      general: use an ELF section for tasks · d9d20c8b
      Alessandro Rubini authored
      This allows several functions to be static in the files where they
      are defined. See temperature.c for an example.
      
      But mainly, the idea is allowing ease addition of features (likely
      Kconfig'd ones) for specific WR users, without any modification to the
      main function and other generic code.  This will happen soon for snmp,
      for example.
      
      We may push this a little further, by moving all shell stuff into
      shell.c, the ptp task within ppsi itself, and so on. But now my time
      is over.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      d9d20c8b
  3. 16 Feb, 2016 2 commits
  4. 21 Jan, 2016 2 commits
    • Alessandro Rubini's avatar
      net: add support for UDP sockets, use it (receive only by now) · 9515bdd8
      Alessandro Rubini authored
      We are going to add more UDP services, so this commit adds the
      generic management of UDP sockets, with udp protocol and port matching.
      Thus, we now have two IPV4 sockets: one for ICMP and one for bootp;
      whose receive part relies on generic code for the match.
      
      We still miss the output helpers, so with this commit bootp still
      builds the whole frame by itself.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      9515bdd8
    • Alessandro Rubini's avatar
      net: let the caller allocate queue size · 01ae0747
      Alessandro Rubini authored
      I also change the prototype of the socket creation so the compile can
      warn me where the locally-allocated socket must be changed.
      
      The size saving is not huge, but this allows later creation of further
      sockets with a smaller overhead (e.g.: the syslog socket that sends only
      has no queue, and the snmp socket needs a very small buffer).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      01ae0747
  5. 20 Jan, 2016 3 commits
  6. 01 Sep, 2015 1 commit
  7. 26 Jul, 2015 1 commit
  8. 07 Mar, 2013 1 commit
  9. 01 Nov, 2012 2 commits
    • Alessandro Rubini's avatar
      general: add copyright notes · 394d1405
      Alessandro Rubini authored
      This adds copyright notes to all non-trivial source files,
      unless they where already there (i.e. dev/endpoint.c alone).
      
      I found authorship using the following script, run on commit "a2721762
      documentation updated" (i.e, before automatic reindentation and other
      trivial stuff by me):
      
        git grep -l . | grep -v sockitowm/ | \
        while read F; do
             echo "##### $F"
             git blame -w $F | \
               sed -e 's/^[^ ]* .//' -e 's/-[0-9][0-9]-[0-9][0-9] .*$//' | \
               sort | uniq -c | sort -rn
        done
      
      Then I augmented each file with this boilerplate:
      
      /*
       * This work is part of the White Rabbit project
       *
       * Copyright (C) 2011 CERN (www.cern.ch)
       * Copyright (C) 2011,2012 CERN (www.cern.ch)
       * Copyright (C) 2012 CERN (www.cern.ch)
       * Copyright (C) 2011 GSI (www.gsi.de)
       * Copyright (C) 2011,2012 GSI (www.gsi.de)
       * Copyright (C) 2012 GSI (www.gsi.de)
       * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
       * Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
       * Author: Wesley W. Terpstra <w.terpstra@gsi.de>
       *
       * Released according to the GNU GPL, version 2 or any later version.
       */
      
      Then I removed all the lines that didn't apply. Sometimes I reordered
      the authors to reflect who is the main author.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      394d1405
    • Alessandro Rubini's avatar
      warnings: trivial fixes to lib/ · f3a10e83
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f3a10e83
  10. 05 Oct, 2012 2 commits
    • Alessandro Rubini's avatar
      Run ./scripts/Lindent on all .c and .h files · e625cbd9
      Alessandro Rubini authored
      This is massive: 4k lines changed (but only 840 if you ignore
      space-only changes).  In this case "git blame -w" won't always find
      the right patch, and it may fall on this patch -- because those
      800 lines changed in content too.
      
      This has been done with
      
         find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent
      
      Statistics: all changes and ignoring blank space:
      
         morgana% git diff --stat HEAD~1 | tail -1
          77 files changed, 3774 insertions(+), 3709 deletions(-)
         morgana% git diff -w --stat HEAD~1 | tail -1
          61 files changed, 894 insertions(+), 829 deletions(-)
      
      However, after this step I hand-fixed some very ugly long expressions
      (leaving them long: no content change at all is there).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e625cbd9
    • Alessandro Rubini's avatar
      Remove all spaces at end-of-line · 1d24ecfb
      Alessandro Rubini authored
      If you find this patch with "git blame" please use "git blame -w"
      to have all white-space ignored while associating lines to commits.
      
      This commit has no practical effect but cleanup. I made it
      with sed like this:
      
        git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//'
      
      However, I had to manually restore doc/wrpc_mon.png after the fact.
      Similarly, I restored the include/hw/*regs.h files, as they
      are (most likely) auto-generated.
      1d24ecfb
  11. 12 Jul, 2012 1 commit
  12. 05 Jul, 2012 1 commit
    • Wesley W. Terpstra's avatar
      BOOTP implemented · 63ac3c7b
      Wesley W. Terpstra authored
      wrc_main starts bootp whenever link goes up
      Rever Arria2 sys clock to 125MHz -- we had packet loss at 62.5MHz
      Added IP training support to the shell
      Have the shell reset the packet filter when the MAC is changed
      63ac3c7b
  13. 04 Jul, 2012 1 commit
  14. 13 Jun, 2012 2 commits