[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <48481126.1000204@dti2.net>
Date: Thu, 05 Jun 2008 18:15:34 +0200
From: "Jorge Boncompte [DTI2]" <jorge@...2.net>
To: netdev@...r.kernel.org
CC: chas williams <chas@....nrl.navy.mil>
Subject: [PATCH][ATM] iphase: move suni_priv to suni.h
Signed-off-by: Jorge Boncompte [DTI2] <jorge@...2.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 */
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists