#****************************************************************************** # # Name: skge.c # Project: GEnesis, PCI Gigabit Ethernet Adapter # Version: $Revision: 1.1.4.1 $ # Date: $Date: 2006/08/28 09:01:59 $ # Purpose: The main driver source module # #****************************************************************************** #****************************************************************************** # # (C)Copyright 1998-2002 SysKonnect GmbH. # (C)Copyright 2002-2005 Marvell. # # Makefile for Marvell Yukon chipset and SysKonnect Gigabit Ethernet # Server Adapter driver. (Kernel 2.4) # # Author: Mirko Lindner (mlindner@syskonnect.de) # Ralph Roesler (rroesler@syskonnect.de) # # Address all question to: linux@syskonnect.de # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # The information in this file is provided "AS IS" without warranty. # #****************************************************************************** #****************************************************************************** # # History: # # $Log: Makefile2.4,v $ # Revision 1.1.4.1 2006/08/28 09:01:59 mlindner # Add: Initial IPMI kernel 2.4 and 2.6 support # # Revision 1.1 2006/07/19 15:37:22 amock # Imported/updated from Release Server GELIN_V8_35_02 # # Revision 1.9.2.1 2005/04/11 09:01:18 mlindner # Fix: Copyright year changed # # Revision 1.9 2004/07/13 15:54:50 rroesler # Add: file skethtool.c # Fix: corrected header regarding copyright # Fix: minor typos corrected # # Revision 1.8 2004/06/08 08:40:36 mlindner # Fix: Add CONFIG_SK98LIN_ZEROCOPY as default value # # Revision 1.7 2004/06/03 16:06:56 mlindner # Fix: Added compile flag SK_DIAG_SUPPORT # # Revision 1.6 2004/06/02 08:02:59 mlindner # Add: Changed header information and inserted a GPL statement # # #****************************************************************************** # # Standalone driver params # SKPARAM += -DSK_KERNEL_24 # SKPARAM += -DSK_KERNEL_24_26 # SKPARAM += -DSK_KERNEL_26 # SKPARAM += -DSK_KERNEL_22_24 # ASFPARAM += SK_ASF O_TARGET := sk98lin.o obj-y := \ skge.o \ sky2.o \ skethtool.o \ sky2le.o \ skdim.o \ skaddr.o \ skgehwt.o \ skgeinit.o \ skgepnmi.o \ skgesirq.o \ sktwsi.o \ sklm80.o \ skqueue.o \ skrlmt.o \ sktimer.o \ skvpd.o \ skxmac2.o \ skproc.o \ skcsum.o \ ifdef ASFPARAM skgeasf.o \ skgeasfconv.o \ skgespi.o \ skgespilole.o \ skfops.o \ endif obj-m := $(O_TARGET) # DBGDEF = \ # -DDEBUG ifdef DEBUG DBGDEF += \ -DSK_DEBUG_CHKMOD=0x00000000L \ -DSK_DEBUG_CHKCAT=0x00000000L endif # **** possible debug modules for SK_DEBUG_CHKMOD ***************** # SK_DBGMOD_MERR 0x00000001L /* general module error indication */ # SK_DBGMOD_HWM 0x00000002L /* Hardware init module */ # SK_DBGMOD_RLMT 0x00000004L /* RLMT module */ # SK_DBGMOD_VPD 0x00000008L /* VPD module */ # SK_DBGMOD_I2C 0x00000010L /* I2C module */ # SK_DBGMOD_PNMI 0x00000020L /* PNMI module */ # SK_DBGMOD_CSUM 0x00000040L /* CSUM module */ # SK_DBGMOD_ADDR 0x00000080L /* ADDR module */ # SK_DBGMOD_DRV 0x00010000L /* DRV module */ # **** possible debug categories for SK_DEBUG_CHKCAT ************** # *** common modules *** # SK_DBGCAT_INIT 0x00000001L module/driver initialization # SK_DBGCAT_CTRL 0x00000002L controlling: add/rmv MCA/MAC and other controls (IOCTL) # SK_DBGCAT_ERR 0x00000004L error handling paths # SK_DBGCAT_TX 0x00000008L transmit path # SK_DBGCAT_RX 0x00000010L receive path # SK_DBGCAT_IRQ 0x00000020L general IRQ handling # SK_DBGCAT_QUEUE 0x00000040L any queue management # SK_DBGCAT_DUMP 0x00000080L large data output e.g. hex dump # SK_DBGCAT_FATAL 0x00000100L large data output e.g. hex dump # *** driver (file skge.c) *** # SK_DBGCAT_DRV_ENTRY 0x00010000 entry points # SK_DBGCAT_DRV_??? 0x00020000 not used # SK_DBGCAT_DRV_MCA 0x00040000 multicast # SK_DBGCAT_DRV_TX_PROGRESS 0x00080000 tx path # SK_DBGCAT_DRV_RX_PROGRESS 0x00100000 rx path # SK_DBGCAT_DRV_PROGRESS 0x00200000 general runtime # SK_DBGCAT_DRV_??? 0x00400000 not used # SK_DBGCAT_DRV_PROM 0x00800000 promiscuous mode # SK_DBGCAT_DRV_TX_FRAME 0x01000000 display tx frames # SK_DBGCAT_DRV_ERROR 0x02000000 error conditions # SK_DBGCAT_DRV_INT_SRC 0x04000000 interrupts sources # SK_DBGCAT_DRV_EVENT 0x08000000 driver events EXTRA_CFLAGS += -I. -DSK_USE_CSUM -DSK_DIAG_SUPPORT -DGENESIS \ -DCONFIG_SK98LIN_ZEROCOPY -DYUKON -DYUK2 \ $(DBGDEF) $(SKPARAM) $(ASFPARAM) include $(TOPDIR)/Rules.make clean: rm -f core *.o *.a *.s