atm: [iphase] move struct suni_priv to suni.h
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Tue, 17 Jun 2008 23:18:49 +0000 (16:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2008 23:18:49 +0000 (16:18 -0700)
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/iphase.c
drivers/atm/suni.c
drivers/atm/suni.h

index 139fce6968a6382637df695af6899321a429dd9f..14e4638759a6bc12e7a9910bce0b59e2f93ca8be 100644 (file)
 #include "iphase.h"              
 #include "suni.h"                
 #define swap(x) (((x & 0xff) << 8) | ((x & 0xff00) >> 8))  
-struct suni_priv {
-        struct k_sonet_stats sonet_stats; /* link diagnostics */
-        unsigned char loop_mode;        /* loopback mode */
-        struct atm_dev *dev;            /* device back-pointer */
-        struct suni_priv *next;         /* next SUNI */
-}; 
+
 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
 
 static unsigned char ia_phy_get(struct atm_dev *dev, unsigned long addr);
index b1d063cc4fbe0f6903359bf3328566e0e50aee93..6097f6877a44208ec9a51640373572f024131c61 100644 (file)
 #define DPRINTK(format,args...)
 #endif
 
-
-struct suni_priv {
-       struct k_sonet_stats sonet_stats; /* link diagnostics */
-       int loop_mode;                  /* loopback mode */
-       struct atm_dev *dev;            /* device back-pointer */
-       struct suni_priv *next;         /* next SUNI */
-};
-
-
 #define PRIV(dev) ((struct suni_priv *) dev->phy_data)
 
 #define PUT(val,reg) dev->ops->phy_put(dev,val,SUNI_##reg)
index d14c835abc97e44f0a03452970aec0eb54168a59..efa79bfae75b91e1e84a9442a57d3f31c3e0ee16 100644 (file)
@@ -8,7 +8,7 @@
 
 #include <linux/atmdev.h>
 #include <linux/atmioc.h>
-
+#include <linux/sonet.h>
 
 /* SUNI registers */
 
 
 
 #ifdef __KERNEL__
+struct suni_priv {
+       struct k_sonet_stats sonet_stats;       /* link diagnostics */
+       int loop_mode;                          /* loopback mode */
+       struct atm_dev *dev;                    /* device back-pointer */
+       struct suni_priv *next;                 /* next SUNI */
+};
+
 int suni_init(struct atm_dev *dev);
 #endif