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
46d07c47
Commit
46d07c47
authored
Apr 24, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: use only fmc helpers
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d25a1ff9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ft-core.c
kernel/ft-core.c
+1
-1
ft-irq.c
kernel/ft-irq.c
+4
-4
No files found.
kernel/ft-core.c
View file @
46d07c47
...
...
@@ -148,7 +148,7 @@ int ft_probe(struct fmc_device *fmc)
return
-
ENOMEM
;
}
index
=
fmc
->
op
->
validate
(
fmc
,
&
ft_drv
);
index
=
fmc
_
validate
(
fmc
,
&
ft_drv
);
if
(
index
<
0
)
{
dev_info
(
dev
,
"not using
\"
%s
\"
according to modparam
\n
"
,
KBUILD_MODNAME
);
...
...
kernel/ft-irq.c
View file @
46d07c47
...
...
@@ -321,7 +321,7 @@ irq:
goto
irq
;
/* Ack the FMC signal, we have finished */
fmc
->
op
->
irq_ack
(
fmc
);
fmc
_
irq_ack
(
fmc
);
return
IRQ_HANDLED
;
}
...
...
@@ -342,7 +342,7 @@ int ft_irq_init(struct fmctdc_dev *ft)
/* fixme: vector table points to the bridge instead of
the core's base address */
ft
->
fmc
->
irq
=
ft
->
ft_irq_base
;
ret
=
f
t
->
fmc
->
op
->
irq_request
(
ft
->
fmc
,
ft_irq_handler
,
"fmc-tdc"
,
0
);
ret
=
f
mc_
irq_request
(
ft
->
fmc
,
ft_irq_handler
,
"fmc-tdc"
,
0
);
if
(
ret
<
0
)
{
dev_err
(
&
ft
->
fmc
->
dev
,
"Request interrupt failed: %d
\n
"
,
ret
);
...
...
@@ -350,7 +350,7 @@ int ft_irq_init(struct fmctdc_dev *ft)
}
/* kick off the interrupts (fixme: possible issue with the HDL) */
f
t
->
fmc
->
op
->
irq_ack
(
ft
->
fmc
);
f
mc_
irq_ack
(
ft
->
fmc
);
return
0
;
}
...
...
@@ -358,5 +358,5 @@ int ft_irq_init(struct fmctdc_dev *ft)
void
ft_irq_exit
(
struct
fmctdc_dev
*
ft
)
{
fmc_writel
(
ft
->
fmc
,
~
0
,
ft
->
ft_irq_base
+
TDC_REG_EIC_IDR
);
f
t
->
fmc
->
op
->
irq_free
(
ft
->
fmc
);
f
mc_
irq_free
(
ft
->
fmc
);
}
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