Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
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
FPGA Configuration Space
Commits
8263544c
Commit
8263544c
authored
Apr 19, 2011
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added firmware name generation (based on pci id's)
Signed-off-by:
Manohar Vanga
<
manohar.vanga@gmail.com
>
parent
6977ff13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fakespec.c
spec/fakespec.c
+3
-1
No files found.
spec/fakespec.c
View file @
8263544c
...
...
@@ -26,11 +26,13 @@ static int fake_spec_probe(struct pci_dev *pdev, const struct pci_device_id *ent
int
j
=
0
;
struct
wb_header
*
header
;
const
struct
firmware
*
wb_fw
;
char
fwname
[
64
];
if
(
n
)
return
-
1
;
n
=
1
;
/* load wishbone address map firmware */
if
(
request_firmware
(
&
wb_fw
,
"fakespec"
,
&
pdev
->
dev
))
{
sprintf
(
fwname
,
"fakespec-%04x-%04x"
,
SPEC_VENDOR
,
SPEC_DEVICE
);
if
(
request_firmware
(
&
wb_fw
,
fwname
,
&
pdev
->
dev
))
{
printk
(
KERN_ERR
"failed to load firmware
\n
"
);
return
-
1
;
}
...
...
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