1 |
/* serial.h - serial device interface */ |
/* serial.h - serial device interface */ |
2 |
/* |
/* |
3 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
4 |
* Copyright (C) 2000 Free Software Foundation, Inc. |
* Copyright (C) 2000, 2001 Free Software Foundation, Inc. |
5 |
* |
* |
6 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
7 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
93 |
int serial_init (unsigned short port, unsigned int speed, |
int serial_init (unsigned short port, unsigned int speed, |
94 |
int word_len, int parity, int stop_bit_len); |
int word_len, int parity, int stop_bit_len); |
95 |
|
|
96 |
|
/* Check if a serial port is set up. */ |
97 |
|
int serial_exists (void); |
98 |
|
|
99 |
#ifdef GRUB_UTIL |
#ifdef GRUB_UTIL |
100 |
/* Set the file name of a serial device (or a pty device). This is a |
/* Set the file name of a serial device (or a pty device). This is a |
101 |
function specific to the grub shell. */ |
function specific to the grub shell. */ |