mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +00:00
Ensure that a serial port is set up before used.
This commit is contained in:
1 parent
a8ac7eb3f9
commit
61928d1323
11 files changed
+58
-11
No files matched your search
@@ -1026,6 +1026,13 @@ serial_get_port (int unit)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Check if a serial port is set up. */
|
||||
int
|
||||
serial_exists (void)
|
||||
{
|
||||
return serial_fd >= 0;
|
||||
}
|
||||
|
||||
/* Initialize a serial device. In the grub shell, PORT is unused. */
|
||||
int
|
||||
serial_init (unsigned short port, unsigned int speed,
|
||||
|
||||
Reference in new issue
Block a user