Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
zatm.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/netdevice.h>
#include <linux/delay.h>
#include <linux/uio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/atm_zatm.h>
#include <linux/capability.h>
#include <linux/bitops.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <asm/byteorder.h>
#include <asm/string.h>
#include <asm/io.h>
#include <linux/atomic.h>
#include <asm/uaccess.h>
#include "uPD98401.h"
#include "uPD98402.h"
#include "zeprom.h"
#include "zatm.h"

Go to the source code of this file.

Data Structures

struct  rx_buffer_head
 

Macros

#define ZATM_COPPER   1
 
#define DPRINTK(format, args...)
 
#define NULLCHECK(x)
 
#define EVENT(s, a, b)
 
#define RING_BUSY
 
#define zin_n(r)   inl(zatm_dev->base+r*4)
 
#define zin(r)   inl(zatm_dev->base+uPD98401_##r*4)
 
#define zout(v, r)   outl(v,zatm_dev->base+uPD98401_##r*4)
 
#define zwait   while (zin(CMR) & uPD98401_BUSY)
 
#define MBX_SIZE(i)   (mbx_entries[i]*mbx_esize[i])
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, zatm_pci_tbl)
 
 module_init (zatm_init_module)
 

Macro Definition Documentation

#define DPRINTK (   format,
  args... 
)

Definition at line 54 of file zatm.c.

#define EVENT (   s,
  a,
  b 
)

Definition at line 62 of file zatm.c.

#define MBX_SIZE (   i)    (mbx_entries[i]*mbx_esize[i])

Definition at line 133 of file zatm.c.

#define NULLCHECK (   x)

Definition at line 60 of file zatm.c.

#define RING_BUSY
Value:
1 /* indication from do_tx that PDU has to be
backlogged */

Definition at line 118 of file zatm.c.

#define ZATM_COPPER   1

Definition at line 49 of file zatm.c.

#define zin (   r)    inl(zatm_dev->base+uPD98401_##r*4)

Definition at line 125 of file zatm.c.

#define zin_n (   r)    inl(zatm_dev->base+r*4)

Definition at line 124 of file zatm.c.

#define zout (   v,
  r 
)    outl(v,zatm_dev->base+uPD98401_##r*4)

Definition at line 126 of file zatm.c.

#define zwait   while (zin(CMR) & uPD98401_BUSY)

Definition at line 127 of file zatm.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
zatm_pci_tbl   
)
module_init ( zatm_init_module  )
MODULE_LICENSE ( "GPL"  )