Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - 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
Simple VME FMC Carrier SVEC - Software
Commits
14da9eaa
Commit
14da9eaa
authored
May 22, 2013
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
read vendor and device id in separate variables
parent
0346c21e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
svec-fmc.c
kernel/svec-fmc.c
+5
-3
No files found.
kernel/svec-fmc.c
View file @
14da9eaa
...
...
@@ -149,7 +149,7 @@ static int check_golden(struct fmc_device *fmc)
{
struct
svec_dev
*
svec
=
fmc
->
carrier_data
;
int
ret
;
uint32_t
magic
;
uint32_t
magic
,
vendor
,
device
;
/* poor man's SDB */
magic
=
fmc_readl
(
fmc
,
0x00
);
...
...
@@ -160,11 +160,13 @@ static int check_golden(struct fmc_device *fmc)
if
(
(
ret
=
fmc_scan_sdb_tree
(
fmc
,
0x0
))
<
0
)
return
-
ENODEV
;
if
(
fmc_readl
(
fmc
,
0x5c
)
!=
0x0000ce42
)
{
vendor
=
fmc_readl
(
fmc
,
0x5c
);
if
(
vendor
!=
0x0000ce42
)
{
dev_err
(
svec
->
dev
,
"unsexpected vendor in SDB
\n
"
);
return
-
ENODEV
;
}
if
(
fmc_readl
(
fmc
,
0x60
)
!=
0x676f6c64
)
{
device
=
fmc_readl
(
fmc
,
0x60
);
if
(
device
!=
0x676f6c64
)
{
dev_err
(
svec
->
dev
,
"unexpected device in SDB
\n
"
);
return
-
ENODEV
;
}
...
...
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