Lines Matching defs:control
53 * control register.
95 static unsigned char control_pc_to_mfc3(unsigned char control)
99 if (control & PARPORT_CONTROL_SELECT) /* XXX: What is SELECP? */
101 if (control & PARPORT_CONTROL_INIT) /* INITP */
103 if (control & PARPORT_CONTROL_AUTOFD) /* AUTOLF */
105 if (control & PARPORT_CONTROL_STROBE) /* Strobe */
110 static unsigned char control_mfc3_to_pc(unsigned char control)
115 if (control & 128) /* /INITP */
117 if (control & 64) /* /AUTOLF */
119 if (control & 32) /* /SELECT_IN */
124 static void mfc3_write_control(struct parport *p, unsigned char control)
126 pr_debug("write_control %02x\n", control);
127 pia(p)->ppra = (pia(p)->ppra & 0x1f) | control_pc_to_mfc3(control);