Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Commits
5db34069
Commit
5db34069
authored
Jun 20, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readability improvements
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
e3a2a35a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec-core.c
software/kernel/spec-core.c
+7
-1
No files found.
software/kernel/spec-core.c
View file @
5db34069
...
...
@@ -28,6 +28,7 @@ static char *spec_fw_name_150t = "spec-golden-150T.bin";
char
*
spec_fw_name
=
""
;
module_param_named
(
fw_name
,
spec_fw_name
,
charp
,
0444
);
static
struct
gn412x_platform_data
gn412x_gpio_pdata
=
{
.
int_cfg
=
0
,
};
...
...
@@ -49,6 +50,7 @@ static struct resource gn412x_gpio_res[] = {
enum
spec_mfd_enum
{
SPEC_MFD_GN412X_GPIO
=
0
,
};
static
const
struct
mfd_cell
spec_mfd_devs
[]
=
{
[
SPEC_MFD_GN412X_GPIO
]
=
{
.
name
=
"gn412x-gpio"
,
...
...
@@ -59,6 +61,7 @@ static const struct mfd_cell spec_mfd_devs[] = {
},
};
/**
* Return the SPEC defult FPGA firmware name based on PCI ID
* @spec: SPEC device
...
...
@@ -98,7 +101,7 @@ static int spec_fw_load(struct spec_dev *spec, const char *name)
err
=
spec_core_fpga_exit
(
spec
);
if
(
err
)
{
dev_err
(
&
spec
->
dev
,
"Cannot remove FPGA device instances.
Remove them manually and reload SPEC
device instance
\n
"
);
"Cannot remove FPGA device instances.
Try to remove them manually and to reload this
device instance
\n
"
);
return
err
;
}
...
...
@@ -133,6 +136,9 @@ static int spec_uevent(struct device *dev, struct kobj_uevent_env *env)
return
0
;
}
/**
* Load golden bitstream on FGPA
*/
static
ssize_t
load_golden_fpga_store
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
...
...
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