Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
eni.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/atm_eni.h>
#include <linux/bitops.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 "tonga.h"
#include "midway.h"
#include "suni.h"
#include "eni.h"

Go to the source code of this file.

Macros

#define ioremap_nocache(X, Y)   ioremap(X,Y)
 
#define DPRINTK(format, args...)
 
#define CONFIG_ATM_ENI_BURST_TX_8W
 
#define CONFIG_ATM_ENI_BURST_RX_4W
 
#define NULLCHECK(x)
 
#define EVENT(s, a, b)
 
#define NEPJOK(a0, a1, b)   ((a0) < (a1) ? (b) <= (a0) || (b) > (a1) : (b) <= (a0) && (b) > (a1))
 
#define EEPJOK(a0, a1, b)   ((a0) < (a1) ? (b) < (a0) || (b) >= (a1) : (b) < (a0) && (b) >= (a1))
 
#define NEPMOK(a0, d, b, c)   NEPJOK(a0,(a0+d) & (c-1),b)
 
#define EEPMOK(a0, d, b, c)   EEPJOK(a0,(a0+d) & (c-1),b)
 
#define eni_in(r)   readl(eni_dev->reg+(r)*4)
 
#define eni_out(v, r)   writel((v),eni_dev->reg+(r)*4)
 
#define ENI_VCC_NOS   ((struct atm_vcc *) 1)
 
#define SET_SEPROM
 
#define GET_SEPROM
 

Enumerations

enum  enq_res { enq_ok, enq_next, enq_jam }
 

Functions

 MODULE_DEVICE_TABLE (pci, eni_pci_tbl)
 
 module_init (eni_init)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CONFIG_ATM_ENI_BURST_RX_4W

Definition at line 73 of file eni.c.

#define CONFIG_ATM_ENI_BURST_TX_8W

Definition at line 72 of file eni.c.

#define DPRINTK (   format,
  args... 
)

Definition at line 67 of file eni.c.

#define EEPJOK (   a0,
  a1,
  b 
)    ((a0) < (a1) ? (b) < (a0) || (b) >= (a1) : (b) < (a0) && (b) >= (a1))

Definition at line 146 of file eni.c.

#define EEPMOK (   a0,
  d,
  b,
  c 
)    EEPJOK(a0,(a0+d) & (c-1),b)

Definition at line 149 of file eni.c.

#define eni_in (   r)    readl(eni_dev->reg+(r)*4)

Definition at line 159 of file eni.c.

#define eni_out (   v,
  r 
)    writel((v),eni_dev->reg+(r)*4)

Definition at line 160 of file eni.c.

#define ENI_VCC_NOS   ((struct atm_vcc *) 1)

Definition at line 308 of file eni.c.

#define EVENT (   s,
  a,
  b 
)

Definition at line 82 of file eni.c.

#define GET_SEPROM
Value:
({ if (!error && !pci_error) { \
pci_error = pci_read_config_byte(eni_dev->pci_dev,PCI_TONGA_CTRL,&tonga); \
udelay(10); /* 10 usecs */ \
} })

Definition at line 1587 of file eni.c.

#define ioremap_nocache (   X,
 
)    ioremap(X,Y)

Definition at line 35 of file eni.c.

#define NEPJOK (   a0,
  a1,
  b 
)    ((a0) < (a1) ? (b) <= (a0) || (b) > (a1) : (b) <= (a0) && (b) > (a1))

Definition at line 144 of file eni.c.

#define NEPMOK (   a0,
  d,
  b,
  c 
)    NEPJOK(a0,(a0+d) & (c-1),b)

Definition at line 148 of file eni.c.

#define NULLCHECK (   x)

Definition at line 80 of file eni.c.

#define SET_SEPROM
Value:
({ if (!error && !pci_error) { \
pci_error = pci_write_config_byte(eni_dev->pci_dev,PCI_TONGA_CTRL,tonga); \
udelay(10); /* 10 usecs */ \
} })

Definition at line 1582 of file eni.c.

Enumeration Type Documentation

enum enq_res
Enumerator:
enq_ok 
enq_next 
enq_jam 

Definition at line 926 of file eni.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
eni_pci_tbl   
)
module_init ( eni_init  )
MODULE_LICENSE ( "GPL"  )