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 {
int is_locked;
int lock_priority;
// timestamp linearization paramaters
// timestamp linearization parameters
uint32_t phase_setpoint; // DMPLL phase setpoint (picoseconds)
......@@ -88,7 +88,7 @@ static inline void delay(int x)
while(x--) asm volatile("nop");
}
/* other network lstuff, bah.... */
/* other network stuff, bah.... */
struct spec_ethhdr {
unsigned char h_dest[6];
......
......@@ -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
* 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
* 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
......
......@@ -136,7 +136,7 @@ static int wr_handle_followup(struct pp_instance *ppi,
precise_orig_timestamp->phase = 0;
wr_servo_got_sync(ppi, precise_orig_timestamp,
&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 1; /* the caller returns too */
......
......@@ -118,7 +118,7 @@ enum {
* since our application FSM is flat */
WRS_PRESENT = 16, WRS_S_LOCK, WRS_M_LOCK, WRS_LOCKED,
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 */
WR_TIMER_ARRAY_SIZE, /* number of states which has timeouts */
WRS_IDLE,
......
......@@ -9,7 +9,7 @@
#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
*/
/* put 16 bit word in big endianess (from little endianess) */
......@@ -27,7 +27,7 @@ static inline void put_be32(void *ptr, UInteger32 x)
*(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)
{
UInteger32 res = 0x0;
......
......@@ -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()
*/
Integer8 bmc_dataset_cmp(struct pp_instance *ppi,
......
......@@ -619,7 +619,7 @@ int msg_issue_sync(struct pp_instance *ppi)
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)
{
Timestamp prec_orig_tstamp;
......@@ -643,7 +643,7 @@ int msg_issue_delay_req(struct pp_instance *ppi)
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)
{
Timestamp orig_tstamp;
......@@ -656,7 +656,7 @@ int msg_issue_pdelay_req(struct pp_instance *ppi)
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,
MsgHeader *hdr)
{
......
......@@ -7,7 +7,7 @@
/*
* 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.
*/
......
......@@ -65,7 +65,7 @@ void pp_update_delay(struct pp_instance *ppi, TimeInternal *correction_field)
add_TimeInternal(&DSCUR(ppi)->meanPathDelay,
&SRV(ppi)->delay_sm, &SRV(ppi)->delay_ms);
/* Substract correction_field */
/* Subtract correction_field */
sub_TimeInternal(&DSCUR(ppi)->meanPathDelay,
&DSCUR(ppi)->meanPathDelay, correction_field);
......
......@@ -38,7 +38,7 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
break;
default:
/* disreguard, nothing to do */
/* disregard, nothing to do */
break;
}
......
......@@ -193,7 +193,7 @@ int pp_master(struct pp_instance *ppi, unsigned char *pkt, int plen)
break;
default:
/* disreguard, nothing to do */
/* disregard, nothing to do */
break;
}
......
......@@ -231,7 +231,7 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
break;
default:
/* disreguard, nothing to do */
/* disregard, nothing to do */
break;
}
......
/*
* This file is a "library" file which offers functions with the same
* 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
* 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