Lines Matching refs:port
12 Description: Implements a tty on top of the parallel port,
50 static inline uint8 read_status(uint32 port)
53 val = sISAModule->read_io_8(port+1);
57 static inline void write_control(uint32 port, uint8 val)
59 sISAModule->write_io_8(port+2, val);
62 static inline void write_data(uint32 port, uint8 val)
64 sISAModule->write_io_8(port, val);
76 if ((read_status(st->port) & 0xf8) != 0x80)
79 write_data(st->port, 0x08);
82 v = read_status(st->port);
97 v = read_status(st->port);
105 write_data(st->port, 0x01); // ack the sof
118 write_data(st->port, 0x00);
132 write_data(st->port, v & 0x0f);
134 write_data(st->port, (v & 0x0f) | 0x10);
137 s = read_status(st->port);
157 write_data(st->port, (v >> 4) | 0x10);
159 write_data(st->port, (v >> 4));
162 s = read_status(st->port);
180 s = read_status(st->port);
184 } while ((s & 0x80) || (s != read_status(st->port)));
189 write_data(st->port, 0x10);
202 s = read_status(st->port);
206 } while (!(s & 0x80) || (s != read_status(st->port)));
211 write_data(st->port, 0x00);
390 llst.port = LPTBASE;