Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmytro Levit
Software
Commits
d0c7662f
Commit
d0c7662f
authored
5 years ago
by
Patrick Robbe
Browse files
Options
Downloads
Patches
Plain Diff
Debug slow control
parent
5c5c1e84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!6
Master
,
!8
6links slc tool
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Pcie40Libraries/pcie40_b2slc.c
+2
-3
2 additions, 3 deletions
Pcie40Libraries/pcie40_b2slc.c
Pcie40Libraries/pcie40_b2slc.h
+2
-2
2 additions, 2 deletions
Pcie40Libraries/pcie40_b2slc.h
with
4 additions
and
5 deletions
Pcie40Libraries/pcie40_b2slc.c
+
2
−
3
View file @
d0c7662f
...
...
@@ -139,7 +139,6 @@ unsigned long pcie40_readfee32( int dev , int fd , int adr ) {
if
(
ret
!=
0
)
return
-
1
;
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_ADD
+
fd
*
0x40
,
(
int
)
(
data_word_2
&
0xFFFFFFFF
)
)
;
if
(
ret
!=
0
)
return
-
1
;
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_ADD
+
fd
*
0x40
,
(
int
)
(
data_word_3
&
0xFFFFFFFF
)
)
;
if
(
ret
!=
0
)
return
-
1
;
...
...
@@ -148,10 +147,10 @@ unsigned long pcie40_readfee32( int dev , int fd , int adr ) {
if
(
ret
!=
0
)
return
-
1
;
// start emit
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_
RESE
T_ADD
,
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_
STAR
T_ADD
,
1
<<
(
SLC_WFIFO_EMIT_BIT
+
fd
)
)
;
if
(
ret
!=
0
)
return
-
1
;
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_
RESE
T_ADD
,
0
)
;
ret
=
ecs_write
(
dev
,
SLC_BAR
,
SLC_WFIFO_
STAR
T_ADD
,
0
)
;
if
(
ret
!=
0
)
return
-
1
;
// Wait for the result to come back
...
...
This diff is collapsed.
Click to expand it.
Pcie40Libraries/pcie40_b2slc.h
+
2
−
2
View file @
d0c7662f
...
...
@@ -11,8 +11,8 @@
#define SLC_WFIFO_START_ADD 0x00050260
#define SLC_WFIFO_EMIT_BIT 0
#define SLC_WFIFO_ADD 0x00060000
#define SLC_RFIFO_STATUS 0x000601
0
0
#define SLC_RFIFO_ADD 0x000601
2
0
#define SLC_RFIFO_STATUS 0x000601
2
0
#define SLC_RFIFO_ADD 0x000601
0
0
// Functions to read/write registers and stream files to Front End
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment