Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
suni.c File Reference
#include <linux/module.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/atmdev.h>
#include <linux/sonet.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/capability.h>
#include <linux/atm_suni.h>
#include <linux/slab.h>
#include <asm/param.h>
#include <asm/uaccess.h>
#include <linux/atomic.h>
#include "suni.h"

Go to the source code of this file.

Macros

#define DPRINTK(format, args...)
 
#define PRIV(dev)   ((struct suni_priv *) dev->phy_data)
 
#define PUT(val, reg)   dev->ops->phy_put(dev,val,SUNI_##reg)
 
#define GET(reg)   dev->ops->phy_get(dev,SUNI_##reg)
 
#define REG_CHANGE(mask, shift, value, reg)   PUT((GET(reg) & ~(mask)) | ((value) << (shift)),reg)
 
#define ADD_LIMITED(s, v)
 
#define HANDLE_FLAG(flag, reg, bit)
 

Functions

int suni_init (struct atm_dev *dev)
 
 EXPORT_SYMBOL (suni_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADD_LIMITED (   s,
  v 
)
Value:
atomic_add((v),&stats->s); \

Definition at line 51 of file suni.c.

#define DPRINTK (   format,
  args... 
)

Definition at line 35 of file suni.c.

#define GET (   reg)    dev->ops->phy_get(dev,SUNI_##reg)

Definition at line 41 of file suni.c.

#define HANDLE_FLAG (   flag,
  reg,
  bit 
)
Value:
if (todo & flag) { \
if (set) PUT(GET(reg) | bit,reg); \
else PUT(GET(reg) & ~bit,reg); \
todo &= ~flag; \
}

Definition at line 107 of file suni.c.

#define PRIV (   dev)    ((struct suni_priv *) dev->phy_data)

Definition at line 38 of file suni.c.

#define PUT (   val,
  reg 
)    dev->ops->phy_put(dev,val,SUNI_##reg)

Definition at line 40 of file suni.c.

#define REG_CHANGE (   mask,
  shift,
  value,
  reg 
)    PUT((GET(reg) & ~(mask)) | ((value) << (shift)),reg)

Definition at line 42 of file suni.c.

Function Documentation

EXPORT_SYMBOL ( suni_init  )
MODULE_LICENSE ( "GPL"  )
int suni_init ( struct atm_dev dev)

Definition at line 368 of file suni.c.