Commit 49fb0b96 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Miguel Jimenez Lopez

wr_nic: NR_ENDPOINTS depends on node or switch

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ecacee31
......@@ -63,7 +63,11 @@ enum fpga_blocks {
};
/* In addition to the above enumeration, we scan for those many endpoints */
#define WRN_NR_ENDPOINTS 18
#if WR_IS_NODE
# define WRN_NR_ENDPOINTS 1
#else
# define WRN_NR_ENDPOINTS 18
#endif
/* 8 tx and 8 rx descriptors */
#define WRN_NR_DESC 8
......
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