Commit 0d6f3f17 authored by Bradley A. Bosch's avatar Bradley A. Bosch Committed by Jeff Garzik

[netdrvr ns83820] big endian fixes

parent a8a87fdb
...@@ -500,9 +500,9 @@ static inline void build_rx_desc(struct ns83820 *dev, u32 *desc, dma_addr_t link ...@@ -500,9 +500,9 @@ static inline void build_rx_desc(struct ns83820 *dev, u32 *desc, dma_addr_t link
{ {
desc_addr_set(desc + DESC_LINK, link); desc_addr_set(desc + DESC_LINK, link);
desc_addr_set(desc + DESC_BUFPTR, buf); desc_addr_set(desc + DESC_BUFPTR, buf);
desc[DESC_EXTSTS] = extsts; desc[DESC_EXTSTS] = cpu_to_le32(extsts);
mb(); mb();
desc[DESC_CMDSTS] = cmdsts; desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);
} }
#define nr_rx_empty(dev) ((NR_RX_DESC-2 + dev->rx_info.next_rx - dev->rx_info.next_empty) % NR_RX_DESC) #define nr_rx_empty(dev) ((NR_RX_DESC-2 + dev->rx_info.next_rx - dev->rx_info.next_empty) % NR_RX_DESC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment