patch-2.4.4 linux/include/linux/sdladrv.h

Next file: linux/include/linux/sdlapci.h
Previous file: linux/include/linux/sdla_x25.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/linux/sdladrv.h linux/include/linux/sdladrv.h
@@ -3,7 +3,7 @@
 *
 * Author: 	Gideon Hack	
 *
-* Copyright:	(c) 1995-1999 Sangoma Technologies Inc.
+* Copyright:	(c) 1995-2000 Sangoma Technologies Inc.
 *
 *		This program is free software; you can redistribute it and/or
 *		modify it under the terms of the GNU General Public License
@@ -20,13 +20,21 @@
 #define	_SDLADRV_H
 
 #include <linux/version.h>
-#if LINUX_VERSION_CODE >= 0x020100
+
+#ifndef KERNEL_VERSION
+  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+#endif
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
+#define LINUX_2_4	
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0)
 #define LINUX_2_1
+#else
+#define LINUX_2_0
 #endif
 
 #define	SDLA_MAXIORANGE	4	/* maximum I/O port range */
 #define	SDLA_WINDOWSIZE	0x2000	/* default dual-port memory window size */
-
 /****** Data Structures *****************************************************/
 
 /*----------------------------------------------------------------------------
@@ -41,7 +49,8 @@
 	int irq;			/* interrupt request level */
 	char S514_cpu_no[1];		/* PCI CPU Number */
 	unsigned char S514_slot_no;	/* PCI Slot Number */
-#ifdef LINUX_2_1
+	char auto_pci_cfg;		/* Autodetect PCI Slot */
+#if defined(LINUX_2_1) || defined(LINUX_2_4)
 	struct pci_dev *pci_dev;	/* PCI device */
 #else
 	unsigned char pci_bus;		/* PCI bus number */
@@ -73,5 +82,7 @@
 extern int sdla_poke	(sdlahw_t* hw, unsigned long addr, void* buf,
 			 unsigned len);
 extern int sdla_exec	(void* opflag);
+
+extern unsigned wanpipe_hw_probe(void);
 
 #endif	/* _SDLADRV_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)