Skip to content

Commit

Permalink
atm: [iphase] move struct suni_priv to suni.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jorge Boncompte [DTI2] authored and davem330 committed Jun 17, 2008
1 parent f586287 commit 2be63b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
7 changes: 1 addition & 6 deletions drivers/atm/iphase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions drivers/atm/suni.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 8 additions & 1 deletion drivers/atm/suni.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <linux/atmdev.h>
#include <linux/atmioc.h>

#include <linux/sonet.h>

/* SUNI registers */

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2be63b8

Please sign in to comment.