aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunhme.c
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/sunhme.c
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/sunhme.c')
-rw-r--r--drivers/net/sunhme.c14
1 files changed, 8 insertions, 6 deletions
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