Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
White Rabbit Network Interface Card
Commits
e711ec38
Commit
e711ec38
authored
Aug 03, 2016
by
Grzegorz Daniluk
Committed by
Miguel Jimenez Lopez
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/wr_nic: add NIC_MEM_BASE definition instead of obsolete MEM from wbgen
parent
ccff2025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
device.c
kernel/wr_nic/device.c
+1
-1
nic-mem.h
kernel/wr_nic/nic-mem.h
+3
-0
No files found.
kernel/wr_nic/device.c
View file @
e711ec38
...
...
@@ -139,7 +139,7 @@ static int wrn_probe(struct platform_device *pdev)
wrn
->
ppsg_regs
=
wrn
->
bases
[
WRN_FB_PPSG
];
wrn
->
txd
=
((
void
*
)
wrn
->
regs
)
+
0x80
;
/* was: TX1_D1 */
wrn
->
rxd
=
((
void
*
)
wrn
->
regs
)
+
0x100
;
/* was: RX1_D1 */
wrn
->
databuf
=
(
void
*
)
wrn
->
regs
+
offsetof
(
struct
NIC_WB
,
MEM
)
;
wrn
->
databuf
=
(
void
*
)
wrn
->
regs
+
NIC_MEM_BASE
;
tasklet_init
(
&
wrn
->
rx_tlet
,
wrn_rx_interrupt
,
(
unsigned
long
)
wrn
);
if
(
0
)
printk
(
"regs %p, txd %p, rxd %p, buffer %p
\n
"
,
...
...
kernel/wr_nic/nic-mem.h
View file @
e711ec38
...
...
@@ -11,6 +11,9 @@
#include "wr-nic.h"
#include <asm/unaligned.h>
#define NIC_MEM_BASE 0x8000
/* byte addressing of wb_in.adr(13) that in HDL
* selects between WB registers and nic_buffer */
/* Descriptor direction, used to locate descriptror data memory */
enum
wrn_ddir
{
WRN_DDIR_RX
,
...
...
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