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
9b8c9f2d
Commit
9b8c9f2d
authored
Oct 10, 2012
by
Samuel Iglesias Gonsálvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdc: fix error in dacapo_flag calculation
Signed-off-by:
Samuel Iglesias Gonsalvez
<
siglesias@igalia.com
>
parent
832102b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tdc-fmc.c
drivers/tdc-fmc.c
+4
-2
No files found.
drivers/tdc-fmc.c
View file @
9b8c9f2d
...
...
@@ -54,7 +54,8 @@ static void tdc_fmc_fw_reset(struct spec_tdc *tdc)
static
int
tdc_fmc_check_lost_events
(
u32
curr_wr_ptr
,
u32
prev_wr_ptr
,
int
*
count
)
{
u32
dacapo_prev
,
dacapo_curr
,
dacapo_diff
;
u32
dacapo_prev
,
dacapo_curr
;
int
dacapo_diff
,
ptr_diff
=
0
;
dacapo_prev
=
prev_wr_ptr
>>
12
;
dacapo_curr
=
curr_wr_ptr
>>
12
;
...
...
@@ -67,7 +68,8 @@ static int tdc_fmc_check_lost_events(u32 curr_wr_ptr, u32 prev_wr_ptr, int *coun
switch
(
dacapo_diff
)
{
case
1
:
if
((
curr_wr_ptr
-
prev_wr_ptr
)
>
0
)
{
ptr_diff
=
curr_wr_ptr
-
prev_wr_ptr
;
if
(
ptr_diff
>
0
)
{
*
count
=
TDC_EVENT_BUFFER_SIZE
;
return
1
;
/* We lost data */
}
...
...
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