tag | line | file | source code |
com_port | 378 | arch/ppc/kernel/raw_printf.c | com_port = (struct NS16550 *) COM_PORTS[chan]; |
com_port | 380 | arch/ppc/kernel/raw_printf.c | com_port->lcr = 0x00; |
com_port | 381 | arch/ppc/kernel/raw_printf.c | com_port->ier = 0xFF; |
com_port | 383 | arch/ppc/kernel/raw_printf.c | if (com_port->ier != 0x0F) return ((struct NS16550 *)0); |
com_port | 385 | arch/ppc/kernel/raw_printf.c | com_port->ier = 0x00; |
com_port | 386 | arch/ppc/kernel/raw_printf.c | com_port->lcr = 0x80; /* Access baud rate */ |
com_port | 387 | arch/ppc/kernel/raw_printf.c | com_port->dll = 12; /* 9600 baud */ |
com_port | 388 | arch/ppc/kernel/raw_printf.c | com_port->dlm = 12 >> 8; |
com_port | 389 | arch/ppc/kernel/raw_printf.c | com_port->lcr = 0x03; /* 8 data, 1 stop, no parity */ |
com_port | 390 | arch/ppc/kernel/raw_printf.c | com_port->mcr = 0x03; /* RTS/DTR */ |
com_port | 391 | arch/ppc/kernel/raw_printf.c | com_port->fcr = 0x07; /* Clear & enable FIFOs */ |
com_port | 399 | arch/ppc/kernel/raw_printf.c | while ((com_port->lsr & LSR_THRE) == 0) ; |
com_port | 400 | arch/ppc/kernel/raw_printf.c | com_port->thr = c; |
com_port | 405 | arch/ppc/kernel/raw_printf.c | while ((com_port->lsr & LSR_DR) == 0) ; |
com_port | 406 | arch/ppc/kernel/raw_printf.c | return (com_port->rbr); |
com_port | 411 | arch/ppc/kernel/raw_printf.c | return ((com_port->lsr & LSR_DR) != 0); |