patch-2.2.15 linux/drivers/net/arlan-proc.c
Next file: linux/drivers/net/arlan.c
Previous file: linux/drivers/net/acenic.c
Back to the patch index
Back to the overall index
- Lines: 80
- Date:
Fri Apr 21 12:46:15 2000
- Orig file:
v2.2.14/drivers/net/arlan-proc.c
- Orig date:
Tue Jan 4 21:18:51 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/net/arlan-proc.c linux/drivers/net/arlan-proc.c
@@ -10,7 +10,6 @@
/* void enableReceive(struct device* dev);
*/
-static int arlan_command(struct device * dev, int command);
#define ARLAN_STR_SIZE 0x2ff0
@@ -185,6 +184,7 @@
return "type A672T";
}
}
+#ifdef ARLAN_DEBUGING
static void arlan_print_diagnostic_info(struct device *dev)
{
@@ -396,6 +396,7 @@
return 0; /* no errors */
}
+#endif
#ifdef ARLAN_PROC_INTERFACE
#ifdef ARLAN_PROC_SHM_DUMP
@@ -820,6 +821,16 @@
{num , #nam, &(arlan_conf[card].nam), \
sizeof(int), 0600, NULL, &proc_dointvec}
+#ifdef ARLAN_DEBUGING
+
+#define ARLAN_PROC_DEBUG_ENTRIES {48, "entry_exit_debug", &arlan_entry_and_exit_debug, \
+ sizeof(int), 0600, NULL, &proc_dointvec},\
+ {49, "debug", &arlan_debug, \
+ sizeof(int), 0600, NULL, &proc_dointvec},
+#else
+#define ARLAN_PROC_DEBUG_ENTRIES
+#endif
+
#define ARLAN_SYSCTL_TABLE_TOTAL(cardNo)\
CTBLN(1,cardNo,spreadingCode),\
@@ -870,10 +881,7 @@
CTBLN(45,cardNo,radioType),\
CTBLN(46,cardNo,writeEEPROM),\
CTBLN(47,cardNo,writeRadioType),\
- {48, "entry_exit_debug", &arlan_entry_and_exit_debug, \
- sizeof(int), 0600, NULL, &proc_dointvec},\
- {49, "debug", &arlan_debug, \
- sizeof(int), 0600, NULL, &proc_dointvec},\
+ ARLAN_PROC_DEBUG_ENTRIES\
CTBLN(50,cardNo,in_speed),\
CTBLN(51,cardNo,out_speed),\
CTBLN(52,cardNo,in_speed10),\
@@ -1008,7 +1016,8 @@
};
#endif
-static int mmtu = 1234;
+
+// static int mmtu = 1234;
static ctl_table arlan_root_table[] =
{
@@ -1017,11 +1026,11 @@
};
/* Make sure that /proc/sys/dev is there */
-static ctl_table arlan_device_root_table[] =
-{
- {CTL_DEV, "dev", NULL, 0, 0555, arlan_root_table},
- {0}
-};
+//static ctl_table arlan_device_root_table[] =
+//{
+// {CTL_DEV, "dev", NULL, 0, 0555, arlan_root_table},
+// {0}
+//};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)