Commit 07ea72f7 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: typos in comments

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6063b8da
...@@ -54,7 +54,7 @@ typedef struct { ...@@ -54,7 +54,7 @@ typedef struct {
int is_locked; int is_locked;
int lock_priority; int lock_priority;
// timestamp linearization paramaters // timestamp linearization parameters
uint32_t phase_setpoint; // DMPLL phase setpoint (picoseconds) uint32_t phase_setpoint; // DMPLL phase setpoint (picoseconds)
...@@ -88,7 +88,7 @@ static inline void delay(int x) ...@@ -88,7 +88,7 @@ static inline void delay(int x)
while(x--) asm volatile("nop"); while(x--) asm volatile("nop");
} }
/* other network lstuff, bah.... */ /* other network stuff, bah.... */
struct spec_ethhdr { struct spec_ethhdr {
unsigned char h_dest[6]; unsigned char h_dest[6];
......
...@@ -300,7 +300,7 @@ static inline struct pp_servo *SRV(struct pp_instance *ppi) ...@@ -300,7 +300,7 @@ static inline struct pp_servo *SRV(struct pp_instance *ppi)
/* /*
* Each extension should fill this structure that is used to augment * Each extension should fill this structure that is used to augment
* the standard stated and avoid code duplications. Please remember * the standard states and avoid code duplications. Please remember
* that proto-standard functions are picked as a fall-back when non * that proto-standard functions are picked as a fall-back when non
* extension-specific code is provided. The set of hooks here is designed * extension-specific code is provided. The set of hooks here is designed
* based on what White Rabbit does. If you add more please remember to * based on what White Rabbit does. If you add more please remember to
......
...@@ -136,7 +136,7 @@ static int wr_handle_followup(struct pp_instance *ppi, ...@@ -136,7 +136,7 @@ static int wr_handle_followup(struct pp_instance *ppi,
precise_orig_timestamp->phase = 0; precise_orig_timestamp->phase = 0;
wr_servo_got_sync(ppi, precise_orig_timestamp, wr_servo_got_sync(ppi, precise_orig_timestamp,
&ppi->sync_receive_time); &ppi->sync_receive_time);
/* TODO Check: generates unstability (Tx timestamp invalid) */ /* TODO Check: generates instability (Tx timestamp invalid) */
/* return msg_issue_delay_req(ppi); */ /* return msg_issue_delay_req(ppi); */
return 1; /* the caller returns too */ return 1; /* the caller returns too */
......
...@@ -118,7 +118,7 @@ enum { ...@@ -118,7 +118,7 @@ enum {
* since our application FSM is flat */ * since our application FSM is flat */
WRS_PRESENT = 16, WRS_S_LOCK, WRS_M_LOCK, WRS_LOCKED, WRS_PRESENT = 16, WRS_S_LOCK, WRS_M_LOCK, WRS_LOCKED,
WRS_CALIBRATION, WRS_CALIBRATED, WRS_RESP_CALIB_REQ ,WRS_WR_LINK_ON, WRS_CALIBRATION, WRS_CALIBRATED, WRS_RESP_CALIB_REQ ,WRS_WR_LINK_ON,
/* Each WR main state (except IDLE) has an associated timetout /* Each WR main state (except IDLE) has an associated timeout
* we use state names to manage timeouts as well */ * we use state names to manage timeouts as well */
WR_TIMER_ARRAY_SIZE, /* number of states which has timeouts */ WR_TIMER_ARRAY_SIZE, /* number of states which has timeouts */
WRS_IDLE, WRS_IDLE,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "../proto-standard/common-fun.h" #include "../proto-standard/common-fun.h"
/* /*
* WR way to handle little/big endianess * WR way to handle little/big endianness
* FIXME: check whether htons would be ok * FIXME: check whether htons would be ok
*/ */
/* put 16 bit word in big endianess (from little endianess) */ /* put 16 bit word in big endianess (from little endianess) */
...@@ -27,7 +27,7 @@ static inline void put_be32(void *ptr, UInteger32 x) ...@@ -27,7 +27,7 @@ static inline void put_be32(void *ptr, UInteger32 x)
*(unsigned char *)(ptr++) = (x) & 0xff; *(unsigned char *)(ptr++) = (x) & 0xff;
} }
/* gets 32 bit word from big endianess (to little endianess) */ /* gets 32 bit word from big endianness (to little endianness) */
static inline UInteger32 get_be32(void *ptr) static inline UInteger32 get_be32(void *ptr)
{ {
UInteger32 res = 0x0; UInteger32 res = 0x0;
......
...@@ -110,7 +110,7 @@ void copy_d0( struct pp_instance *ppi, MsgHeader *hdr, MsgAnnounce *ann) ...@@ -110,7 +110,7 @@ void copy_d0( struct pp_instance *ppi, MsgHeader *hdr, MsgAnnounce *ann)
/* /*
* Data set comparison bewteen two foreign masters (9.3.4 fig 27) * Data set comparison between two foreign masters (9.3.4 fig 27)
* return similar to memcmp() * return similar to memcmp()
*/ */
Integer8 bmc_dataset_cmp(struct pp_instance *ppi, Integer8 bmc_dataset_cmp(struct pp_instance *ppi,
......
...@@ -619,7 +619,7 @@ int msg_issue_sync(struct pp_instance *ppi) ...@@ -619,7 +619,7 @@ int msg_issue_sync(struct pp_instance *ppi)
MSG_SEND_AND_RET(SYNC, EVT, 0); MSG_SEND_AND_RET(SYNC, EVT, 0);
} }
/* Pack and send on general multicast ip adress a FollowUp message */ /* Pack and send on general multicast ip address a FollowUp message */
int msg_issue_followup(struct pp_instance *ppi, TimeInternal *time) int msg_issue_followup(struct pp_instance *ppi, TimeInternal *time)
{ {
Timestamp prec_orig_tstamp; Timestamp prec_orig_tstamp;
...@@ -643,7 +643,7 @@ int msg_issue_delay_req(struct pp_instance *ppi) ...@@ -643,7 +643,7 @@ int msg_issue_delay_req(struct pp_instance *ppi)
MSG_SEND_AND_RET(DELAY_REQ, EVT, 0); MSG_SEND_AND_RET(DELAY_REQ, EVT, 0);
} }
/* Pack and send on event multicast ip adress a PDelayReq message */ /* Pack and send on event multicast ip address a PDelayReq message */
int msg_issue_pdelay_req(struct pp_instance *ppi) int msg_issue_pdelay_req(struct pp_instance *ppi)
{ {
Timestamp orig_tstamp; Timestamp orig_tstamp;
...@@ -656,7 +656,7 @@ int msg_issue_pdelay_req(struct pp_instance *ppi) ...@@ -656,7 +656,7 @@ int msg_issue_pdelay_req(struct pp_instance *ppi)
MSG_SEND_AND_RET(PDELAY_REQ, EVT, 1); MSG_SEND_AND_RET(PDELAY_REQ, EVT, 1);
} }
/* Pack and send on event multicast ip adress a PDelayResp message */ /* Pack and send on event multicast ip address a PDelayResp message */
int msg_issue_pdelay_resp(struct pp_instance *ppi, TimeInternal *time, int msg_issue_pdelay_resp(struct pp_instance *ppi, TimeInternal *time,
MsgHeader *hdr) MsgHeader *hdr)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
/* /*
* This file deals with opening and closing an instance. The channel * This file deals with opening and closing an instance. The channel
* must already have been created. In practices, this initializes the * must already have been created. In practice, this initializes the
* state machine to the first state. * state machine to the first state.
*/ */
......
...@@ -65,7 +65,7 @@ void pp_update_delay(struct pp_instance *ppi, TimeInternal *correction_field) ...@@ -65,7 +65,7 @@ void pp_update_delay(struct pp_instance *ppi, TimeInternal *correction_field)
add_TimeInternal(&DSCUR(ppi)->meanPathDelay, add_TimeInternal(&DSCUR(ppi)->meanPathDelay,
&SRV(ppi)->delay_sm, &SRV(ppi)->delay_ms); &SRV(ppi)->delay_sm, &SRV(ppi)->delay_ms);
/* Substract correction_field */ /* Subtract correction_field */
sub_TimeInternal(&DSCUR(ppi)->meanPathDelay, sub_TimeInternal(&DSCUR(ppi)->meanPathDelay,
&DSCUR(ppi)->meanPathDelay, correction_field); &DSCUR(ppi)->meanPathDelay, correction_field);
......
...@@ -38,7 +38,7 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -38,7 +38,7 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
break; break;
default: default:
/* disreguard, nothing to do */ /* disregard, nothing to do */
break; break;
} }
......
...@@ -193,7 +193,7 @@ int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -193,7 +193,7 @@ int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen)
break; break;
default: default:
/* disreguard, nothing to do */ /* disregard, nothing to do */
break; break;
} }
......
...@@ -231,7 +231,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -231,7 +231,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
break; break;
default: default:
/* disreguard, nothing to do */ /* disregard, nothing to do */
break; break;
} }
......
/* /*
* This file is a "library" file which offers functions with the same * This file is a "library" file which offers functions with the same
* Interface as send() and recv() but that handle stamping as well. * Interface as send() and recv() but that handle stamping as well.
* The timestamp informazion is saved to global variables, so no * The timestamp information is saved to global variables, so no
* concurrency is allowed and so on. In short: it's as crappy as * concurrency is allowed and so on. In short: it's as crappy as
* possible, but not crappier. * possible, but not crappier.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment