Lines Matching defs:parport
16 * Support for parport by Philip Blundell <philb@gnu.org>
38 * appropriate low-level driver; all I/O is done through the parport
59 * # insmod lp.o parport=1,none,2
61 * # insmod lp.o parport=auto
75 * The new driver, by default, binds lp devices to parport devices as it
133 #include <linux/parport.h>
153 static struct parport *console_registered;
158 /* Bits used to manage claiming the parport device */
169 /* Claim the parport or block trying unless we've already claimed it */
177 /* Claim the parport or block trying unless we've already claimed it */
199 static int lp_negotiate(struct parport *port, int mode)
305 struct parport *port = lp_table[minor].dev->port;
404 printk(KERN_INFO "lp%d releasing parport\n", minor);
424 struct parport *port = lp_table[minor].dev->port;
818 struct parport *port = dev->port;
879 static char *parport[LP_NO];
882 module_param_array(parport, charp, NULL, 0);
899 } else if (!strncmp(str, "parport", 7)) {
921 static int lp_register(int nr, struct parport *port)
959 static void lp_attach(struct parport *port)
993 static void lp_detach(struct parport *port)
1059 printk(KERN_ERR "lp: unable to register with parport\n");
1083 if (parport[0]) {
1085 if (!strncmp(parport[0], "auto", 4))
1089 for (n = 0; n < LP_NO && parport[n]; n++) {
1090 if (!strncmp(parport[n], "none", 4))
1094 unsigned long r = simple_strtoul(parport[n], &ep, 0);
1095 if (ep != parport[n])
1098 printk(KERN_ERR "lp: bad port specifier `%s'\n", parport[n]);