Lines Matching defs:apci
1 /* $NetBSD: apci.c,v 1.14 2023/04/21 22:44:27 tsutsui Exp $ */
74 #include <hp300/dev/frodoreg.h> /* for APCI offsets */
92 * Only a 425e can have an APCI console. On all other 4xx models,
123 struct apciregs *apci = (struct apciregs *)apcicnaddr;
129 * operator know we're switching to the APCI.
132 printf("Switching to APCI console.\n");
135 apci->ap_cfcr = CFCR_DLAB;
136 apci->ap_data = APCIBRD(9600) & 0xff;
137 apci->ap_ier = (APCIBRD(9600) >> 8) & 0xff;
138 apci->ap_cfcr = CFCR_8BITS;
139 apci->ap_fifo =
141 apci->ap_mcr = MCR_DTR | MCR_RTS;
148 struct apciregs *apci = apcicnaddr;
152 if (((stat = apci->ap_lsr) & LSR_RXRDY) == 0)
154 c = apci->ap_data;
169 struct apciregs *apci = apcicnaddr;
175 while (((stat = apci->ap_lsr) & LSR_TXRDY) == 0 && --timo)
177 apci->ap_data = c;
180 while (((stat = apci->ap_lsr) & LSR_TXRDY) == 0 && --timo)