Commit e24fbdd1 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk Committed by Adam Wujek

kernel/wr_nic: add NIC_MEM_BASE definition instead of obsolete MEM from wbgen

parent 41b6e7c5
......@@ -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",
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment