gianfar.h (a4feee89ce4590c7a4aead49ca5a4853dc6ea5dc) | gianfar.h (d55398ba81139bc826a8c2417a01280e99f08cf3) |
---|---|
1/* 2 * drivers/net/ethernet/freescale/gianfar.h 3 * 4 * Gianfar Ethernet Driver 5 * Driver for FEC on MPC8540 and TSEC on MPC8540/MPC8560 6 * Based on 8260_io/fcc_enet.c 7 * 8 * Author: Andy Fleming --- 1227 unchanged lines hidden (view full) --- 1236 1237static inline int gfar_is_rx_dma_stopped(struct gfar_private *priv) 1238{ 1239 struct gfar __iomem *regs = priv->gfargrp[0].regs; 1240 1241 return gfar_read(®s->ievent) & IEVENT_GRSC; 1242} 1243 | 1/* 2 * drivers/net/ethernet/freescale/gianfar.h 3 * 4 * Gianfar Ethernet Driver 5 * Driver for FEC on MPC8540 and TSEC on MPC8540/MPC8560 6 * Based on 8260_io/fcc_enet.c 7 * 8 * Author: Andy Fleming --- 1227 unchanged lines hidden (view full) --- 1236 1237static inline int gfar_is_rx_dma_stopped(struct gfar_private *priv) 1238{ 1239 struct gfar __iomem *regs = priv->gfargrp[0].regs; 1240 1241 return gfar_read(®s->ievent) & IEVENT_GRSC; 1242} 1243 |
1244static inline void gfar_wmb(void) 1245{ 1246#if defined(CONFIG_PPC) 1247 /* The powerpc-specific eieio() is used, as wmb() has too strong 1248 * semantics (it requires synchronization between cacheable and 1249 * uncacheable mappings, which eieio() doesn't provide and which we 1250 * don't need), thus requiring a more expensive sync instruction. At 1251 * some point, the set of architecture-independent barrier functions 1252 * should be expanded to include weaker barriers. 1253 */ 1254 eieio(); 1255#else 1256 wmb(); /* order write acesses for BD (or FCB) fields */ 1257#endif 1258} 1259 |
|
1244irqreturn_t gfar_receive(int irq, void *dev_id); 1245int startup_gfar(struct net_device *dev); 1246void stop_gfar(struct net_device *dev); 1247void reset_gfar(struct net_device *dev); 1248void gfar_mac_reset(struct gfar_private *priv); 1249void gfar_halt(struct gfar_private *priv); 1250void gfar_start(struct gfar_private *priv); 1251void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, int enable, --- 38 unchanged lines hidden --- | 1260irqreturn_t gfar_receive(int irq, void *dev_id); 1261int startup_gfar(struct net_device *dev); 1262void stop_gfar(struct net_device *dev); 1263void reset_gfar(struct net_device *dev); 1264void gfar_mac_reset(struct gfar_private *priv); 1265void gfar_halt(struct gfar_private *priv); 1266void gfar_start(struct gfar_private *priv); 1267void gfar_phy_test(struct mii_bus *bus, struct phy_device *phydev, int enable, --- 38 unchanged lines hidden --- |