- 09 Jan, 2012 17 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This allows to uncomment the original DBGV in ptp code, until they are turned to serious diagnostic messages. Then these two functions should disappear, in my opinion. Most DBGV use no arguments, so the default function is smaller; and printf-like DBGV can be turned to DBGV_ARGS instead. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I removed the trailing "interval" in all of them but announce, that has both receipt and interval. This shortens some almost-80-cols lines. I'm not sure it's the right thing to do, but timer names are unreadable anyways. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
the "ppi" object instance should consistently be the first argument of functions that receive it. Besides being more consistent, it's smaller and faster too (on processors with more than 4 registers, I mean). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Boolean is braindead. We decided to leave them in the mandated structures by now (until we discover they are not really mandated) but not use them ourselves. This "found" variable wanted to be int, so be it int. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
This only applies checkpatch stuff, but I took the freedom to add tabs to the stuctures in ieee1588_types.h, to make them more readable. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
char may be signed or unsigned, so I'd better be safe here. Meanwhile, I added some tabs to better line up the typedef stanza. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
this applies checkpatch-dictated fixes, with no functional change. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
These remove style warnings and errors, mostly mine. External files (such as hw files in arch-spec and syscall stuff in bare-linux) have not been fixed and should not be, in my opinion. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
All other state-* files refer to one state of the fsm, so rename common functions accordingly Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
All files called state-*.c are individual states: rename accordingly to preven confusion. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
All other state-* files are states, so the table should use a different name. "default" is unneeded, since this is the default protocol. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
While the code layout comes from ptp-proposal, this is a different package, now called pptp for "Portable PTP". Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 03 Jan, 2012 4 commits
-
-
Alessandro Rubini authored
<arch/arch.h> already defined the four network converters, so this removes pp_htons and the other ones. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
This fixes the "ppi->ch.fd" using the two descriptors in the new net_path structure. It also istantiates a static net_patch to avoid malloc in the freestanding environment. The program is not linking because some functions called by the protocol are still missing in this architecture. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Since we have two file descriptors (channels) in pp_instance, but current code opens one socket only, use it in both places as a temporary measure. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
This removes <dep/dep.h> by renaming it to <pproto/lib.h>, since those functions are library ones, though pp_ prefixed. <pproto/pproto.h> includes <pproto/lib.h>, since they are always needed, and C files are fixed by not including <dep/dep.h>. Sometimes I included <pproto/diag.h> to fix some compile warnings for implicit declaration of pp_printf. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 30 Dec, 2011 6 commits
-
-
Aurelio Colosimo authored
With this patch, the whole ptp protocol state machine has been analyzed and mostly included in the ptp-wr project.
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
fixes a warning on return type
-
Aurelio Colosimo authored
fix for coherency with ptpd: if announce timer expires and our clock can not act as master, the state must be put back to LISTENING
-
Aurelio Colosimo authored
state-passive.c and state-slave.c now use the same st_com_handle_pdelay_req for PPM_PDELAY_REQ messages handling.
-
Aurelio Colosimo authored
state-slave.c: only missing some servo functions and msg issue pproto.h: shortened some variable names
-
- 29 Dec, 2011 5 commits
-
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
minor fixes and comments updated elsewhere
-
Alessandro Rubini authored
-
Alessandro Rubini authored
With new compilers (e.g., Debian 6) the resulting binary was not starting because there's an extra section before .text
-
Aurelio Colosimo authored
-
- 28 Dec, 2011 8 commits
-
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
state-listening: go to FAULTY if received an announce of uncorrect length all states: use switch/case to analyse the incoming msg type
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
Patch coming from ptp-proposal (author: Alessandro Rubini) Some distributions (e.g: ubuntu-lucid) use the stack protector by default. This disables it so arch-bare-linux can compile and run. The option is present at least from gcc-4.2, but 4.0 and ealier ones are known not to accept it.
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
-
Aurelio Colosimo authored
-