patch-2.4.0-test4 linux/Documentation/DocBook/parportbook.tmpl
Next file: linux/Documentation/filesystems/Locking
Previous file: linux/Documentation/Configure.help
Back to the patch index
Back to the overall index
- Lines: 61
- Date:
Wed Jul 12 16:24:33 2000
- Orig file:
v2.4.0-test3/linux/Documentation/DocBook/parportbook.tmpl
- Orig date:
Mon Jul 10 16:47:18 2000
diff -u --recursive --new-file v2.4.0-test3/linux/Documentation/DocBook/parportbook.tmpl linux/Documentation/DocBook/parportbook.tmpl
@@ -386,7 +386,7 @@
announces it. The <function>parport_announce_port</function>
function walks down the list of parallel port device drivers
(<structname>struct parport_driver</structname>s) calling the
- <function>attach</function> function of each.
+ <function>attach</function> function of each (which may block).
</para>
<para>
@@ -394,7 +394,7 @@
registering a port with the
<function>parport_unregister_port</function> function, and device
drivers are notified using the <function>detach</function>
- callback.
+ callback (which may not block).
</para>
<para>
@@ -656,9 +656,31 @@
to the <function>attach</function> function when it is called, or
alternatively can be found from the list of detected parallel ports
directly with the (now deprecated)
- <function>parport_enumerate</function> function.
+ <function>parport_enumerate</function> function. A better way of
+ doing this is with <function>parport_find_number</function> or
+ <function>parport_find_base</function> functions, which find ports
+ by number and by base I/O address respectively.
</para>
+ <funcsynopsis>
+ <funcsynopsisinfo>
+#include <parport.h>
+ </funcsynopsisinfo>
+ <funcprototype>
+ <funcdef>struct parport *<function>parport_find_number</function></funcdef>
+ <paramdef>int <parameter>number</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <funcsynopsis>
+ <funcsynopsisinfo>
+#include <parport.h>
+ </funcsynopsisinfo>
+ <funcprototype>
+ <funcdef>struct parport *<function>parport_find_base</function></funcdef>
+ <paramdef>unsigned long <parameter>base</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+
<para>
The next three parameters, <parameter>pf</parameter>,
<parameter>kf</parameter>, and <parameter>irq_func</parameter>, are
@@ -2202,6 +2224,9 @@
!Fdrivers/parport/daisy.c parport_find_class
!Fdrivers/parport/share.c parport_register_driver
!Fdrivers/parport/share.c parport_unregister_driver
+!Fdrivers/parport/share.c parport_get_port
+!Fdrivers/parport/share.c parport_put_port
+!Fdrivers/parport/share.c parport_find_number parport_find_base
!Fdrivers/parport/share.c parport_register_device
!Fdrivers/parport/share.c parport_unregister_device
!Fdrivers/parport/daisy.c parport_open
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)