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
8ebd71c4
Commit
8ebd71c4
authored
Jan 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: no time stamp in the attributes
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
15302e1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
ft-irq.c
kernel/ft-irq.c
+0
-5
ft-zio.c
kernel/ft-zio.c
+13
-3
No files found.
kernel/ft-irq.c
View file @
8ebd71c4
...
...
@@ -131,11 +131,6 @@ int ft_read_sw_fifo(struct fmctdc_dev *ft, int channel,
v
[
FT_ATTR_TDC_OFFSET
]
=
ft
->
calib
.
zero_offset
[
channel
-
1
];
v
[
FT_ATTR_TDC_USER_OFFSET
]
=
st
->
user_offset
;
/* Only for sysfs debugging */
v
[
FT_ATTR_TDC_SECONDS
]
=
ctrl
->
tstamp
.
secs
;
v
[
FT_ATTR_TDC_COARSE
]
=
ctrl
->
tstamp
.
ticks
;
v
[
FT_ATTR_TDC_FRAC
]
=
ctrl
->
tstamp
.
bins
;
return
0
;
}
...
...
kernel/ft-zio.c
View file @
8ebd71c4
...
...
@@ -48,14 +48,14 @@ static struct zio_attribute ft_zattr_dev[] = {
/* Extended attributes for the TDC (== input) cset */
static
struct
zio_attribute
ft_zattr_input
[]
=
{
ZIO_ATTR_EXT
(
"seconds"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_SECONDS
,
0
),
ZIO_ATTR_EXT
(
"coarse"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_COARSE
,
0
),
ZIO_ATTR_EXT
(
"frac"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_FRAC
,
0
),
ZIO_ATTR_EXT
(
"termination"
,
ZIO_RW_PERM
,
FT_ATTR_TDC_TERMINATION
,
0
),
ZIO_ATTR_EXT
(
"offset"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"user-offset"
,
ZIO_RW_PERM
,
FT_ATTR_TDC_USER_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"diff-reference"
,
ZIO_RW_PERM
,
FT_ATTR_TDC_DELAY_REF
,
0
),
ZIO_ATTR_EXT
(
"diff-reference-seq"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_DELAY_REF_SEQ
,
0
),
ZIO_PARAM_EXT
(
"last_seconds"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_SECONDS
,
0
),
ZIO_PARAM_EXT
(
"last_coarse"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_COARSE
,
0
),
ZIO_PARAM_EXT
(
"last_frac"
,
ZIO_RO_PERM
,
FT_ATTR_TDC_FRAC
,
0
),
};
/* This identifies if our "struct device" is device, input, output */
...
...
@@ -105,6 +105,16 @@ static int ft_zio_info_channel(struct device *dev, struct zio_attribute *zattr,
case
FT_ATTR_TDC_DELAY_REF
:
*
usr_val
=
st
->
delay_reference
;
break
;
/* Parameters */
case
FT_ATTR_TDC_SECONDS
:
*
usr_val
=
st
->
last_ts
.
seconds
;
break
;
case
FT_ATTR_TDC_COARSE
:
*
usr_val
=
st
->
last_ts
.
coarse
;
break
;
case
FT_ATTR_TDC_FRAC
:
*
usr_val
=
st
->
last_ts
.
frac
;
break
;
}
return
0
;
...
...
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