Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e5621545
Commit
e5621545
authored
Jul 05, 2011
by
Ben Hutchings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: Expose FPGA bitfile partition through MTD
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
e3f5ec11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/net/ethernet/sfc/mtd.c
drivers/net/ethernet/sfc/mtd.c
+3
-1
No files found.
drivers/net/ethernet/sfc/mtd.c
View file @
e5621545
...
...
@@ -585,6 +585,7 @@ static const struct siena_nvram_type_info siena_nvram_types[] = {
[
MC_CMD_NVRAM_TYPE_EXP_ROM_CFG_PORT1
]
=
{
1
,
"sfc_exp_rom_cfg"
},
[
MC_CMD_NVRAM_TYPE_PHY_PORT0
]
=
{
0
,
"sfc_phy_fw"
},
[
MC_CMD_NVRAM_TYPE_PHY_PORT1
]
=
{
1
,
"sfc_phy_fw"
},
[
MC_CMD_NVRAM_TYPE_FPGA
]
=
{
0
,
"sfc_fpga"
},
};
static
int
siena_mtd_probe_partition
(
struct
efx_nic
*
efx
,
...
...
@@ -598,7 +599,8 @@ static int siena_mtd_probe_partition(struct efx_nic *efx,
bool
protected
;
int
rc
;
if
(
type
>=
ARRAY_SIZE
(
siena_nvram_types
))
if
(
type
>=
ARRAY_SIZE
(
siena_nvram_types
)
||
siena_nvram_types
[
type
].
name
==
NULL
)
return
-
ENODEV
;
info
=
&
siena_nvram_types
[
type
];
...
...
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