aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-08-27 02:33:42 -0400
committerDavid S. Miller <davem@davemloft.net>2008-08-29 05:13:31 -0400
commit63237eeb5ac92d618a0a6055f4b1f65c5d14682b (patch)
tree3d44dea70077557a7543951580447dbb71d00b05 /drivers/net
parent738f2b7b813913e651f39387d007dd961755dee2 (diff)
sparc: Move SBUS DMA attribute interfaces out of asm/sbus.h
This is in preparation for the subsequent asm/sbus.h removal. Also, make these routines take a "struct device" or no arguments, as appropriate. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/myri_sbus.c2
-rw-r--r--drivers/net/sunhme.c14
-rw-r--r--drivers/net/sunqe.c2
3 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/myri_sbus.c b/drivers/net/myri_sbus.c
index 858880b619ce..f2a3ff24de44 100644
--- a/drivers/net/myri_sbus.c
+++ b/drivers/net/myri_sbus.c
@@ -1050,7 +1050,7 @@ static int __devinit myri_ether_init(struct sbus_dev *sdev)
1050 mp->myri_bursts = prom_getintdefault(mp->myri_sdev->bus->prom_node, 1050 mp->myri_bursts = prom_getintdefault(mp->myri_sdev->bus->prom_node,
1051 "burst-sizes", 0x00); 1051 "burst-sizes", 0x00);
1052 1052
1053 if (!sbus_can_burst64(sdev)) 1053 if (!sbus_can_burst64())
1054 mp->myri_bursts &= ~(DMA_BURST64); 1054 mp->myri_bursts &= ~(DMA_BURST64);
1055 1055
1056 DET(("MYRI bursts %02x\n", mp->myri_bursts)); 1056 DET(("MYRI bursts %02x\n", mp->myri_bursts));
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index 69cc77192961..d15da947c56a 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -1575,7 +1575,7 @@ static int happy_meal_init(struct happy_meal *hp)
1575 if ((hp->happy_bursts & DMA_BURST64) && 1575 if ((hp->happy_bursts & DMA_BURST64) &&
1576 ((hp->happy_flags & HFLAG_PCI) != 0 1576 ((hp->happy_flags & HFLAG_PCI) != 0
1577#ifdef CONFIG_SBUS 1577#ifdef CONFIG_SBUS
1578 || sbus_can_burst64(hp->happy_dev) 1578 || sbus_can_burst64()
1579#endif 1579#endif
1580 || 0)) { 1580 || 0)) {
1581 u32 gcfg = GREG_CFG_BURST64; 1581 u32 gcfg = GREG_CFG_BURST64;
@@ -1585,11 +1585,13 @@ static int happy_meal_init(struct happy_meal *hp)
1585 * do not. -DaveM 1585 * do not. -DaveM
1586 */ 1586 */
1587#ifdef CONFIG_SBUS 1587#ifdef CONFIG_SBUS
1588 if ((hp->happy_flags & HFLAG_PCI) == 0 && 1588 if ((hp->happy_flags & HFLAG_PCI) == 0) {
1589 sbus_can_dma_64bit(hp->happy_dev)) { 1589 struct sbus_dev *sdev = hp->happy_dev;
1590 sbus_set_sbus64(hp->happy_dev, 1590 if (sbus_can_dma_64bit()) {
1591 hp->happy_bursts); 1591 sbus_set_sbus64(&sdev->ofdev.dev,
1592 gcfg |= GREG_CFG_64BIT; 1592 hp->happy_bursts);
1593 gcfg |= GREG_CFG_64BIT;
1594 }
1593 } 1595 }
1594#endif 1596#endif
1595 1597
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c
index 66f66ee8ca63..4521972fbf3d 100644
--- a/drivers/net/sunqe.c
+++ b/drivers/net/sunqe.c
@@ -722,7 +722,7 @@ static inline void qec_init_once(struct sunqec *qecp, struct sbus_dev *qsdev)
722{ 722{
723 u8 bsizes = qecp->qec_bursts; 723 u8 bsizes = qecp->qec_bursts;
724 724
725 if (sbus_can_burst64(qsdev) && (bsizes & DMA_BURST64)) { 725 if (sbus_can_burst64() && (bsizes & DMA_BURST64)) {
726 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL); 726 sbus_writel(GLOB_CTRL_B64, qecp->gregs + GLOB_CTRL);
727 } else if (bsizes & DMA_BURST32) { 727 } else if (bsizes & DMA_BURST32) {
728 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL); 728 sbus_writel(GLOB_CTRL_B32, qecp->gregs + GLOB_CTRL);