Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
0eecd158
Commit
0eecd158
authored
Jun 24, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: kernel: comment and reorder attrs/params
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0a286a2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
fa-zio-drv.c
kernel/fa-zio-drv.c
+28
-14
No files found.
kernel/fa-zio-drv.c
View file @
0eecd158
...
...
@@ -30,10 +30,20 @@ static int enable_test_data = 0;
module_param
(
enable_test_data
,
int
,
0444
);
/* zio device attributes */
/*
* zio device attributes
*/
static
ZIO_ATTR_DEFINE_STD
(
ZIO_DEV
,
zfad_cset_std_zattr
)
=
{
ZIO_ATTR
(
zdev
,
ZIO_ATTR_NBITS
,
ZIO_RO_PERM
,
ZFA_SW_R_NOADDRES_NBIT
,
14
),
};
/*
* In the following table, "ATTR_EXT" are extended attributes that
* end up in the control structure (i.e. they are metadata for the
* acquisition), while PARAM_EXT are parameters: sysfs files that
* don't end up in the control structure of ZIO blocks
*/
static
struct
zio_attribute
zfad_cset_ext_zattr
[]
=
{
/*
* sample-decimation
...
...
@@ -48,6 +58,23 @@ static struct zio_attribute zfad_cset_ext_zattr[] = {
* 1: start
* 2: stop
*/
ZIO_ATTR_EXT
(
"ch0-offset"
,
ZIO_RW_PERM
,
ZFA_CH1_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch1-offset"
,
ZIO_RW_PERM
,
ZFA_CH2_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch2-offset"
,
ZIO_RW_PERM
,
ZFA_CH3_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch3-offset"
,
ZIO_RW_PERM
,
ZFA_CH4_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch0-vref"
,
ZIO_RW_PERM
,
ZFA_CH1_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch1-vref"
,
ZIO_RW_PERM
,
ZFA_CH2_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch2-vref"
,
ZIO_RW_PERM
,
ZFA_CH3_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch3-vref"
,
ZIO_RW_PERM
,
ZFA_CH4_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch0-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH1_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch1-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH2_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch2-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH3_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch3-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH4_CTL_TERM
,
0
),
/* Parameters (not attributes) follow */
ZIO_PARAM_EXT
(
"fsm-command"
,
ZIO_WO_PERM
,
ZFA_CTL_FMS_CMD
,
0
),
/*
* Automatic start acquisition
...
...
@@ -89,20 +116,7 @@ static struct zio_attribute zfad_cset_ext_zattr[] = {
/* Reset all channel offset */
ZIO_PARAM_EXT
(
"rst-ch-offset"
,
ZIO_WO_PERM
,
ZFA_CTL_DAC_CLR_N
,
1
),
ZIO_ATTR_EXT
(
"ch0-offset"
,
ZIO_RW_PERM
,
ZFA_CH1_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch1-offset"
,
ZIO_RW_PERM
,
ZFA_CH2_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch2-offset"
,
ZIO_RW_PERM
,
ZFA_CH3_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch3-offset"
,
ZIO_RW_PERM
,
ZFA_CH4_OFFSET
,
0
),
ZIO_ATTR_EXT
(
"ch0-vref"
,
ZIO_RW_PERM
,
ZFA_CH1_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch1-vref"
,
ZIO_RW_PERM
,
ZFA_CH2_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch2-vref"
,
ZIO_RW_PERM
,
ZFA_CH3_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch3-vref"
,
ZIO_RW_PERM
,
ZFA_CH4_CTL_RANGE
,
0
),
ZIO_ATTR_EXT
(
"ch0-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH1_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch1-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH2_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch2-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH3_CTL_TERM
,
0
),
ZIO_ATTR_EXT
(
"ch3-50ohm-term"
,
ZIO_RW_PERM
,
ZFA_CH4_CTL_TERM
,
0
),
};
/* FIXME Unused until TLV control will be available */
...
...
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