Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hplance: fix ram size in comment

drivers/net/ethernet/amd/hplance.h:
#define HPLANCE_MEMOFF 0x8000 /* struct lance_init_block */
#define HPLANCE_NVRAMOFF 0xC008 /* etheraddress as one *nibble* per byte */

The offset of RAM start is 0x8000, the offset of RAM end is 0xC008,
so the RAM size is 16392 bytes.

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Amos Kong and committed by
David S. Miller
78c8dbb6 1cff389d

+2 -2
+2 -2
drivers/net/ethernet/amd/hplance.c
··· 27 27 28 28 #include "hplance.h" 29 29 30 - /* We have 16834 bytes of RAM for the init block and buffers. This places 30 + /* We have 16392 bytes of RAM for the init block and buffers. This places 31 31 * an upper limit on the number of buffers we can use. NetBSD uses 8 Rx 32 - * buffers and 2 Tx buffers. 32 + * buffers and 2 Tx buffers, it takes (8 + 2) * 1544 bytes. 33 33 */ 34 34 #define LANCE_LOG_TX_BUFFERS 1 35 35 #define LANCE_LOG_RX_BUFFERS 3