Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 PCIe FMC carrier SPEC - Software
Commits
955e5f05
Commit
955e5f05
authored
Jan 20, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary commit
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
04ec4bf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
spec-fmc.c
kernel/spec-fmc.c
+2
-0
spec-ual.c
kernel/spec-ual.c
+7
-1
No files found.
kernel/spec-fmc.c
View file @
955e5f05
...
@@ -84,7 +84,9 @@ static int spec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
...
@@ -84,7 +84,9 @@ static int spec_reprogram(struct fmc_device *fmc, struct fmc_driver *drv,
out:
out:
release_firmware
(
fw
);
release_firmware
(
fw
);
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
spec_ual_sdb_info
(
spec
);
spec_ual_sdb_info
(
spec
);
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
return
ret
;
return
ret
;
}
}
...
...
kernel/spec-ual.c
View file @
955e5f05
...
@@ -20,14 +20,18 @@ void spec_ual_sdb_info(struct spec_dev *spec)
...
@@ -20,14 +20,18 @@ void spec_ual_sdb_info(struct spec_dev *spec)
{
{
int
err
;
int
err
;
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
fmc_free_sdb_tree
(
spec
->
fmc
);
fmc_free_sdb_tree
(
spec
->
fmc
);
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
err
=
fmc_scan_sdb_tree
(
spec
->
fmc
,
0
);
err
=
fmc_scan_sdb_tree
(
spec
->
fmc
,
0
);
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
if
(
err
)
{
if
(
err
)
{
dev_err
(
&
spec
->
pdev
->
dev
,
"Cannot scan SDB: err %d
\n
"
,
err
);
dev_err
(
&
spec
->
pdev
->
dev
,
"Cannot scan SDB: err %d
\n
"
,
err
);
return
;
return
;
}
}
fmc_show_sdb_tree
(
spec
->
fmc
);
fmc_show_sdb_tree
(
spec
->
fmc
);
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
if
(
!
spec
->
ual
)
if
(
!
spec
->
ual
)
return
;
return
;
...
@@ -42,6 +46,8 @@ void spec_ual_sdb_info(struct spec_dev *spec)
...
@@ -42,6 +46,8 @@ void spec_ual_sdb_info(struct spec_dev *spec)
"GNCORE DMA component is not part of the bitstream
\n
"
);
"GNCORE DMA component is not part of the bitstream
\n
"
);
spec
->
priv_dma
=
NULL
;
spec
->
priv_dma
=
NULL
;
}
}
spec
->
ual
->
tree
=
spec
->
fmc
->
sdb
;
pr_info
(
"%s:%d %p
\n
"
,
__func__
,
__LINE__
,
spec
,
spec
->
priv_dma
);
}
}
static
int
spec_ual_create
(
struct
ual
*
ual
)
static
int
spec_ual_create
(
struct
ual
*
ual
)
...
@@ -111,7 +117,7 @@ static int spec_fmc_reload(struct spec_dev *spec)
...
@@ -111,7 +117,7 @@ static int spec_fmc_reload(struct spec_dev *spec)
err
=
spec_load_fpga_file
(
spec
,
spec_fw_name
);
err
=
spec_load_fpga_file
(
spec
,
spec_fw_name
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
dev_info
(
&
spec
->
pdev
->
dev
,
"%s
\n
"
,
__func__
);
/* Create a new FMC device */
/* Create a new FMC device */
return
spec_fmc_create
(
spec
);
return
spec_fmc_create
(
spec
);
}
}
...
...
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