patch-2.4.23 linux-2.4.23/drivers/net/sk98lin/h/skdrv1st.h
Next file: linux-2.4.23/drivers/net/sk98lin/h/skdrv2nd.h
Previous file: linux-2.4.23/drivers/net/sk98lin/h/skdebug.h
Back to the patch index
Back to the overall index
- Lines: 85
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/net/sk98lin/h/skdrv1st.h
- Orig date:
2003-06-13 07:51:35.000000000 -0700
diff -urN linux-2.4.22/drivers/net/sk98lin/h/skdrv1st.h linux-2.4.23/drivers/net/sk98lin/h/skdrv1st.h
@@ -2,16 +2,15 @@
*
* Name: skdrv1st.h
* Project: GEnesis, PCI Gigabit Ethernet Adapter
- * Version: $Revision: 1.9.2.2 $
- * Date: $Date: 2001/12/07 12:06:42 $
+ * Version: $Revision: 1.1 $
+ * Date: $Date: 2003/07/21 07:22:43 $
* Purpose: First header file for driver and all other modules
*
******************************************************************************/
/******************************************************************************
*
- * (C)Copyright 1998-2001 SysKonnect,
- * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
+ * (C)Copyright 1998-2003 SysKonnect GmbH.
*
* 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
@@ -27,6 +26,30 @@
* History:
*
* $Log: skdrv1st.h,v $
+ * Revision 1.1 2003/07/21 07:22:43 rroesler
+ * Fix: Re-Enter after CVS crash
+ *
+ * Revision 1.15 2003/07/17 14:54:09 rroesler
+ * Fix: Corrected SK_PNMI_READ macros to copy right amount of bytes
+ *
+ * Revision 1.14 2003/06/03 14:36:32 mlindner
+ * Add: Additions for SK_SLIM
+ *
+ * Revision 1.13 2003/05/26 14:03:06 mlindner
+ * Add: Support for SLIM skaddr
+ *
+ * Revision 1.12 2003/05/26 12:56:39 mlindner
+ * Add: Support for Kernel 2.5/2.6
+ * Add: New SkOsGetTimeCurrent function
+ * Add: SK_PNMI_HUNDREDS_SEC definition
+ * Fix: SK_TICKS_PER_SEC on Intel Itanium2
+ *
+ * Revision 1.11 2003/02/25 14:16:40 mlindner
+ * Fix: Copyright statement
+ *
+ * Revision 1.10 2002/10/02 12:46:02 mlindner
+ * Add: Support for Yukon
+ *
* Revision 1.9.2.2 2001/12/07 12:06:42 mlindner
* Fix: malloc -> slab changes
*
@@ -89,19 +112,20 @@
/* Check kernel version */
#include <linux/version.h>
-#if (LINUX_VERSION_CODE > 0x020300)
-#endif
typedef struct s_AC SK_AC;
+/* Set card versions */
+#define SK_FAR
+
/* override some default functions with optimized linux functions */
#define SK_PNMI_STORE_U16(p,v) memcpy((char*)(p),(char*)&(v),2)
#define SK_PNMI_STORE_U32(p,v) memcpy((char*)(p),(char*)&(v),4)
#define SK_PNMI_STORE_U64(p,v) memcpy((char*)(p),(char*)&(v),8)
#define SK_PNMI_READ_U16(p,v) memcpy((char*)&(v),(char*)(p),2)
-#define SK_PNMI_READ_U32(p,v) memcpy((char*)&(v),(char*)(p),2)
-#define SK_PNMI_READ_U64(p,v) memcpy((char*)&(v),(char*)(p),2)
+#define SK_PNMI_READ_U32(p,v) memcpy((char*)&(v),(char*)(p),4)
+#define SK_PNMI_READ_U64(p,v) memcpy((char*)&(v),(char*)(p),8)
#define SkCsCalculateChecksum(p,l) ((~ip_compute_csum(p, l)) & 0xffff)
@@ -150,7 +174,7 @@
/* we use gethrtime(), return unit: nanoseconds */
-#define SK_TICKS_PER_SEC HZ
+#define SK_TICKS_PER_SEC 100
#define SK_MEM_MAPPED_IO
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)