/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2000,2001,2002,2003,2004,2005,2007,2008,2009,2010 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#include <grub/terminfo.h>
#ifdef GRUB_MACHINE_MIPS_LOONGSON
#endif
GRUB_MOD_LICENSE ("GPLv3+");
/* Argument options. */
{
{0, 0, 0, 0, 0, 0}
};
struct grub_serial_output_state
{
};
struct grub_serial_input_state
{
};
static void
{
}
static int
{
}
{
.tinfo =
{
}
};
{
.tinfo =
{
.put = serial_put,
.width = 80,
.height = 24
}
};
static int registered = 0;
{
.name = "serial",
};
{
.name = "serial",
.cls = grub_terminfo_cls,
};
struct grub_serial_port *
{
break;
#ifndef GRUB_MACHINE_EMU
{
0, 16));
if (!name)
return NULL;
break;
}
#endif
return port;
}
static grub_err_t
{
{
}
{
}
if (argc >= 1)
if (!name)
name = "com0";
if (!port)
{
else
}
{
else
}
/* Initialize with new settings. */
if (err)
return err;
#ifndef GRUB_MACHINE_EMU
/* Compatibility kludge. */
{
if (!registered)
{
}
registered = 1;
}
#endif
return GRUB_ERR_NONE;
}
#ifdef GRUB_MACHINE_MIPS_LOONGSON
{
[GRUB_ARCH_MACHINE_YEELOONG] = "com0",
[GRUB_ARCH_MACHINE_FULOONG2F] = "com2",
[GRUB_ARCH_MACHINE_FULOONG2E] = "com1"
};
#endif
{
if (!in)
return grub_errno;
if (!indata)
{
return grub_errno;
}
{
return grub_errno;
}
if (!out)
{
return grub_errno;
}
if (!outdata)
{
return grub_errno;
}
#ifdef GRUB_MACHINE_MIPS_LOONGSON
{
}
else
{
}
#elif defined (GRUB_MACHINE_MIPS_QEMU_MIPS)
{
}
else
{
}
#else
#endif
return GRUB_ERR_NONE;
}
void
{
}
void
{
{
}
}
{
N_("[OPTIONS...]"),
sizeof (grub_serial_terminfo_output));
sizeof (grub_serial_terminfo_input));
#ifndef GRUB_MACHINE_EMU
grub_ns8250_init ();
#endif
}
{
while (grub_serial_ports)
if (registered)
{
}
}