aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2014-06-04 23:01:22 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-05 18:14:21 -0400
commit78c8dbb6524c92f28ea56a09ce3960b435d8ed92 (patch)
tree85a91e119688c9c63526b1932a73ffd87afa9691
parent1cff389ddbc4af34edb3bf20c9fe847d84b1b883 (diff)
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>
-rw-r--r--drivers/net/ethernet/amd/hplance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/amd/hplance.c b/drivers/net/ethernet/amd/hplance.c
index 47ce57c2c893..6c9de117ffc6 100644
--- a/drivers/net/ethernet/amd/hplance.c
+++ b/drivers/net/ethernet/amd/hplance.c
@@ -27,9 +27,9 @@
27 27
28#include "hplance.h" 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 * an upper limit on the number of buffers we can use. NetBSD uses 8 Rx 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#define LANCE_LOG_TX_BUFFERS 1 34#define LANCE_LOG_TX_BUFFERS 1
35#define LANCE_LOG_RX_BUFFERS 3 35#define LANCE_LOG_RX_BUFFERS 3