Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - Software
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
Simple VME FMC Carrier SVEC - Software
Commits
28431f5d
Commit
28431f5d
authored
Oct 15, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: firmware programming is done by a char device
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
6cd90be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
svec-sysfs.c
kernel/svec-sysfs.c
+0
-19
No files found.
kernel/svec-sysfs.c
View file @
28431f5d
...
...
@@ -129,21 +129,6 @@ ATTR_STORE_CALLBACK(firmware_cmd)
return
count
;
}
ATTR_STORE_CALLBACK
(
firmware_blob
)
{
struct
svec_dev
*
card
=
dev_get_drvdata
(
pdev
);
if
(
!
card
->
fw_buffer
)
return
-
EAGAIN
;
if
(
card
->
fw_length
+
count
-
1
>=
SVEC_MAX_GATEWARE_SIZE
)
return
-
EINVAL
;
memcpy
(
card
->
fw_buffer
+
card
->
fw_length
,
buf
,
count
);
card
->
fw_length
+=
count
;
return
count
;
}
ATTR_SHOW_CALLBACK
(
dummy_attr
)
{
...
...
@@ -424,9 +409,6 @@ static DEVICE_ATTR(firmware_cmd,
S_IWUSR
|
S_IRUGO
,
svec_show_dummy_attr
,
svec_store_firmware_cmd
);
static
DEVICE_ATTR
(
firmware_blob
,
S_IWUSR
|
S_IRUGO
,
svec_show_dummy_attr
,
svec_store_firmware_blob
);
/* Helper attribute to find the physical slot for a given VME LUN. Used by
the userspace tools. */
...
...
@@ -493,7 +475,6 @@ static DEVICE_ATTR(vme_data,
static
struct
attribute
*
svec_attrs
[]
=
{
&
dev_attr_firmware_name
.
attr
,
&
dev_attr_firmware_blob
.
attr
,
&
dev_attr_firmware_cmd
.
attr
,
&
dev_attr_interrupt_vector
.
attr
,
&
dev_attr_interrupt_level
.
attr
,
...
...
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