Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ipg.c File Reference
#include <linux/crc32.h>
#include <linux/ethtool.h>
#include <linux/interrupt.h>
#include <linux/gfp.h>
#include <linux/mii.h>
#include <linux/mutex.h>
#include <asm/div64.h>
#include "ipg.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define IPG_RX_RING_BYTES   (sizeof(struct ipg_rx) * IPG_RFDLIST_LENGTH)
 
#define IPG_TX_RING_BYTES   (sizeof(struct ipg_tx) * IPG_TFDLIST_LENGTH)
 
#define IPG_RESET_MASK
 
#define ipg_w32(val32, reg)   iowrite32((val32), ioaddr + (reg))
 
#define ipg_w16(val16, reg)   iowrite16((val16), ioaddr + (reg))
 
#define ipg_w8(val8, reg)   iowrite8((val8), ioaddr + (reg))
 
#define ipg_r32(reg)   ioread32(ioaddr + (reg))
 
#define ipg_r16(reg)   ioread16(ioaddr + (reg))
 
#define ipg_r8(reg)   ioread8(ioaddr + (reg))
 
#define DRV_NAME   "ipg"
 
#define IPG_MAX_RXFRAME_SIZE   0x0600
 
#define IPG_RXFRAG_SIZE   0x0600
 
#define IPG_RXSUPPORT_SIZE   0x0600
 
#define IPG_IS_JUMBO   false
 
#define __RFS_MASK   cpu_to_le64(IPG_RFS_RFDDONE | IPG_RFS_FRAMESTART | IPG_RFS_FRAMEEND)
 

Enumerations

enum  { netdev_io_size = 128 }
 
enum  { NORMAL_PACKET, ERROR_PACKET }
 
enum  { FRAME_NO_START_NO_END = 0, FRAME_WITH_START = 1, FRAME_WITH_END = 10, FRAME_WITH_START_WITH_END = 11 }
 

Functions

 MODULE_AUTHOR ("IC Plus Corp. 2003")
 
 MODULE_DESCRIPTION ("IC Plus IP1000 Gigabit Ethernet Adapter Linux Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, ipg_pci_tbl)
 
 module_init (ipg_init_module)
 
 module_exit (ipg_exit_module)
 

Macro Definition Documentation

#define DRV_NAME   "ipg"

Definition at line 55 of file ipg.c.

#define IPG_IS_JUMBO   false

Definition at line 67 of file ipg.c.

#define IPG_MAX_RXFRAME_SIZE   0x0600

Definition at line 64 of file ipg.c.

#define ipg_r16 (   reg)    ioread16(ioaddr + (reg))

Definition at line 47 of file ipg.c.

#define ipg_r32 (   reg)    ioread32(ioaddr + (reg))

Definition at line 46 of file ipg.c.

#define ipg_r8 (   reg)    ioread8(ioaddr + (reg))

Definition at line 48 of file ipg.c.

#define IPG_RESET_MASK
Value:

Definition at line 37 of file ipg.c.

#define IPG_RX_RING_BYTES   (sizeof(struct ipg_rx) * IPG_RFDLIST_LENGTH)

Definition at line 35 of file ipg.c.

#define IPG_RXFRAG_SIZE   0x0600

Definition at line 65 of file ipg.c.

#define IPG_RXSUPPORT_SIZE   0x0600

Definition at line 66 of file ipg.c.

#define IPG_TX_RING_BYTES   (sizeof(struct ipg_tx) * IPG_TFDLIST_LENGTH)

Definition at line 36 of file ipg.c.

#define ipg_w16 (   val16,
  reg 
)    iowrite16((val16), ioaddr + (reg))

Definition at line 43 of file ipg.c.

#define ipg_w32 (   val32,
  reg 
)    iowrite32((val32), ioaddr + (reg))

Definition at line 42 of file ipg.c.

#define ipg_w8 (   val8,
  reg 
)    iowrite8((val8), ioaddr + (reg))

Definition at line 44 of file ipg.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file ipg.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
netdev_io_size 

Definition at line 50 of file ipg.c.

anonymous enum
Enumerator:
NORMAL_PACKET 
ERROR_PACKET 

Definition at line 1081 of file ipg.c.

anonymous enum
Enumerator:
FRAME_NO_START_NO_END 
FRAME_WITH_START 
FRAME_WITH_END 
FRAME_WITH_START_WITH_END 

Definition at line 1086 of file ipg.c.

Function Documentation

MODULE_AUTHOR ( "IC Plus Corp. 2003"  )
MODULE_DESCRIPTION ( "IC Plus IP1000 Gigabit Ethernet Adapter Linux Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
ipg_pci_tbl   
)
module_exit ( ipg_exit_module  )
module_init ( ipg_init_module  )
MODULE_LICENSE ( "GPL"  )