taglinefilesource code
com_port63arch/ppc/kernel/raw_printf.cvoid NS16550_putc(volatile struct NS16550 *com_port, unsigned char c);
com_port64arch/ppc/kernel/raw_printf.cunsigned char NS16550_getc(volatile struct NS16550 *com_port);
com_port391arch/ppc/kernel/raw_printf.ccom_port = (struct NS16550 *) COM_PORTS[chan];
com_port393arch/ppc/kernel/raw_printf.ccom_port->lcr = 0x00;
com_port394arch/ppc/kernel/raw_printf.ccom_port->ier = 0xFF;
com_port396arch/ppc/kernel/raw_printf.cif (com_port->ier != 0x0F) return ((struct NS16550 *)0);
com_port398arch/ppc/kernel/raw_printf.ccom_port->ier = 0x00;
com_port399arch/ppc/kernel/raw_printf.ccom_port->lcr = 0x80;  /* Access baud rate */
com_port400arch/ppc/kernel/raw_printf.ccom_port->dll = 12;  /* 9600 baud */
com_port401arch/ppc/kernel/raw_printf.ccom_port->dlm = 12 >> 8;
com_port402arch/ppc/kernel/raw_printf.ccom_port->lcr = 0x03;  /* 8 data, 1 stop, no parity */
com_port403arch/ppc/kernel/raw_printf.ccom_port->mcr = 0x03;  /* RTS/DTR */
com_port404arch/ppc/kernel/raw_printf.ccom_port->fcr = 0x07;  /* Clear & enable FIFOs */
com_port412arch/ppc/kernel/raw_printf.cwhile ((com_port->lsr & LSR_THRE) == 0) ;
com_port413arch/ppc/kernel/raw_printf.ccom_port->thr = c;
com_port419arch/ppc/kernel/raw_printf.cwhile ((com_port->lsr & LSR_DR) == 0) ;
com_port420arch/ppc/kernel/raw_printf.creturn (com_port->rbr);
com_port425arch/ppc/kernel/raw_printf.creturn ((com_port->lsr & LSR_DR) != 0);