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
fad7fd0b
Commit
fad7fd0b
authored
Feb 07, 2013
by
Alessandro Rubini
Committed by
Adam Wujek
Oct 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic: instrument for WR_IS_NODE/WR_IS_SWITCH
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
aed186b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
Makefile
kernel/Makefile
+2
-0
wr-nic.h
kernel/wr_nic/wr-nic.h
+13
-0
No files found.
kernel/Makefile
View file @
fad7fd0b
# This builds ./wr_nic as well, but wr_nic/Makefile is designed for the switch
ccflags-y
+=
-DWR_NODE
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
LINUX
?=
/lib/modules/
$(
shell
uname
-r
)
/build
...
...
kernel/wr_nic/wr-nic.h
View file @
fad7fd0b
...
@@ -25,6 +25,19 @@
...
@@ -25,6 +25,19 @@
#ifdef __KERNEL__
/* The rest is kernel-only */
#ifdef __KERNEL__
/* The rest is kernel-only */
/* The NIC can build for both the switch and the node. Prefer if to ifdef */
#ifdef WR_NODE
# define WR_IS_NODE 1
# define WR_IS_SWITCH 0
#else
# ifndef WR_SWITCH
# error "Please define WR_NODE or WR_SWITCH"
# else
# define WR_IS_NODE 0
# define WR_IS_SWITCH 1
# endif
#endif
#include <linux/interrupt.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/spinlock.h>
#include <linux/mii.h>
/* Needed for stuct mii_if_info in wrn_dev */
#include <linux/mii.h>
/* Needed for stuct mii_if_info in wrn_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