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>
151 static struct parport *console_registered;
156 /* Bits used to manage claiming the parport device */
167 /* Claim the parport or block trying unless we've already claimed it */
175 /* Claim the parport or block trying unless we've already claimed it */
197 static int lp_negotiate(struct parport *port, int mode)
303 struct parport *port = lp_table[minor].dev->port;
402 printk(KERN_INFO "lp%d releasing parport\n", minor);
422 struct parport *port = lp_table[minor].dev->port;
817 struct parport *port = dev->port;
878 static char *parport[LP_NO];
881 module_param_array(parport, charp, NULL, 0);
898 } else if (!strncmp(str, "parport", 7)) {
920 static int lp_register(int nr, struct parport *port)
958 static void lp_attach(struct parport *port)
992 static void lp_detach(struct parport *port)
1060 printk(KERN_ERR "lp: unable to register with parport\n");
1084 if (parport[0]) {
1086 if (!strncmp(parport[0], "auto", 4))
1090 for (n = 0; n < LP_NO && parport[n]; n++) {
1091 if (!strncmp(parport[n], "none", 4))
1095 unsigned long r = simple_strtoul(parport[n], &ep, 0);
1096 if (ep != parport[n])
1099 printk(KERN_ERR "lp: bad port specifier `%s'\n", parport[n]);