diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2008-06-18 01:18:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-18 01:18:49 +0200 |
commit | 2be63b878f2a1e6d939b05f4f5cb733cb39bcd22 (patch) | |
tree | 5d41eb43ca2b8742206a9f493c35bbc5d7edf97f /drivers/atm | |
parent | bridge: fix IPV6=n build (diff) | |
download | linux-2be63b878f2a1e6d939b05f4f5cb733cb39bcd22.tar.xz linux-2be63b878f2a1e6d939b05f4f5cb733cb39bcd22.zip |
atm: [iphase] move struct suni_priv to suni.h
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/iphase.c | 7 | ||||
-rw-r--r-- | drivers/atm/suni.c | 9 | ||||
-rw-r--r-- | drivers/atm/suni.h | 9 |
3 files changed, 9 insertions, 16 deletions
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index 139fce6968a6..14e4638759a6 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c @@ -65,12 +65,7 @@ #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 b1d063cc4fbe..6097f6877a44 100644 --- a/drivers/atm/suni.c +++ b/drivers/atm/suni.c @@ -29,15 +29,6 @@ #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) diff --git a/drivers/atm/suni.h b/drivers/atm/suni.h index d14c835abc97..efa79bfae75b 100644 --- a/drivers/atm/suni.h +++ b/drivers/atm/suni.h @@ -8,7 +8,7 @@ #include <linux/atmdev.h> #include <linux/atmioc.h> - +#include <linux/sonet.h> /* SUNI registers */ @@ -205,6 +205,13 @@ #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 |