Lines Matching refs:port

14  * HP GSC PS/2 port driver, found in PA/RISC Workstations
21 * - Dino testing (did HP ever shipped a machine on which this port
41 MODULE_DESCRIPTION("HP GSC PS2 port driver");
57 /* PS/2 IO port offsets */
59 #define GSC_RESET 0x00 /* reset port offset */
60 #define GSC_RCVDATA 0x04 /* receive port offset */
61 #define GSC_XMTDATA 0x04 /* transmit port offset */
77 #define GSC_STAT_CMPINTR 0x10 /* Composite Interrupt = irq on any port */
81 /* IDs returned by GSC_ID port register */
90 /* GSC PS/2 port device struct */
94 struct serio *port;
143 * gscps2_writeb_output() - write a byte to the port
165 /* this is ugly, but due to timing of the port it seems to be necessary. */
177 * gscps2_enable() - enables or disables the port
185 /* now enable/disable the port */
200 * gscps2_reset() - resets the PS/2 port
223 * The problematic part here is, that the keyboard and mouse PS/2 port
271 serio_interrupt(ps2port->port, data, rxflags);
285 static int gscps2_write(struct serio *port, unsigned char data)
287 struct gscps2port *ps2port = port->port_data;
297 * gscps2_open() is called when a port is opened by the higher layer.
298 * It resets and enables the port.
301 static int gscps2_open(struct serio *port)
303 struct gscps2port *ps2port = port->port_data;
316 * gscps2_close() disables the port
319 static void gscps2_close(struct serio *port)
321 struct gscps2port *ps2port = port->port_data;
353 ps2port->port = serio;
372 if (request_irq(dev->irq, gscps2_interrupt, IRQF_SHARED, ps2port->port->name, ps2port))
376 printk(KERN_WARNING PFX "Unsupported PS/2 port at 0x%08lx (id=%d) ignored\n",
383 if (!request_mem_region(hpa, GSC_STATUS + 4, ps2port->port.name))
387 printk(KERN_INFO "serio: %s port at 0x%p irq %d @ %s\n",
388 ps2port->port->name,
391 ps2port->port->phys);
393 serio_register_port(ps2port->port);
421 serio_unregister_port(ps2port->port);