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
21bd1ad5
Commit
21bd1ad5
authored
Jan 28, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: temperature is a parameter
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d8e2d330
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
fmc-tdc.h
kernel/fmc-tdc.h
+4
-1
ft-zio.c
kernel/ft-zio.c
+2
-2
No files found.
kernel/fmc-tdc.h
View file @
21bd1ad5
...
...
@@ -32,7 +32,6 @@ enum ft_zattr_dev_idx {
FT_ATTR_DEV_COARSE
,
FT_ATTR_DEV_SEQUENCE
,
FT_ATTR_DEV_COMMAND
,
/* see below for commands */
FT_ATTR_DEV_TEMP
,
FT_ATTR_DEV_ENABLE_INPUTS
,
FT_ATTR_DEV_RESERVE_7
,
FT_ATTR_DEV__LAST
,
...
...
@@ -49,6 +48,10 @@ enum ft_zattr_in_idx {
FT_ATTR_TDC__LAST
,
};
enum
ft_zattr_paremeters
{
FT_ATTR_PARAM_TEMP
=
FT_ATTR_TDC__LAST
,
};
enum
ft_command
{
FT_CMD_WR_ENABLE
=
0
,
/* Enable White Rabbit */
FT_CMD_WR_DISABLE
,
/* Disable it */
...
...
kernel/ft-zio.c
View file @
21bd1ad5
...
...
@@ -43,7 +43,7 @@ static struct zio_attribute ft_zattr_dev[] = {
ZIO_ATTR_EXT
(
"command"
,
ZIO_WO_PERM
,
FT_ATTR_DEV_COMMAND
,
0
),
ZIO_ATTR_EXT
(
"enable_inputs"
,
ZIO_RW_PERM
,
FT_ATTR_DEV_ENABLE_INPUTS
,
0
),
ZIO_ATTR_EXT
(
"sequence"
,
ZIO_RW_PERM
,
FT_ATTR_DEV_SEQUENCE
,
0
),
ZIO_PARAM_EXT
(
"temperature"
,
ZIO_RO_PERM
,
FT_ATTR_
DEV_TEMP
,
0
)
ZIO_PARAM_EXT
(
"temperature"
,
ZIO_RO_PERM
,
FT_ATTR_
PARAM_TEMP
,
0
),
};
/* Extended attributes for the TDC (== input) cset */
...
...
@@ -124,7 +124,7 @@ static int ft_zio_info_get(struct device *dev, struct zio_attribute *zattr,
case
FT_ATTR_DEV_SEQUENCE
:
*
usr_val
=
ft
->
sequence
;
break
;
case
FT_ATTR_
DEV
_TEMP
:
case
FT_ATTR_
PARAM
_TEMP
:
ft_read_temp
(
ft
,
ft
->
verbose
);
*
usr_val
=
ft
->
temp
;
break
;
...
...
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