Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Projects
FPGA Configuration Space
Commits
d20186bc
Commit
d20186bc
authored
13 years ago
by
Manohar Vanga
Browse files
Options
Downloads
Patches
Plain Diff
simulation: change spec_vendor name format to %04x
Signed-off-by:
Manohar Vanga
<
manohar.vanga@cern.ch
>
parent
968318ce
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
simulation/README
+2
-2
2 additions, 2 deletions
simulation/README
simulation/fake_wb_bus.c
+1
-1
1 addition, 1 deletion
simulation/fake_wb_bus.c
with
3 additions
and
3 deletions
simulation/README
+
2
−
2
View file @
d20186bc
...
...
@@ -43,7 +43,7 @@ firmware file. The firmware file name is formatted as fakespec-VVVVVVVV-DDDD,
where V is vendor and D is device. The default device and vendor have been
set in the fake bus to 0xbabe, so the default firmware file is:
firmware-
0000
babe-babe
firmware-babe-babe
To change, use the spec_vendor and spec_device module parameters of the fake_wb_bus
driver. Remember to name the firmware to load accordingly.
...
...
@@ -68,4 +68,4 @@ Installing Firmware
The generated firmware file should be 4MB in size. Copy the firmware
file into /lib/firmware/NAME where NAME is as specified above.
$ cp firmware.bin /lib/firmware/firmware-
0000
babe-babe
$ cp firmware.bin /lib/firmware/firmware-babe-babe
This diff is collapsed.
Click to expand it.
simulation/fake_wb_bus.c
+
1
−
1
View file @
d20186bc
...
...
@@ -61,7 +61,7 @@ static int fake_wbbus_probe(struct device *dev)
*
* Below, we just use the PCI id to get the firmware file.
*/
sprintf
(
fwname
,
"fakespec-%0
8
x-%04x"
,
spec_vendor
,
spec_device
);
sprintf
(
fwname
,
"fakespec-%0
4
x-%04x"
,
spec_vendor
,
spec_device
);
if
(
request_firmware
(
&
wb_fw
,
fwname
,
dev
))
{
pr_err
(
KBUILD_MODNAME
": failed to load "
"firmware
\"
%s
\"\n
"
,
fwname
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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