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
4ad2a5af
Commit
4ad2a5af
authored
Aug 16, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: add zdev to spec_fa
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
1b457ecf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
fa-zio-drv.c
fa-zio-drv.c
+4
-0
fa-zio-trg.c
fa-zio-trg.c
+3
-2
fmc-adc.h
fmc-adc.h
+1
-0
No files found.
fa-zio-drv.c
View file @
4ad2a5af
...
...
@@ -291,9 +291,13 @@ static int zfad_input_cset(struct zio_cset *cset)
static
int
zfad_zio_probe
(
struct
zio_device
*
zdev
)
{
const
struct
zio_reg_desc
*
reg
;
struct
spec_fa
*
fa
=
zdev
->
priv_d
;
int
i
;
dev_dbg
(
&
zdev
->
head
.
dev
,
"%s:%d"
,
__func__
,
__LINE__
);
/* Save also the pointer to the real zio_device */
fa
->
zdev
=
zdev
;
/* Force stop FSM */
zfa_common_conf_set
(
&
zdev
->
head
.
dev
,
&
zfad_regs
[
ZFA_CTL_FMS_CMD
],
ZFA_STOP
);
...
...
fa-zio-trg.c
View file @
4ad2a5af
...
...
@@ -141,8 +141,9 @@ static const struct zio_sysfs_operations zfat_s_op = {
irqreturn_t
zfadc_irq
(
int
irq
,
void
*
ptr
)
{
struct
zfat_instance
*
zfat
=
ptr
;
struct
spec_fa
*
fa
=
zfat
->
fa
;
struct
fmc_device
*
fmc
=
ptr
;
struct
spec_fa
*
fa
=
fmc_get_drvdata
(
fmc
);
struct
zfat_instance
*
zfat
=
to_zfat_instance
(
fa
->
zdev
->
cset
->
ti
);
uint32_t
irq_status
=
0
,
val
;
zfa_common_info_get
(
&
zfat
->
ti
.
cset
->
head
.
dev
,
...
...
fmc-adc.h
View file @
4ad2a5af
...
...
@@ -25,6 +25,7 @@
struct
spec_fa
{
struct
fmc_device
*
fmc
;
struct
spec_dev
*
spec
;
struct
zio_device
*
zdev
;
struct
zio_device
*
hwzdev
;
struct
sg_table
sgt
;
/* scatter/gather table */
...
...
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