diff options
-rw-r--r-- | drivers/net/sky2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 8a763f866614..fb841c815b5d 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -984,12 +984,12 @@ static void sky2_qset(struct sky2_hw *hw, u16 q) | |||
984 | * hardware and driver list elements | 984 | * hardware and driver list elements |
985 | */ | 985 | */ |
986 | static void sky2_prefetch_init(struct sky2_hw *hw, u32 qaddr, | 986 | static void sky2_prefetch_init(struct sky2_hw *hw, u32 qaddr, |
987 | u64 addr, u32 last) | 987 | dma_addr_t addr, u32 last) |
988 | { | 988 | { |
989 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_RST_SET); | 989 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_RST_SET); |
990 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_RST_CLR); | 990 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_RST_CLR); |
991 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_ADDR_HI), addr >> 32); | 991 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_ADDR_HI), upper_32_bits(addr)); |
992 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_ADDR_LO), (u32) addr); | 992 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_ADDR_LO), lower_32_bits(addr)); |
993 | sky2_write16(hw, Y2_QADDR(qaddr, PREF_UNIT_LAST_IDX), last); | 993 | sky2_write16(hw, Y2_QADDR(qaddr, PREF_UNIT_LAST_IDX), last); |
994 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_OP_ON); | 994 | sky2_write32(hw, Y2_QADDR(qaddr, PREF_UNIT_CTRL), PREF_UNIT_OP_ON); |
995 | 995 | ||
@@ -1057,7 +1057,7 @@ static void sky2_rx_add(struct sky2_port *sky2, u8 op, | |||
1057 | } | 1057 | } |
1058 | 1058 | ||
1059 | le = sky2_next_rx(sky2); | 1059 | le = sky2_next_rx(sky2); |
1060 | le->addr = cpu_to_le32((u32) map); | 1060 | le->addr = cpu_to_le32(lower_32_bits(map)); |
1061 | le->length = cpu_to_le16(len); | 1061 | le->length = cpu_to_le16(len); |
1062 | le->opcode = op | HW_OWNER; | 1062 | le->opcode = op | HW_OWNER; |
1063 | } | 1063 | } |
@@ -1662,7 +1662,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev) | |||
1662 | } | 1662 | } |
1663 | 1663 | ||
1664 | le = get_tx_le(sky2, &slot); | 1664 | le = get_tx_le(sky2, &slot); |
1665 | le->addr = cpu_to_le32((u32) mapping); | 1665 | le->addr = cpu_to_le32(lower_32_bits(mapping)); |
1666 | le->length = cpu_to_le16(len); | 1666 | le->length = cpu_to_le16(len); |
1667 | le->ctrl = ctrl; | 1667 | le->ctrl = ctrl; |
1668 | le->opcode = mss ? (OP_LARGESEND | HW_OWNER) : (OP_PACKET | HW_OWNER); | 1668 | le->opcode = mss ? (OP_LARGESEND | HW_OWNER) : (OP_PACKET | HW_OWNER); |
@@ -1689,7 +1689,7 @@ static int sky2_xmit_frame(struct sk_buff *skb, struct net_device *dev) | |||
1689 | } | 1689 | } |
1690 | 1690 | ||
1691 | le = get_tx_le(sky2, &slot); | 1691 | le = get_tx_le(sky2, &slot); |
1692 | le->addr = cpu_to_le32((u32) mapping); | 1692 | le->addr = cpu_to_le32(lower_32_bits(mapping)); |
1693 | le->length = cpu_to_le16(frag->size); | 1693 | le->length = cpu_to_le16(frag->size); |
1694 | le->ctrl = ctrl; | 1694 | le->ctrl = ctrl; |
1695 | le->opcode = OP_BUFFER | HW_OWNER; | 1695 | le->opcode = OP_BUFFER | HW_OWNER; |