- 08 May, 2013 1 commit
-
-
Alessandro Rubini authored
call t24p calibration every time PTP is set to Slave mode. This is a port of commit 279f2c6b of wrc-sw, by Grzegorz Daniluk, since wrc_ptp_ppsi.c was still part of the supermodule. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 03 May, 2013 9 commits
-
-
Aurelio Colosimo authored
This bugfix is child of the fixed conf startup procedure: read conf, parse cmd line, and then open pp_globals by using its current rt_opts. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
pp_open_globals must be called after pp_parse_cmdline; ppg->rt_opts is thus set explicitly before pp_parse_cmdline, since this parsing affect rt_opts. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
rt_opts parameter was always passed as NULL. With this patch, users who do not want default rt_opts provided by proto-standard need to set their rt_opts explicitly. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Default Dataset slaveOnly variable is global and cannot be used in multilink context Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This major patch implements the core of Best Master Clock Algorithm for multilink context (e.g. Boundary Clock). Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 30 Apr, 2013 4 commits
-
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Will be useful for global bmc_state_decision computation Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This partially reverts commit 16707d53, since the IEEE spec states that foreign masters list must be kept updated for each link, then Ebest search among all links must be performed. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 23 Apr, 2013 24 commits
-
-
Aurelio Colosimo authored
Two main problems where found when compiling into wrpc-sw, commit e00d99f82: - wrpc_sw/include/hw/memlayout.h defines some symbols into a header file (I think they should be defined there as "extern" and actually declared somewhere else); - there was an include to be removed The simple solution for the first issue is to define __REGS_H where the compiler complains; the better solution, to me, is to follow include chain to discover who is including memlayout.h, or define those symbols as extern. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
posix_main_loop now gets a struct pp_globals ptr and simultaneously handles all configured links. posix_net_check_pkt has been changed too, in order to perform a global select on all fd's. This patch is temporary since it may need debug & test. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
POSIX_ARCH was defined buy never used, so redefine it for pp_globals, since it will be more useful. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Command line now acts globally. If multilink context (ppsi.conf defined and cointaining more than one link), the behaviour of -g and -e flags is common to each link. On the other way, -b flag can not be used in this case. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
GDSDEF macro returns the defaultDS field of struct pp_globals. Actually, it is the same pointer returned by DSDEF, since the default dataset is unique. The DSDEF macro is not removed both to preserve commit history and to increase readability (we do not take ppg pointer around and DSDEF(ppi) is shorter than GDSDEF(GLOBS(ppi))). Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
GOPTS macro returns the rt_opts field of struct pp_globals. Actually, in the current implementation it is the same pointer returned by OPTS, since each pp_instance has no "local" rt_opt, but points to the global one. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Still to be fixed is pp_parse_cmdline Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
nports field is fully replaced by nlinks, so I remove it. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Three bugs and missing features are fixed here: - pp_open_globals received a SEGFAULT because its rt_opts parameter was not correctly handled when NULL; - use ppg->nlinks instead of obsolete ppg->nports; - set def->slaveOnly and def->clockQuality.clockClass properly even when more than one link is defined Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Due to a bug in lib/conf.c, the conf file must be ended with a newline char; if not, the latest line is ignored. The bug will be hopefully solved soon, in the meantime this simple workaround avoids any problem. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
New function receives a struct pp_globals, coherently with pp_open_globals. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
pp_open_instance received a struct pp_globals, so rename it coherently. We have no pp_open_instance alone because an instance can live only inside its pp_globals struct. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The parser is implemented in lib/conf.c and has no libc dependencies. It is currently used by arch-gnu-linux, whose main function is here modified accordingly. This commit has not been tested yet, here is pushed temporarly to show how work is going on. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This patch temporarly breaks the proper functionality of arch-gnu-linux, since pp_parse_conf in lib/conf.c is just stubbed. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
pp_parse_conf will receive the txt data read from conf file and will compile the ppg->links structs. File open is supposed to be done outside the proper parser here defined, so that any architecture, even those with no filesystems, can make use of the parser, supposing the configuration txt data is saved elsewhere (e.g. in a E2PROM) Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
An array of struct pp_link is defined in struct pp_globals: it will cointain the result of conf file parsing. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
The ppsi.conf file will define the basic behaviour of ppsi, prior to cmdline options, which will override conf settings. Here a sample ppsi.conf is defined, where a mini-switch, driving two slaves, is configured. User will need to define their own ppsi.conf according to their needs. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
PP_VPRINTF is almost no more used, and anyway replaced by pp_Vprintf Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 08 Apr, 2013 1 commit
-
-
Aurelio Colosimo authored
Default Data Set is common to all ports, so it must be defined globally. pp_open_instance now gets a pp_globals object; the same should be done for pp_close_intance, but is not urgent since it is currently used by wrpc arch only, which is a single port arch. Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 02 Apr, 2013 1 commit
-
-
Aurelio Colosimo authored
Signed-off-by:
Aurelio Colosimo <aurelio@aureliocolosimo.it>
-