]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/isdn/i4l/isdn_net.h
Merge branch 'master' of ../mmc
[mv-sheeva.git] / drivers / isdn / i4l / isdn_net.h
index 2a6c370ea87f6ecc1ea98d1c6ae91954675156fb..74032d0881efab82d80b93193a2ebfc372e9bd58 100644 (file)
@@ -56,6 +56,11 @@ extern void isdn_net_write_super(isdn_net_local *lp, struct sk_buff *skb);
 
 #define ISDN_NET_MAX_QUEUE_LENGTH 2
 
+#define ISDN_MASTER_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->master))
+#define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave))
+#define MASTER_TO_SLAVE(master)        \
+                       (((isdn_net_local *) netdev_priv(master))->slave)
+
 /*
  * is this particular channel busy?
  */
@@ -126,7 +131,7 @@ static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
        unsigned long flags;
 
        if (lp->master)
-               master_lp = (isdn_net_local *) lp->master->priv;
+               master_lp = ISDN_MASTER_PRIV(lp);
 
 //     printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n",
 //             __func__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue);