* [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
* Re: [PATCH][ATM] iphase: move suni_priv to suni.h
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)
0 siblings, 0 replies; 2+ messages in thread
From: Chas Williams (CONTRACTOR) @ 2008-06-14 21:23 UTC (permalink / raw)
To: jorge; +Cc: netdev
In message <48481126.1000204@dti2.net>,"Jorge Boncompte [DTI2]" writes:
>
>Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
i am not thrilled about iphase digging at the internals of the suni
module, but i would prefer not to have a duplicate struct. i will
submit this with the next batch of atm patches. btw, i moved the
struct suni_priv inside the #ifdef KERNEL since userspace cant
make any use of the struct.
^ permalink raw reply [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).