patch-2.3.10 linux/drivers/misc/parport_procfs.c
Next file: linux/drivers/misc/parport_share.c
Previous file: linux/drivers/misc/parport_probe.c
Back to the patch index
Back to the overall index
- Lines: 60
- Date:
Thu Jul 1 14:22:57 1999
- Orig file:
v2.3.9/linux/drivers/misc/parport_procfs.c
- Orig date:
Thu Jun 3 16:21:47 1999
diff -u --recursive --new-file v2.3.9/linux/drivers/misc/parport_procfs.c linux/drivers/misc/parport_procfs.c
@@ -62,7 +62,7 @@
return copy_to_user(result, buffer, len) ? -EFAULT : 0;
}
-#if 0 && defined (CONFIG_PARPORT_1284)
+#ifdef CONFIG_PARPORT_1284
static int do_autoprobe(ctl_table *table, int write, struct file *filp,
void *result, size_t *lenp)
{
@@ -146,9 +146,11 @@
#define printmode(x) {if(port->modes&PARPORT_MODE_##x){len+=sprintf(buffer+len,"%s%s",f?",":"",#x);f++;}}
int f = 0;
printmode(PCSPP);
- printmode(PCPS2);
- printmode(PCEPP);
- printmode(PCECP);
+ printmode(TRISTATE);
+ printmode(COMPAT);
+ printmode(EPP);
+ printmode(ECP);
+ printmode(DMA);
#undef printmode
}
buffer[len++] = '\n';
@@ -190,7 +192,7 @@
NULL, 0, 0444, NULL,
&do_hardware },
PARPORT_DEVICES_ROOT_DIR,
-#if 0 && defined(CONFIG_PARPORT_1284)
+#ifdef CONFIG_PARPORT_1284
{ DEV_PARPORT_AUTOPROBE, "autoprobe",
NULL, 0, 0444, NULL,
&do_autoprobe },
@@ -292,17 +294,11 @@
for (i = 0; i < 8; i++)
t->vars[i].extra1 = port;
-#if 0 /* Wait for IEEE 1284 support */
t->vars[0].data = &port->spintime;
-#endif
t->vars[2].child = t->device_dir;
for (i = 0; i < 5; i++)
-#if 0
t->vars[3 + i].extra2 = &port->probe_info[i];
-#else
- t->vars[3 + i].extra2 = &port->probe_info;
-#endif
t->port_dir[0].procname = port->name;
t->port_dir[0].ctl_name = port->number + 1; /* nb 0 isn't legal here */
@@ -348,7 +344,7 @@
t->port_dir[0].child = t->devices_root_dir;
t->devices_root_dir[0].child = t->device_dir;
-#if 0 && defined(CONFIG_PARPORT_1284)
+#ifdef CONFIG_PARPORT_1284
t->device_dir[0].ctl_name =
parport_device_num(port->number, port->muxport,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)