- 05 Jun, 2013 22 commits
-
-
Aurelio Colosimo authored
The core of server functionality is in wrs-ipcserver.c, which basically consists of a porting of PTPWRd/ptpd_exports.[ch], as they are seen in commit 080d54fb of the repository: git://ohwr.org/white-rabbit/ppsi/ptp-noposix.git Two notes: - this implementation, like the one I'm porting from, does not make use of minipc_server_get_fdset, which would make the minipc_server_action be called only when necessary (by means of a select); indeed, minipc_server_action is called at each cycle in the main loop; - the server is created by using "ptpd" as its mnemonic name, for compatibility with ptp-noposix. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Some archs (e.g. wrs does) may need to force the usage of a specific extension, so include extension Makefile after arch Makefile, so that arch Makefile can modify PROTO_EXT env var. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
wr_servo_enable_tracking function will be used by arch-wrs, so define it in wr-api.h. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Since ppsi-wrs.h is used by time-wrs files too, move it in include directory. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
All the placeholders in wrs-time.c and wrs-calibration.c are here filled with their proper implementation. Note: some functions were already implemented in commit 19a203b4. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Since the hal client is called in two places (arch-wrs/wrs-calibration.c and time-wrs/wrs-time.c), put what is common in the general include file provided by arch-wrs. Indeed this file should be moved to arch-wrs/include (will be done in one of the next commits). 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
hal_exports.h is copied from commit c8ac96b4, repository git@ohwr.org:white-rabbit/wr-switch-sw.git 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
In this first commit, time-wrs will behave the same as time-unix. More functions will be added by the next commits. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
In order to time-unix functions to be used externally, these three changes are here made: * created time-unix/unix-time.h * removed static attribute from functions in time-unix * added a proper include path to CFLAGS Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This patch is need to make ppsi compile with a time- implementation different than unix. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
mini-rpc is a copy of commit 4c87062d from repository git://github.com/a-rubini/mini-rpc.gitSigned-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This function is the only one I'm renaming at the moment, since it's the only one that will change for sure (for wrs specific needs). There is some more unix_something stuff, but I don't rename anything else since it should remain the same as what is in arch-unix. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This commit is just a copy of arch-unix, as it is in commit 97c0c129. The only difference is in file names, as they have been renamed with wrs- prefix arch-wrs will host the stuff for WR switch architecture. It will be very similar to arch-unix, with the only difference of using wr switch HAL (Hardware Abstraction Layer) instead of the standard unix "read/write/ioctl to dev" to drive the White Rabbit specific hardware. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 29 May, 2013 2 commits
-
-
Alessandro Rubini authored
This patch-set creates the "time-" directory set, allowing different time engines to be used for the unix architectures. This also allows to cleanly create arch-wrs and time-wrs, done by Aurelio in the next commits.
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 23 May, 2013 6 commits
-
-
Alessandro Rubini authored
This includes the time (and net) operations from arch-wrpc. Like bare, arch-wrpc is not able to use a different timing engine than its own. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This commit separates to its own directory the timing code specific to bere linux implementations. If you build with ARCH=bare-i386 or ARCH=bare-i386-64, TIME=bare is automatically selected. Please note how bare builds don't allow externally-set TIME=, as the architecture Makefile forces "TIME := bare" (not "TIME ?= bare"). Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This is the first implementation of the concept ot "TIME=" on the configuration of ppsi. Time-related code that used to live in arch-unix is now split into its own directory. If you have special timing hardware, you can write your own pp_network_operations and pp_time_operations in your own directory and select them using TIME= . We'll do Linux-specific hardware timestamping soon, and WhiteRabbit as well. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The unix time and network operations are going to be used as a fall-back solution by other timing engines. For example, hardware-specific timestamping capabilities can be selected (such as the Linux ioctl API) but if the Ethernet interface (and thus the pp_instance) doesn't support the feature, related code will be able to set back the unix operations in place. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
The contents of this directory are pretty portable anyways, and the internal files were actually called "posix-io.c" and so on. So let's get rid of the too-politica "gnu-linux" naming and of the too-little-political "posix" at the same time. We build on Unix roots, so let's call our architecture like that. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Acked-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 21 May, 2013 2 commits
-
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
- 20 May, 2013 5 commits
-
-
Aurelio Colosimo authored
Since we have a call to bmc inside this function, we do not need to unpack Announce message locally. This patch fixes a bug with white rabbit extension, since it did not update the foreign master record with most recent wrFlags. As a result, at the end of wr handshaking, the slave (very often) did not handle correctly the parentWrModeOn flag. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This partially reverts commit 9bd032a6, see wrspec.v2.06-07-2011, page 28 Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
This fixes a bug in proto-ext-whiterabbit, since the White Rabbit next_state was overwritten by bmc. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
Aurelio Colosimo authored
Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 15 May, 2013 1 commit
-
-
Aurelio Colosimo authored
This fixes the correct behaviour of ppsi in arch-wrpc, where adjust_freq is not available. Still some more fixes may be needed in servo.c. I'm not sure about the parameter -adj to be passed both in adjust_freq and adjust_offset case. Anyway, this has been tested on two SPECs and reaches synchronization. Signed-off-by: Aurelio Colosimo <aurelio@aureliocolosimo.it>
-
- 09 May, 2013 2 commits
-
-
Alessandro Rubini authored
if the user passes "-DDIAG_PUTS=sth~ in USER_CFLAGS at build time, al diagnostic messages are directed to this special puts (through sprintf to a local buffer) instead of going to the normal printf (and thus the default puts). This is going to be used by wrpc-sw, to leave the default output channel clean for the user shell. Unfortunately, frame dumps cannot go to this special puts, as lib/dump-funcs.c just call printf and I don't know how to fix that without a massive change in the code. Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
-