patch-2.1.48 linux/include/linux/parport.h
Next file: linux/include/linux/proc_fs.h
Previous file: linux/include/linux/nvram.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Mon Aug 4 14:00:47 1997
- Orig file:
v2.1.47/linux/include/linux/parport.h
- Orig date:
Sun Jul 27 12:11:01 1997
diff -u --recursive --new-file v2.1.47/linux/include/linux/parport.h linux/include/linux/parport.h
@@ -130,8 +130,7 @@
*
* 2) a wake-up function, called by the resource manager to tell drivers
* that the port is available to be claimed. If a driver wants to use
- * the port, it should call parport_claim() here. The return value from
- * this function is ignored.
+ * the port, it should call parport_claim() here.
*/
/* A parallel port device */
@@ -187,6 +186,9 @@
struct parport *parport_register_port(unsigned long base, int irq, int dma,
struct parport_operations *ops);
+/* Unregister a port. */
+void parport_unregister_port(struct parport *port);
+
/* parport_in_use returns nonzero if there are devices attached to a port. */
#define parport_in_use(x) ((x)->devices != NULL)
@@ -209,7 +211,7 @@
*/
struct pardevice *parport_register_device(struct parport *port,
const char *name,
- int (*pf)(void *), int (*kf)(void *),
+ int (*pf)(void *), void (*kf)(void *),
void (*irq_func)(int, void *, struct pt_regs *),
int flags, void *handle);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov