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
30fbf266
Commit
30fbf266
authored
4 years ago
by
qzhou
Browse files
Options
Downloads
Patches
Plain Diff
fix commit bug in regconfig.cpp
parent
7639228f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Pcie40Applications/regconfig.cpp
+1
-40
1 addition, 40 deletions
Pcie40Applications/regconfig.cpp
with
1 addition
and
40 deletions
Pcie40Applications/regconfig.cpp
+
1
−
40
View file @
30fbf266
...
...
@@ -348,7 +348,7 @@ int main(int argc, char** argv){
pcie40reg_t
pcie40
;
int
result
=
-
1
;
<<<<<<<
HEAD
if
(
PCIE40_REG
&&
READ_ONLY
){
result
=
ecs_read
(
dev_slot
,
SLC_BAR
,
addr
);
printf
(
"reg%08x = %08x
\n
"
,
addr
,
result
);
...
...
@@ -392,46 +392,7 @@ int main(int argc, char** argv){
}
else
{
printf
(
"ERROR: b2link-%02d is down or not ready
\n
"
,
ch
);
}
=======
if
(
pcie40_b2l_status
(
dev_slot
,
ch
)
&&
pcie40_b2l_rxready
(
dev_slot
,
ch
)
&&
pcie40_b2l_txready
(
dev_slot
,
ch
)){
if
(
USE_FEE8
&&
READ_ONLY
){
result
=
pcie40_readfee8
(
dev_slot
,
ch
,
addr
);
printf
(
"reg%04x = %08x
\n
"
,
addr
,
result
);
}
else
if
(
USE_FEE8
&&
WRITE
){
result
=
pcie40_writefee8
(
dev_slot
,
ch
,
addr
,
data
);
if
(
result
==
0
)
printf
(
"Write 0x%04x to register 0x%04x
\n
"
,
data
,
addr
);
else
printf
(
"ERROR: Failed to write 0x%04x to register 0x%04x
\n
"
,
data
,
addr
);
}
else
if
(
USE_FEE32
&&
READ_ONLY
){
result
=
pcie40_readfee32
(
dev_slot
,
ch
,
addr
);
printf
(
"reg%04x = %08x
\n
"
,
addr
,
result
);
}
else
if
(
USE_FEE32
&&
WRITE
){
result
=
pcie40_writefee32
(
dev_slot
,
ch
,
addr
,
data
);
if
(
result
==
0
)
printf
(
"Write 0x%08x to register 0x%04x
\n
"
,
data
,
addr
);
else
printf
(
"ERROR: Failed to write 0x%08x to register %04x
\n
"
,
data
,
addr
);
}
else
if
(
STREAM
){
if
(
STREAM_ARICH
)
result
=
pcie40_writestream_arich
(
dev_slot
,
ch
,
filename
)
;
else
result
=
pcie40_writestream_klm
(
dev_slot
,
ch
,
filename
)
;
if
(
result
==
0
)
std
::
cerr
<<
"Succeed streaming file: "
<<
filename
<<
std
::
endl
;
else
std
::
cerr
<<
"ERROR: Failed streaming file: "
<<
filename
<<
std
::
endl
;
}
//This is only frame for register operation in the furture
if
(
OP_FLAG
){
unsigned
int
op_addr
=
hsreg
(
operation
);
pcie40_op
(
dev_slot
,
ch
,
op_addr
,
addr
,
data
);
}
}
else
{
printf
(
"ERROR: b2link-%02d is down or not ready
\n
"
,
ch
);
}
>>>>>>>
8159e3177249
eb1433db0b01707bd77ba8b09f0d
// close pcie40 device driver for current process
ecs_close
(
dev_slot
,
SLC_BAR
)
;
...
...
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