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
ee1d4096
Commit
ee1d4096
authored
Oct 02, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: add reset acam attribute
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
1fba8b50
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 @
ee1d4096
...
...
@@ -46,6 +46,8 @@ static struct zio_attribute tdc_zattr_dev[] = {
ZATTR_EXT_REG
(
"lun"
,
S_IRUGO
,
TDC_ATTR_DEV_LUN
,
1
),
ZATTR_EXT_REG
(
"clear_dacapo_flag"
,
_RW_
,
TDC_ATTR_DEV_CLEAR_DACAPO_FLAG
,
0
),
ZATTR_EXT_REG
(
"reset_acam"
,
_RW_
,
TDC_ATTR_DEV_RESET_ACAM
,
0
),
};
static
struct
zio_cset
tdc_cset
[]
=
{
...
...
@@ -151,6 +153,10 @@ static int tdc_zio_conf_set(struct device *dev,
case
TDC_ATTR_DEV_CLEAR_DACAPO_FLAG
:
tdc_clear_da_capo_flag
(
tdc
);
break
;
case
TDC_ATTR_DEV_RESET_ACAM
:
tdc_acam_set_default_config
(
tdc
);
tdc_acam_reset
(
tdc
);
break
;
default:
return
-
EINVAL
;
}
...
...
drivers/tdc.h
View file @
ee1d4096
...
...
@@ -49,6 +49,7 @@ enum tdc_zattr_dev_idx {
TDC_ATTR_DEV_GET_POINTER
,
TDC_ATTR_DEV_LUN
,
TDC_ATTR_DEV_CLEAR_DACAPO_FLAG
,
TDC_ATTR_DEV_RESET_ACAM
,
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