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

Go to the source code of this file.

Data Structures

struct  uPD98402_priv
 

Macros

#define DPRINTK(format, args...)
 
#define PRIV(dev)   ((struct uPD98402_priv *) dev->phy_data)
 
#define PUT(val, reg)   dev->ops->phy_put(dev,val,uPD98402_##reg)
 
#define GET(reg)   dev->ops->phy_get(dev,uPD98402_##reg)
 
#define ADD_LIMITED(s, v)
 

Functions

int uPD98402_init (struct atm_dev *dev)
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (uPD98402_init)
 
 module_init (uPD98402_module_init)
 

Macro Definition Documentation

#define ADD_LIMITED (   s,
  v 
)
Value:
if (atomic_read(&PRIV(dev)->sonet_stats.s) < 0) \
atomic_set(&PRIV(dev)->sonet_stats.s,INT_MAX); }

Definition at line 163 of file uPD98402.c.

#define DPRINTK (   format,
  args... 
)

Definition at line 22 of file uPD98402.c.

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

Definition at line 37 of file uPD98402.c.

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

Definition at line 34 of file uPD98402.c.

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

Definition at line 36 of file uPD98402.c.

Function Documentation

EXPORT_SYMBOL ( uPD98402_init  )
module_init ( uPD98402_module_init  )
MODULE_LICENSE ( "GPL"  )
int uPD98402_init ( struct atm_dev dev)

Definition at line 248 of file uPD98402.c.