patch-2.1.124 linux/drivers/net/sunhme.h
Next file: linux/drivers/sbus/audio/Config.in
Previous file: linux/drivers/net/sunhme.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Oct 4 10:21:00 1998
- Orig file:
v2.1.123/linux/drivers/net/sunhme.h
- Orig date:
Fri May 8 23:14:48 1998
diff -u --recursive --new-file v2.1.123/linux/drivers/net/sunhme.h linux/drivers/net/sunhme.h
@@ -632,6 +632,7 @@
}
#ifdef CONFIG_PCI
+#ifdef __sparc_v9__
extern inline void pcihme_write_rxd(struct happy_meal_rxd *rp,
unsigned int flags,
unsigned int addr)
@@ -655,6 +656,27 @@
: "r" (&tp->tx_addr), "r" (&tp->tx_flags),
"i" (ASI_PL), "r" (addr), "r" (flags));
}
-#endif
+#else
+
+extern inline void pcihme_write_rxd(struct happy_meal_rxd *rp,
+ unsigned int flags,
+ unsigned int addr)
+{
+ rp->rx_addr = flip_dword(addr);
+ rp->rx_flags = flip_dword(flags);
+ flush_cache_all();
+}
+
+extern inline void pcihme_write_txd(struct happy_meal_txd *tp,
+ unsigned int flags,
+ unsigned int addr)
+{
+ tp->tx_addr = flip_dword(addr);
+ tp->tx_flags = flip_dword(flags);
+ flush_cache_all();
+}
+
+#endif /* def __sparc_v9__ */
+#endif /* def CONFIG_PCI */
#endif /* !(_SUNHME_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov