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
57ef1901
Commit
57ef1901
authored
Sep 13, 2012
by
igalia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: added get_wr_pointer attribute to check the board
parent
104d5318
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
tdc-zio.c
drivers/tdc-zio.c
+6
-0
tdc.h
drivers/tdc.h
+1
-0
No files found.
drivers/tdc-zio.c
View file @
57ef1901
...
...
@@ -41,6 +41,8 @@ static struct zio_attribute tdc_zattr_dev[] = {
ZATTR_EXT_REG
(
"dac_word"
,
_RW_
,
TDC_ATTR_DEV_DAC_WORD
,
0
),
ZATTR_EXT_REG
(
"activate_acquisition"
,
_RW_
,
TDC_ATTR_DEV_ACTIVATE_ACQUISITION
,
0
),
ZATTR_EXT_REG
(
"get_wr_pointer"
,
_RW_
,
TDC_ATTR_DEV_GET_POINTER
,
0
),
};
...
...
@@ -185,6 +187,10 @@ static int tdc_zio_info_get(struct device *dev,
case
TDC_ATTR_DEV_ACTIVATE_ACQUISITION
:
*
usr_val
=
atomic_read
(
&
tdc
->
busy
);
break
;
case
TDC_ATTR_DEV_GET_POINTER
:
*
usr_val
=
tdc_get_circular_buffer_wr_pointer
(
tdc
);
break
;
default:
return
-
EINVAL
;
}
...
...
drivers/tdc.h
View file @
57ef1901
...
...
@@ -46,6 +46,7 @@ enum tdc_zattr_dev_idx {
TDC_ATTR_DEV_INPUT_ENABLED
,
TDC_ATTR_DEV_DAC_WORD
,
TDC_ATTR_DEV_ACTIVATE_ACQUISITION
,
TDC_ATTR_DEV_GET_POINTER
,
TDC_ATTR_DEV__LAST
,
};
...
...
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