Lines Matching defs:ports
31 static apm88xxxx_pc16550_t ports[MAX_NUM_UARTS];
40 if ((lpaddr_t)ports[port].base == (platform_uart_base[port] + KERNEL_OFFSET)) {
44 apm88xxxx_pc16550_t *uart = &ports[port];
64 if ((lpaddr_t)ports[port].base == platform_uart_base[port]) {
68 apm88xxxx_pc16550_t *uart = &ports[port];
85 assert(ports[port].base != 0);
87 while(!apm88xxxx_pc16550_LSR_thre_rdf(&ports[port]));
89 apm88xxxx_pc16550_THR_thr_wrf(&ports[port], c);
99 assert(ports[port].base != 0);
102 while(!apm88xxxx_pc16550_LSR_dr_rdf(&ports[port]));
104 return apm88xxxx_pc16550_RBR_rbr_rdf(&ports[port]);