net: ftmac100: remove unnecessary volatiles
Signed-off-by: Po-Yu Chuang <ratbert@faraday-tech.com> Reviewed-by: Macpaul Lin <macpaul@gmail.com> Tested-by: Macpaul Lin <macpaul@gmail.com>
This commit is contained in:
parent
927d2cea6b
commit
6f6e6e09b2
|
@ -30,8 +30,8 @@
|
||||||
#define ETH_ZLEN 60
|
#define ETH_ZLEN 60
|
||||||
|
|
||||||
struct ftmac100_data {
|
struct ftmac100_data {
|
||||||
volatile struct ftmac100_txdes txdes[1];
|
struct ftmac100_txdes txdes[1];
|
||||||
volatile struct ftmac100_rxdes rxdes[PKTBUFSRX];
|
struct ftmac100_rxdes rxdes[PKTBUFSRX];
|
||||||
int rx_index;
|
int rx_index;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ static int ftmac100_init (struct eth_device *dev, bd_t *bd)
|
||||||
{
|
{
|
||||||
struct ftmac100 *ftmac100 = (struct ftmac100 *)dev->iobase;
|
struct ftmac100 *ftmac100 = (struct ftmac100 *)dev->iobase;
|
||||||
struct ftmac100_data *priv = dev->priv;
|
struct ftmac100_data *priv = dev->priv;
|
||||||
volatile struct ftmac100_txdes *txdes = priv->txdes;
|
struct ftmac100_txdes *txdes = priv->txdes;
|
||||||
volatile struct ftmac100_rxdes *rxdes = priv->rxdes;
|
struct ftmac100_rxdes *rxdes = priv->rxdes;
|
||||||
unsigned int maccr;
|
unsigned int maccr;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ static int ftmac100_init (struct eth_device *dev, bd_t *bd)
|
||||||
static int ftmac100_recv (struct eth_device *dev)
|
static int ftmac100_recv (struct eth_device *dev)
|
||||||
{
|
{
|
||||||
struct ftmac100_data *priv = dev->priv;
|
struct ftmac100_data *priv = dev->priv;
|
||||||
volatile struct ftmac100_rxdes *curr_des;
|
struct ftmac100_rxdes *curr_des;
|
||||||
unsigned short rxlen;
|
unsigned short rxlen;
|
||||||
|
|
||||||
curr_des = &priv->rxdes[priv->rx_index];
|
curr_des = &priv->rxdes[priv->rx_index];
|
||||||
|
@ -195,8 +195,8 @@ ftmac100_send (struct eth_device *dev, volatile void *packet, int length)
|
||||||
{
|
{
|
||||||
struct ftmac100 *ftmac100 = (struct ftmac100 *)dev->iobase;
|
struct ftmac100 *ftmac100 = (struct ftmac100 *)dev->iobase;
|
||||||
struct ftmac100_data *priv = dev->priv;
|
struct ftmac100_data *priv = dev->priv;
|
||||||
volatile struct ftmac100_txdes *curr_des = priv->txdes;
|
|
||||||
int tmo;
|
int tmo;
|
||||||
|
struct ftmac100_txdes *curr_des = priv->txdes;
|
||||||
|
|
||||||
if (curr_des->txdes0 & FTMAC100_TXDES0_TXDMA_OWN) {
|
if (curr_des->txdes0 & FTMAC100_TXDES0_TXDMA_OWN) {
|
||||||
debug ("%s(): no TX descriptor available\n", __func__);
|
debug ("%s(): no TX descriptor available\n", __func__);
|
||||||
|
|
Loading…
Reference in New Issue