patch-2.0.36 linux/drivers/char/specialix_io8.h

Next file: linux/drivers/char/tga.c
Previous file: linux/drivers/char/specialix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/drivers/char/specialix_io8.h linux/drivers/char/specialix_io8.h
@@ -43,15 +43,21 @@
 
 #ifdef __KERNEL__
 
-#define SX_NBOARD		4
+/* You can have max 4 ISA cards in one PC, and I recommend not much 
+more than a few  PCI versions of the card. */
+
+#define SX_NBOARD		8
+
 /* NOTE: Specialix decoder recognizes 4 addresses, but only two are used.... */
 #define SX_IO_SPACE             4
+/* The PCI version decodes 8 addresses, but still only 2 are used. */
+#define SX_PCI_IO_SPACE         8
+
 /* eight ports per board. */
 #define SX_NPORT        	8
 #define SX_BOARD(line)		((line) / SX_NPORT)
 #define SX_PORT(line)		((line) & (SX_NPORT - 1))
 
-
 #define SX_DATA_REG 0     /* Base+0 : Data register */
 #define SX_ADDR_REG 1     /* base+1 : Address register. */
 
@@ -93,6 +99,7 @@
 
 #define SX_BOARD_PRESENT	0x00000001
 #define SX_BOARD_ACTIVE		0x00000002
+#define SX_BOARD_IS_PCI		0x00000004
 
 
 struct specialix_port {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov