Exemplo n.º 1
0
static void marvell_serial_putc(const char c)
{
	if (c == '\n')
		NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], '\r');

	NS16550_putc (COM_PORTS[CONFIG_SYS_DUART_CHAN], c);
}
Exemplo n.º 2
0
void putc(char c)
{
	if (c == '\n')
		NS16550_putc((NS16550_t)CONFIG_SYS_NS16550_COM1, '\r');

	NS16550_putc((NS16550_t)CONFIG_SYS_NS16550_COM1, c);
}
Exemplo n.º 3
0
extern void
_serial_putc(const char c, const int port)
{
     if ('\n' == c)
	  NS16550_putc(PORT, '\r');
     NS16550_putc(PORT, c);
}
Exemplo n.º 4
0
void serial_putc(const char c)
{
	if (c == '\n')
		NS16550_putc(console, '\r');

	NS16550_putc(console, c);
}
Exemplo n.º 5
0
void serial_putc (const char c)
{
    if (c == '\n')
        NS16550_putc (COM_PORTS[CFG_DUART_CHAN], '\r');

    NS16550_putc (COM_PORTS[CFG_DUART_CHAN], c);
}
Exemplo n.º 6
0
void
_serial_putc(const char c,const int port)
{
	if (c == '\n')
		NS16550_putc(PORT, '\r');

	NS16550_putc(PORT, c);
}
Exemplo n.º 7
0
void
siocnputchar(void *dev, register int c)
{

	if (c == '\n')
		NS16550_putc((struct NS16550 *)dev, '\r');
	NS16550_putc((struct NS16550 *)dev, c);
}
Exemplo n.º 8
0
void putc(char c)
{
	if (gd->flags & GD_FLG_SILENT)
		return;

	if (c == '\n')
		NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), '\r');

	NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), c);
}
Exemplo n.º 9
0
void
_serial_putc(const char c,const int port)
{
	if (c == '\n')
		NS16550_putc(PORT, '\r');

	NS16550_putc(PORT, c);
#if 1
	serial_outbuf[serial_outbuf_cnt % sizeof(serial_outbuf)] = c;
	serial_outbuf_cnt++;
#endif
}
Exemplo n.º 10
0
void panic_puts(const char *str)
{
	NS16550_t port = (NS16550_t)0x3f8;

	NS16550_init(port, 1);
	while (*str)
		NS16550_putc(port, *str++);
}
Exemplo n.º 11
0
void quad_putc_dev(unsigned long base, const char c)
{
	if (zoom2_debug_board_connected()) {
		NS16550_t port = (NS16550_t) base;

		if (c == '\n')
			quad_putc_dev(base, '\r');

		NS16550_putc(port, c);
	}
}
Exemplo n.º 12
0
void puts(const char *s)
{
	int x,y;
	char c;

	x = orig_x;
	y = orig_y;

	while ( ( c = *s++ ) != '\0' ) {
#if defined(CONFIG_SERIAL_CONSOLE)
	        NS16550_putc(com_port, c);
	        if ( c == '\n' ) NS16550_putc(com_port, '\r');
#endif /* CONFIG_SERIAL_CONSOLE */

		if ( c == '\n' ) {
			x = 0;
			if ( ++y >= lines ) {
				scroll();
				y--;
			}
		} else if (c == '\b') {
		  if (x > 0) {
		    x--;
		  }
		} else {
			vidmem [ ( x + cols * y ) * 2 ] = c; 
			if ( ++x >= cols ) {
				x = 0;
				if ( ++y >= lines ) {
					scroll();
					y--;
				}
			}
		}
	}

	cursor(x, y);

	orig_x = x;
	orig_y = y;
}
Exemplo n.º 13
0
void quad_putc_dev (unsigned long base, const char c)
{
	if (zoom2_debug_board_connected ()) {

		if (c == '\n')
			quad_putc_dev (base, '\r');

		NS16550_putc ((NS16550_t) base, c);
	} else {
		usbtty_putc(c);
	}
}
Exemplo n.º 14
0
extern void
_serial_putc_raw(const char c, const int port)
{
     NS16550_putc(PORT, c);
}
Exemplo n.º 15
0
void serial_putc (const char c)
{
	NS16550_putc (Com0, c);
	if (c == '\n')
		NS16550_putc (Com0, 0x0D);
}