netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][ATM] iphase: move suni_priv to suni.h
@ 2008-06-05 16:15 Jorge Boncompte [DTI2]
  2008-06-14 21:23 ` Chas Williams (CONTRACTOR)
  0 siblings, 1 reply; 2+ messages in thread
From: Jorge Boncompte [DTI2] @ 2008-06-05 16:15 UTC (permalink / raw)
  To: netdev; +Cc: chas williams


Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
---
  drivers/atm/iphase.c |    6 ------
  drivers/atm/suni.c   |    8 --------
  drivers/atm/suni.h   |    9 +++++++++
  3 files changed, 9 insertions(+), 14 deletions(-)

diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index 92fce28..1b7090a 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -65,12 +65,6 @@
  #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);
diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c
index b1d063c..6de0856 100644
--- a/drivers/atm/suni.c
+++ b/drivers/atm/suni.c
@@ -30,14 +30,6 @@
  #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)
diff --git a/drivers/atm/suni.h b/drivers/atm/suni.h
index d14c835..de145ff 100644
--- a/drivers/atm/suni.h
+++ b/drivers/atm/suni.h
@@ -8,6 +8,15 @@

  #include <linux/atmdev.h>
  #include <linux/atmioc.h>
+#include <linux/sonet.h>
+
+
+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 */
+};


  /* SUNI registers */
-- 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-14 21:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 16:15 [PATCH][ATM] iphase: move suni_priv to suni.h Jorge Boncompte [DTI2]
2008-06-14 21:23 ` Chas Williams (CONTRACTOR)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).