diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2016-03-06 12:57:02 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-10 19:19:16 -0800 |
commit | e984c758ec88f9c36a3f49311a842e4abc0d726b (patch) | |
tree | c06b0dd7f8ff2cc7c479bb40bdefd9e4c7fd9a19 /drivers/staging/vt6655/mac.c | |
parent | 4633195295008e565b8142f3e73376b8116dac49 (diff) |
staging: vt6655: mac.c/h resize all unsigned long to u32
All addressing is limited to 32 bits match this to all
functions and port out functions.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/mac.c')
-rw-r--r-- | drivers/staging/vt6655/mac.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index 02e3e42a1cb7..c2723c15dd2f 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -264,17 +264,17 @@ void MACvRestoreContext(struct vnt_private *priv, unsigned char *cxt_buf) /* restore CURR_RX_DESC_ADDR, CURR_TX_DESC_ADDR */ VNSvOutPortD(io_base + MAC_REG_TXDMAPTR0, - *(unsigned long *)(cxt_buf + MAC_REG_TXDMAPTR0)); + *(u32 *)(cxt_buf + MAC_REG_TXDMAPTR0)); VNSvOutPortD(io_base + MAC_REG_AC0DMAPTR, - *(unsigned long *)(cxt_buf + MAC_REG_AC0DMAPTR)); + *(u32 *)(cxt_buf + MAC_REG_AC0DMAPTR)); VNSvOutPortD(io_base + MAC_REG_BCNDMAPTR, - *(unsigned long *)(cxt_buf + MAC_REG_BCNDMAPTR)); + *(u32 *)(cxt_buf + MAC_REG_BCNDMAPTR)); VNSvOutPortD(io_base + MAC_REG_RXDMAPTR0, - *(unsigned long *)(cxt_buf + MAC_REG_RXDMAPTR0)); + *(u32 *)(cxt_buf + MAC_REG_RXDMAPTR0)); VNSvOutPortD(io_base + MAC_REG_RXDMAPTR1, - *(unsigned long *)(cxt_buf + MAC_REG_RXDMAPTR1)); + *(u32 *)(cxt_buf + MAC_REG_RXDMAPTR1)); } /* @@ -557,7 +557,7 @@ void MACvInitialize(struct vnt_private *priv) * Return Value: none * */ -void MACvSetCurrRx0DescAddr(struct vnt_private *priv, unsigned long dwCurrDescAddr) +void MACvSetCurrRx0DescAddr(struct vnt_private *priv, u32 dwCurrDescAddr) { void __iomem *io_base = priv->PortOffset; unsigned short ww; @@ -591,7 +591,7 @@ void MACvSetCurrRx0DescAddr(struct vnt_private *priv, unsigned long dwCurrDescAd * Return Value: none * */ -void MACvSetCurrRx1DescAddr(struct vnt_private *priv, unsigned long dwCurrDescAddr) +void MACvSetCurrRx1DescAddr(struct vnt_private *priv, u32 dwCurrDescAddr) { void __iomem *io_base = priv->PortOffset; unsigned short ww; @@ -627,7 +627,7 @@ void MACvSetCurrRx1DescAddr(struct vnt_private *priv, unsigned long dwCurrDescAd * */ void MACvSetCurrTx0DescAddrEx(struct vnt_private *priv, - unsigned long dwCurrDescAddr) + u32 dwCurrDescAddr) { void __iomem *io_base = priv->PortOffset; unsigned short ww; @@ -663,7 +663,7 @@ void MACvSetCurrTx0DescAddrEx(struct vnt_private *priv, */ /* TxDMA1 = AC0DMA */ void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, - unsigned long dwCurrDescAddr) + u32 dwCurrDescAddr) { void __iomem *io_base = priv->PortOffset; unsigned short ww; @@ -685,7 +685,7 @@ void MACvSetCurrAC0DescAddrEx(struct vnt_private *priv, } void MACvSetCurrTXDescAddr(int iTxType, struct vnt_private *priv, - unsigned long dwCurrDescAddr) + u32 dwCurrDescAddr) { if (iTxType == TYPE_AC0DMA) MACvSetCurrAC0DescAddrEx(priv, dwCurrDescAddr); @@ -753,7 +753,7 @@ void MACvOneShotTimer1MicroSec(struct vnt_private *priv, unsigned int uDelayTime } void MACvSetMISCFifo(struct vnt_private *priv, unsigned short wOffset, - unsigned long dwData) + u32 dwData) { void __iomem *io_base = priv->PortOffset; |