Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
iphase.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/pci.h>
#include <linux/errno.h>
#include <linux/atm.h>
#include <linux/atmdev.h>
#include <linux/sonet.h>
#include <linux/skbuff.h>
#include <linux/time.h>
#include <linux/delay.h>
#include <linux/uio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <linux/atomic.h>
#include <asm/uaccess.h>
#include <asm/string.h>
#include <asm/byteorder.h>
#include <linux/vmalloc.h>
#include <linux/jiffies.h>
#include "iphase.h"
#include "suni.h"

Go to the source code of this file.

Data Structures

struct  ia_reg
 

Macros

#define swap_byte_order(x)   (((x & 0xff) << 8) | ((x & 0xff00) >> 8))
 
#define PRIV(dev)   ((struct suni_priv *) dev->phy_data)
 
#define NZ   0x4000
 
#define M_BITS   9 /* Number of bits in mantissa */
 
#define E_BITS   5 /* Number of bits in exponent */
 
#define M_MASK   0x1ff
 
#define E_MASK   0x1f
 
#define ACTUAL_RAM_BASE   RAM_BASE*((iadev->mem)/(128 * 1024))
 
#define ACTUAL_SEG_RAM_BASE   IPHASE5575_FRAG_CONTROL_RAM_BASE*((iadev->mem)/(128 * 1024))
 
#define ACTUAL_REASS_RAM_BASE   IPHASE5575_REASS_CONTROL_RAM_BASE*((iadev->mem)/(128 * 1024))
 

Functions

 module_param (IA_TX_BUF, int, 0)
 
 module_param (IA_TX_BUF_SZ, int, 0)
 
 module_param (IA_RX_BUF, int, 0)
 
 module_param (IA_RX_BUF_SZ, int, 0)
 
 module_param (IADebugFlag, uint, 0644)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, ia_pci_tbl)
 
 module_init (ia_module_init)
 
 module_exit (ia_module_exit)
 

Macro Definition Documentation

#define ACTUAL_RAM_BASE   RAM_BASE*((iadev->mem)/(128 * 1024))

Definition at line 1013 of file iphase.c.

#define ACTUAL_REASS_RAM_BASE   IPHASE5575_REASS_CONTROL_RAM_BASE*((iadev->mem)/(128 * 1024))

Definition at line 1017 of file iphase.c.

#define ACTUAL_SEG_RAM_BASE   IPHASE5575_FRAG_CONTROL_RAM_BASE*((iadev->mem)/(128 * 1024))

Definition at line 1015 of file iphase.c.

#define E_BITS   5 /* Number of bits in exponent */
#define E_MASK   0x1f
#define M_BITS   9 /* Number of bits in mantissa */
#define M_MASK   0x1ff
#define NZ   0x4000
#define PRIV (   dev)    ((struct suni_priv *) dev->phy_data)

Definition at line 70 of file iphase.c.

#define swap_byte_order (   x)    (((x & 0xff) << 8) | ((x & 0xff00) >> 8))

Definition at line 68 of file iphase.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
ia_pci_tbl   
)
module_exit ( ia_module_exit  )
module_init ( ia_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( IA_TX_BUF  ,
int  ,
 
)
module_param ( IA_TX_BUF_SZ  ,
int  ,
 
)
module_param ( IA_RX_BUF  ,
int  ,
 
)
module_param ( IA_RX_BUF_SZ  ,
int  ,
 
)
module_param ( IADebugFlag  ,
uint  ,
0644   
)