1 /* ----------------------------------------------------------------------- *
3 * Copyright 2007 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
16 * Print serial port info
22 #include <syslinux/config.h>
26 const struct syslinux_serial_console_info
*si
;
28 openconsole(&dev_null_r
, &dev_stdcon_w
);
30 si
= syslinux_serial_console_info();
32 printf("Serial port base: %#06x\n", si
->iobase
);
33 printf("Serial port divisor: %5d", si
->divisor
);
35 printf(" (%d baud)", 115200/si
->divisor
);
37 "Flow control bits: %#05x\n", si
->flowctl
);