Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
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 - Software
Commits
b57f577c
Commit
b57f577c
authored
Nov 03, 2014
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic: write MAC to FPGA only for switch
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
7b4ef3b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
nic-core.c
kernel/wr_nic/nic-core.c
+8
-0
No files found.
kernel/wr_nic/nic-core.c
View file @
b57f577c
...
...
@@ -41,6 +41,14 @@ static int wrn_open(struct net_device *dev)
if
(
!
is_valid_ether_addr
(
dev
->
dev_addr
))
return
-
EADDRNOTAVAIL
;
if
(
WR_IS_SWITCH
)
{
/* MACH gets the first two bytes, MACL the rest */
val
=
get_unaligned_be16
(
dev
->
dev_addr
);
writel
(
val
,
&
ep
->
ep_regs
->
MACH
);
val
=
get_unaligned_be32
(
dev
->
dev_addr
+
2
);
writel
(
val
,
&
ep
->
ep_regs
->
MACL
);
}
/* Mark it as down, and start the ep-specific polling timer */
clear_bit
(
WRN_EP_UP
,
&
ep
->
ep_flags
);
wrn_ep_open
(
dev
);
...
...
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