Lines Matching refs:unit
95 int unit;
97 for (unit = 0; unit < NSIO; unit++)
98 siointr(unit);
102 siointr(int unit)
105 struct siodevice *sio = sio_addr[unit];
107 int rr0 = sioreg(REG(unit, RR0), 0);
108 int rr1 = sioreg(REG(unit, RR1), 0);
116 sioreg(REG(unit, WR0), WR0_ERRRST);
119 if (unit == 1) {
120 int c = kbd_decode(sio_addr[unit]->sio_data);
123 PUSH_RBUF(unit, c);
125 PUSH_RBUF(unit, sio_addr[unit]->sio_data);
158 int unit = cp->cn_dev;
161 sioconsole = unit;
167 int c, unit = dev;
169 if (RBUF_EMPTY(unit))
172 POP_RBUF(unit, c);
180 int unit = dev;
185 sioconsole = unit;
191 while ((sioreg(REG(unit, RR0), 0) & RR0_TXEMPTY) == 0)
194 sio_addr[unit]->sio_data = (c & 0xFF);
197 while ((sioreg(REG(unit, RR0), 0) & RR0_TXEMPTY) == 0)