FRV: Reinstate null behaviour for the GDB remote protocol 'p' command
[safe/jmp/linux-2.6] / include / net / wpan-phy.h
index f63537c..8592623 100644 (file)
@@ -41,9 +41,15 @@ struct wpan_phy {
        struct device dev;
        int idx;
 
+       struct net_device *(*add_iface)(struct wpan_phy *phy,
+                       const char *name);
+       void (*del_iface)(struct wpan_phy *phy, struct net_device *dev);
+
        char priv[0] __attribute__((__aligned__(NETDEV_ALIGN)));
 };
 
+#define to_phy(_dev)   container_of(_dev, struct wpan_phy, dev)
+
 struct wpan_phy *wpan_phy_alloc(size_t priv_size);
 static inline void wpan_phy_set_dev(struct wpan_phy *phy, struct device *dev)
 {