diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:01 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:01 +0200 |
commit | 36a60cf92b09d94ac0a38d1e441dca791624e9e2 (patch) | |
tree | e01bdf6d7084c5e95f900bc4fc16da5dd5275801 /drivers | |
parent | f1b8cfbd1d0c0a5254435f882cd4eaa5eac23ead (diff) | |
download | barebox-36a60cf92b09d94ac0a38d1e441dca791624e9e2.tar.gz barebox-36a60cf92b09d94ac0a38d1e441dca791624e9e2.tar.xz |
svn_rev_526
CFG_CACHELINESIZE -> CONFIG_CACHELINE_SIZE
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/4xx_enet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c index 5183eeaf5e..f8284093e0 100644 --- a/drivers/net/4xx_enet.c +++ b/drivers/net/4xx_enet.c @@ -723,13 +723,13 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis) */ hw_p->alloc_tx_buf = (mal_desc_t *) malloc ((sizeof (mal_desc_t) * NUM_TX_BUFF) + - ((2 * CFG_CACHELINE_SIZE) - 2)); + ((2 * CONFIG_CACHELINE_SIZE) - 2)); if (NULL == hw_p->alloc_tx_buf) return -1; if (((int) hw_p->alloc_tx_buf & CACHELINE_MASK) != 0) { hw_p->tx = (mal_desc_t *) ((int) hw_p->alloc_tx_buf + - CFG_CACHELINE_SIZE - + CONFIG_CACHELINE_SIZE - ((int) hw_p-> alloc_tx_buf & CACHELINE_MASK)); } else { @@ -738,7 +738,7 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis) hw_p->alloc_rx_buf = (mal_desc_t *) malloc ((sizeof (mal_desc_t) * NUM_RX_BUFF) + - ((2 * CFG_CACHELINE_SIZE) - 2)); + ((2 * CONFIG_CACHELINE_SIZE) - 2)); if (NULL == hw_p->alloc_rx_buf) { free(hw_p->alloc_tx_buf); hw_p->alloc_tx_buf = NULL; @@ -748,7 +748,7 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis) if (((int) hw_p->alloc_rx_buf & CACHELINE_MASK) != 0) { hw_p->rx = (mal_desc_t *) ((int) hw_p->alloc_rx_buf + - CFG_CACHELINE_SIZE - + CONFIG_CACHELINE_SIZE - ((int) hw_p-> alloc_rx_buf & CACHELINE_MASK)); } else { |