Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
144a8bcf
Commit
144a8bcf
authored
Jan 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: add global time stamp counter
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5d66f6d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
fmc-tdc.h
kernel/fmc-tdc.h
+3
-0
ft-core.c
kernel/ft-core.c
+1
-0
ft-irq.c
kernel/ft-irq.c
+1
-1
No files found.
kernel/fmc-tdc.h
View file @
144a8bcf
...
...
@@ -112,6 +112,7 @@ struct ft_wr_timestamp {
uint32_t
coarse
;
uint32_t
frac
;
int
seq_id
;
int
gseq_id
;
int
channel
;
};
...
...
@@ -163,6 +164,8 @@ struct fmctdc_dev {
int
wr_mode
;
/* hardware buffer pointers / dacapo regs */
uint32_t
cur_wr_ptr
,
prev_wr_ptr
;
uint64_t
sequence
;
/**< Board time-stamp sequence number */
};
extern
struct
ft_carrier_specific
ft_carrier_spec
;
...
...
kernel/ft-core.c
View file @
144a8bcf
...
...
@@ -289,6 +289,7 @@ int ft_probe(struct fmc_device *fmc)
ft_enable_acquisition
(
ft
,
1
);
ft
->
initialized
=
1
;
ft
->
sequence
=
0
;
return
0
;
err:
...
...
kernel/ft-irq.c
View file @
144a8bcf
...
...
@@ -179,11 +179,11 @@ static inline void process_timestamp(struct fmctdc_dev *ft,
if
(
st
->
user_offset
)
ft_ts_apply_offset
(
&
ts
,
st
->
user_offset
);
ts
.
gseq_id
=
ft
->
sequence
++
;
/* Got a dacapo flag? make a gap in the sequence ID to indicate
an unknown loss of timestamps */
ts
.
seq_id
=
st
->
cur_seq_id
++
;
if
(
dacapo_flag
)
{
ts
.
seq_id
++
;
st
->
cur_seq_id
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment