Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
slicoss.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/io.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/delay.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/types.h>
#include <linux/dma-mapping.h>
#include <linux/mii.h>
#include <linux/if_vlan.h>
#include <asm/unaligned.h>
#include <linux/ethtool.h>
#include <linux/uaccess.h>
#include "slichw.h"
#include "slic.h"

Go to the source code of this file.

Macros

#define KLUDGE_FOR_4GB_BOUNDARY   1
 
#define DEBUG_MICROCODE   1
 
#define DBG   1
 
#define SLIC_INTERRUPT_PROCESS_LIMIT   1
 
#define SLIC_OFFLOAD_IP_CHECKSUM   1
 
#define STATS_TIMER_INTERVAL   2
 
#define PING_TIMER_INTERVAL   1
 
#define DRV_NAME   "slicoss"
 
#define DRV_VERSION   "2.0.1"
 
#define DRV_AUTHOR   "Alacritech, Inc. Engineering"
 
#define DRV_DESCRIPTION
 
#define DRV_COPYRIGHT
 
#define PFX   DRV_NAME " "
 
#define ASSERT(a)
 
#define SLIC_GET_SLIC_HANDLE(_adapter, _pslic_handle)
 
#define SLIC_FREE_SLIC_HANDLE(_adapter, _pslic_handle)
 
#define ADDCARRY(x)   (x > 65535 ? x -= 65535 : x)
 
#define REDUCE
 
#define XMIT_FAIL_LINK_STATE   1
 
#define XMIT_FAIL_ZERO_LENGTH   2
 
#define XMIT_FAIL_HOSTCMD_FAIL   3
 
#define TCP_OFFLOAD_FRAME_PUSHFLAG   0x10000000
 
#define M_FAST_PATH   0x0040
 
#define NORMAL_ETHFRAME   0
 

Functions

 MODULE_AUTHOR (DRV_AUTHOR)
 
 MODULE_DESCRIPTION (DRV_DESCRIPTION)
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 module_param (dynamic_intagg, int, 0)
 
 MODULE_PARM_DESC (dynamic_intagg,"Dynamic Interrupt Aggregation Setting")
 
 module_param (intagg_delay, int, 0)
 
 MODULE_PARM_DESC (intagg_delay,"uSec Interrupt Aggregation Delay")
 
 MODULE_DEVICE_TABLE (pci, slic_pci_tbl)
 
 MODULE_FIRMWARE ("slicoss/oasisrcvucode.sys")
 
 MODULE_FIRMWARE ("slicoss/gbrcvucode.sys")
 
 MODULE_FIRMWARE ("slicoss/oasisdownload.sys")
 
 MODULE_FIRMWARE ("slicoss/gbdownload.sys")
 
 module_init (slic_module_init)
 
 module_exit (slic_module_cleanup)
 

Macro Definition Documentation

#define ADDCARRY (   x)    (x > 65535 ? x -= 65535 : x)
#define ASSERT (   a)
Value:
do { \
if (!(a)) { \
printk(KERN_ERR "slicoss ASSERT() Failure: function %s" \
"line %d\n", __func__, __LINE__); \
slic_assert_fail(); \
} \
} while (0)

Definition at line 161 of file slicoss.c.

#define DBG   1

Definition at line 60 of file slicoss.c.

#define DEBUG_MICROCODE   1

Definition at line 59 of file slicoss.c.

#define DRV_AUTHOR   "Alacritech, Inc. Engineering"

Definition at line 121 of file slicoss.c.

#define DRV_COPYRIGHT
Value:
"Copyright 2000-2006 Alacritech, Inc. "\
"All rights reserved."

Definition at line 124 of file slicoss.c.

#define DRV_DESCRIPTION
Value:
"Alacritech SLIC Techonology(tm) "\
"Non-Accelerated Driver"

Definition at line 122 of file slicoss.c.

#define DRV_NAME   "slicoss"

Definition at line 119 of file slicoss.c.

#define DRV_VERSION   "2.0.1"

Definition at line 120 of file slicoss.c.

#define KLUDGE_FOR_4GB_BOUNDARY   1

Definition at line 58 of file slicoss.c.

#define M_FAST_PATH   0x0040

Definition at line 2716 of file slicoss.c.

#define NORMAL_ETHFRAME   0

Definition at line 2902 of file slicoss.c.

#define PFX   DRV_NAME " "

Definition at line 126 of file slicoss.c.

#define PING_TIMER_INTERVAL   1

Definition at line 64 of file slicoss.c.

#define REDUCE
Value:
{l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);\
}
#define SLIC_FREE_SLIC_HANDLE (   _adapter,
  _pslic_handle 
)
Value:
{ \
_pslic_handle->type = SLIC_HANDLE_FREE; \
spin_lock_irqsave(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \
_pslic_handle->next = _adapter->pfree_slic_handles; \
_adapter->pfree_slic_handles = _pslic_handle; \
spin_unlock_irqrestore(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \
}

Definition at line 184 of file slicoss.c.

#define SLIC_GET_SLIC_HANDLE (   _adapter,
  _pslic_handle 
)
Value:
{ \
spin_lock_irqsave(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \
_pslic_handle = _adapter->pfree_slic_handles; \
if (_pslic_handle) { \
ASSERT(_pslic_handle->type == SLIC_HANDLE_FREE); \
_adapter->pfree_slic_handles = _pslic_handle->next; \
} \
spin_unlock_irqrestore(&_adapter->handle_lock.lock, \
_adapter->handle_lock.flags); \
}

Definition at line 171 of file slicoss.c.

#define SLIC_INTERRUPT_PROCESS_LIMIT   1

Definition at line 61 of file slicoss.c.

#define SLIC_OFFLOAD_IP_CHECKSUM   1

Definition at line 62 of file slicoss.c.

#define STATS_TIMER_INTERVAL   2

Definition at line 63 of file slicoss.c.

#define TCP_OFFLOAD_FRAME_PUSHFLAG   0x10000000

Definition at line 2715 of file slicoss.c.

#define XMIT_FAIL_HOSTCMD_FAIL   3

Definition at line 2559 of file slicoss.c.

#define XMIT_FAIL_LINK_STATE   1

Definition at line 2557 of file slicoss.c.

#define XMIT_FAIL_ZERO_LENGTH   2

Definition at line 2558 of file slicoss.c.

Function Documentation

MODULE_AUTHOR ( DRV_AUTHOR  )
MODULE_DESCRIPTION ( DRV_DESCRIPTION  )
MODULE_DEVICE_TABLE ( pci  ,
slic_pci_tbl   
)
module_exit ( slic_module_cleanup  )
MODULE_FIRMWARE ( "slicoss/oasisrcvucode.sys )
MODULE_FIRMWARE ( "slicoss/gbrcvucode.sys )
MODULE_FIRMWARE ( "slicoss/oasisdownload.sys )
MODULE_FIRMWARE ( "slicoss/gbdownload.sys )
module_init ( slic_module_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( dynamic_intagg  ,
int  ,
 
)
module_param ( intagg_delay  ,
int  ,
 
)
MODULE_PARM_DESC ( dynamic_intagg  ,
"Dynamic Interrupt Aggregation Setting"   
)
MODULE_PARM_DESC ( intagg_delay  ,
"uSec Interrupt Aggregation Delay"   
)