Commit 58f34098 authored by Jiangfeng Xiao's avatar Jiangfeng Xiao Committed by David S. Miller

net: hisilicon: Add an rx_desc to adapt HI13X1_GMAC

HI13X1 changed the offsets and bitmaps for rx_desc
registers in the same peripheral device on different
models of the hip04_eth.
Signed-off-by: default avatarJiangfeng Xiao <xiaojiangfeng@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b9162d20
......@@ -171,11 +171,20 @@ struct tx_desc {
} __aligned(64);
struct rx_desc {
#if defined(CONFIG_HI13X1_GMAC)
u32 reserved1[3];
u16 pkt_len;
u16 reserved_16;
u32 reserved2[6];
u32 pkt_err;
u32 reserved3[5];
#else
u16 reserved_16;
u16 pkt_len;
u32 reserve1[3];
u32 pkt_err;
u32 reserve2[4];
#endif
};
struct hip04_priv {
......
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