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
74a67271
Commit
74a67271
authored
Jun 26, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: use shorter names
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
665a656e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
102 deletions
+103
-102
spec-core-fpga.c
software/kernel/spec-core-fpga.c
+97
-96
spec-core.c
software/kernel/spec-core.c
+4
-4
spec.h
software/kernel/spec.h
+2
-2
No files found.
software/kernel/spec-core-fpga.c
View file @
74a67271
This diff is collapsed.
Click to expand it.
software/kernel/spec-core.c
View file @
74a67271
...
...
@@ -119,7 +119,7 @@ int spec_fw_load(struct spec_dev *spec, const char *name)
{
int
err
;
err
=
spec_
core_
fpga_exit
(
spec
);
err
=
spec_fpga_exit
(
spec
);
if
(
err
)
{
dev_err
(
&
spec
->
dev
,
"Cannot remove FPGA device instances. Try to remove them manually and to reload this device instance
\n
"
);
...
...
@@ -133,7 +133,7 @@ int spec_fw_load(struct spec_dev *spec, const char *name)
if
(
err
)
goto
out
;
err
=
spec_
core_
fpga_init
(
spec
);
err
=
spec_fpga_init
(
spec
);
if
(
err
)
dev_warn
(
&
spec
->
dev
,
"FPGA incorrectly programmed
\n
"
);
...
...
@@ -248,7 +248,7 @@ static int spec_probe(struct pci_dev *pdev,
if
(
err
)
goto
err_sgpio
;
err
=
spec_
core_
fpga_init
(
spec
);
err
=
spec_fpga_init
(
spec
);
if
(
err
)
dev_warn
(
&
spec
->
dev
,
"FPGA incorrectly programmed or empty
\n
"
);
...
...
@@ -280,7 +280,7 @@ static void spec_remove(struct pci_dev *pdev)
int
i
;
spec_dbg_exit
(
spec
);
spec_
core_
fpga_exit
(
spec
);
spec_fpga_exit
(
spec
);
spec_gpio_exit
(
spec
);
mfd_remove_devices
(
&
spec
->
dev
);
...
...
software/kernel/spec.h
View file @
74a67271
...
...
@@ -193,7 +193,7 @@ extern void spec_gpio_fpga_select(struct spec_dev *spec,
extern
int
spec_gpio_init
(
struct
spec_dev
*
spec
);
extern
void
spec_gpio_exit
(
struct
spec_dev
*
spec
);
extern
int
spec_
core_
fpga_init
(
struct
spec_dev
*
spec
);
extern
int
spec_
core_
fpga_exit
(
struct
spec_dev
*
spec
);
extern
int
spec_fpga_init
(
struct
spec_dev
*
spec
);
extern
int
spec_fpga_exit
(
struct
spec_dev
*
spec
);
#endif
/* __SPEC_H__ */
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