Richard Cochran
eb5b7b1e60
Verbosely identify the port and message after network errors.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-03-04 08:36:37 +01:00
Richard Cochran
d6ce3fbb3d
Fix compilation for uclinux toolchain lacking <sys/timerfd.h>
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-02-19 18:26:54 +01:00
Richard Cochran
6d73cea86a
Implement timeouts with log seconds less than zero.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-09 10:04:43 +01:00
Richard Cochran
222c9bb62b
Fix the port finite state machine.
...
The state machine needs to know whether a new master has just been
selected in order to choose between the slave and uncalibrated states.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:56 +01:00
Richard Cochran
335100c1a6
Differentiate the BMC related logging from the synchronization logging.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:56 +01:00
Richard Cochran
ba6cf8b767
uClinux: provide missing system calls.
...
The timerfd calls are missing from Sourcery CodeBench Lite 2011.09-23.
We can remove this code once these calls are properly integrated into a
current tool chain.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:56 +01:00
Richard Cochran
59163df8b1
Make use of the configuration file for the port data set.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:55 +01:00
Richard Cochran
e47549e73f
Ignore messages from ourselves and from the wrong domain.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:55 +01:00
Richard Cochran
95185673f5
Fix message leak in the port event handler.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:55 +01:00
Richard Cochran
e2c02e49c7
Implement the master sync timer and message.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:55 +01:00
Richard Cochran
39f5b2c449
Fix delay response message format.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
e96d26f13f
Group the sequence numbers together in one structure.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
72703ba36a
Implement the master announce timer and message.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
da17f75359
Implement the port master qualification timer.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
62afef45db
Clear all timers when changing port state.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
10753faccf
Implement the synchronization events.
...
This will allow a port to get from the uncalibrated into the slave state.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2012-01-07 08:07:54 +01:00
Richard Cochran
68aea3058c
Use the timeout table for the delay request messages.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2011-11-27 14:24:03 +01:00
Richard Cochran
ebd353aff6
Link it all together, but in slave-only mode.
...
Since the master implementation is still lacking, we will just keep
the slave-only flag hard coded for now.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2011-11-13 12:39:49 +01:00
Richard Cochran
dae76b951a
Implement the port layer.
...
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
2011-11-13 08:41:05 +01:00