![]() |
|
|||
0001 /* 0002 * linux/drivers/message/fusion/mptlan.h 0003 * IP Over Fibre Channel device driver. 0004 * For use with LSI Fibre Channel PCI chip/adapters 0005 * running LSI Fusion MPT (Message Passing Technology) firmware. 0006 * 0007 * Copyright (c) 2000-2008 LSI Corporation 0008 * (mailto:DL-MPTFusionLinux@lsi.com) 0009 * 0010 */ 0011 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 0012 /* 0013 This program is free software; you can redistribute it and/or modify 0014 it under the terms of the GNU General Public License as published by 0015 the Free Software Foundation; version 2 of the License. 0016 0017 This program is distributed in the hope that it will be useful, 0018 but WITHOUT ANY WARRANTY; without even the implied warranty of 0019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0020 GNU General Public License for more details. 0021 0022 NO WARRANTY 0023 THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR 0024 CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT 0025 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 0026 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is 0027 solely responsible for determining the appropriateness of using and 0028 distributing the Program and assumes all risks associated with its 0029 exercise of rights under this Agreement, including but not limited to 0030 the risks and costs of program errors, damage to or loss of data, 0031 programs or equipment, and unavailability or interruption of operations. 0032 0033 DISCLAIMER OF LIABILITY 0034 NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY 0035 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 0036 DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND 0037 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 0038 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 0039 USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED 0040 HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES 0041 0042 You should have received a copy of the GNU General Public License 0043 along with this program; if not, write to the Free Software 0044 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 0045 */ 0046 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 0047 0048 /* mptlan.h */ 0049 0050 #ifndef LINUX_MPTLAN_H_INCLUDED 0051 #define LINUX_MPTLAN_H_INCLUDED 0052 /*****************************************************************************/ 0053 0054 #if !defined(__GENKSYMS__) 0055 #include <linux/module.h> 0056 #endif 0057 0058 #include <linux/netdevice.h> 0059 #include <linux/errno.h> 0060 // #include <linux/etherdevice.h> 0061 #include <linux/fcdevice.h> 0062 // #include <linux/fddidevice.h> 0063 #include <linux/skbuff.h> 0064 #include <linux/if_arp.h> 0065 #include <linux/init.h> 0066 #include <linux/kernel.h> 0067 #include <linux/printk.h> 0068 #include <linux/slab.h> 0069 #include <linux/spinlock.h> 0070 #include <linux/workqueue.h> 0071 #include <linux/delay.h> 0072 0073 #include <linux/uaccess.h> 0074 #include <asm/io.h> 0075 0076 /* Override mptbase.h by pre-defining these! */ 0077 #define MODULEAUTHOR "LSI Corporation" 0078 0079 #include "mptbase.h" 0080 0081 /*****************************************************************************/ 0082 #define LANAME "Fusion MPT LAN driver" 0083 #define LANVER MPT_LINUX_VERSION_COMMON 0084 0085 #ifdef MODULE 0086 MODULE_AUTHOR(MODULEAUTHOR); 0087 MODULE_DESCRIPTION(LANAME); 0088 #endif 0089 /*****************************************************************************/ 0090 0091 #define MPT_LAN_MAX_BUCKETS_OUT 256 0092 #define MPT_LAN_BUCKET_THRESH 18 /* 9 buckets in one message */ 0093 #define MPT_LAN_BUCKETS_REMAIN_MISMATCH_THRESH 10 0094 #define MPT_LAN_RX_COPYBREAK 200 0095 #define MPT_LAN_TX_TIMEOUT (1*HZ) 0096 #define MPT_TX_MAX_OUT_LIM 127 0097 0098 #define MPT_LAN_MIN_MTU 96 /* RFC2625 */ 0099 #define MPT_LAN_MAX_MTU 65280 /* RFC2625 */ 0100 #define MPT_LAN_MTU 13312 /* Max perf range + lower mem 0101 usage than 16128 */ 0102 0103 #define MPT_LAN_NAA_RFC2625 0x1 0104 #define MPT_LAN_NAA_QLOGIC 0x2 0105 0106 /* MPT LAN Reset and Suspend Resource Flags Defines */ 0107 0108 #define MPT_LAN_RESOURCE_FLAG_RETURN_POSTED_BUCKETS 0x01 0109 #define MPT_LAN_RESOURCE_FLAG_RETURN_PEND_TRANSMITS 0x02 0110 0111 /*****************************************************************************/ 0112 #ifdef MPT_LAN_IO_DEBUG 0113 #define dioprintk(x) printk x 0114 #else 0115 #define dioprintk(x) no_printk x 0116 #endif 0117 0118 #ifdef MPT_LAN_DEBUG 0119 #define dlprintk(x) printk x 0120 #else 0121 #define dlprintk(x) no_printk x 0122 #endif 0123 0124 #define NETDEV_TO_LANPRIV_PTR(d) ((struct mpt_lan_priv *)netdev_priv(d)) 0125 #define NETDEV_PTR_TO_IOC_NAME_s(d) (NETDEV_TO_LANPRIV_PTR(d)->mpt_dev->name) 0126 #define IOC_AND_NETDEV_NAMES_s_s(d) NETDEV_PTR_TO_IOC_NAME_s(d), (d)->name 0127 0128 /*****************************************************************************/ 0129 #endif 0130
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |