mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-04 22:47:00 +00:00
serial PCI device is just used for HV/SOS output debug information; because it is used in hypervisor layer, SOS should not touch it. so need to check and hide it from SOS. Tracked-On: #1923 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
32 lines
669 B
C
32 lines
669 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <hypervisor.h>
|
|
|
|
size_t console_write(__unused const char *str, __unused size_t len)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
char console_getc(void)
|
|
{
|
|
return '\0';
|
|
}
|
|
|
|
void console_putc(__unused const char *ch) {}
|
|
|
|
void console_init(void) {}
|
|
void console_setup_timer(void) {}
|
|
|
|
void suspend_console(void) {}
|
|
void resume_console(void) {}
|
|
|
|
void uart16550_set_property(__unused bool enabled, __unused bool port_mapped, __unused uint64_t base_addr) {}
|
|
bool is_pci_dbg_uart(__unused union pci_bdf bdf_value) { return false; }
|
|
|
|
void shell_init(void) {}
|
|
void shell_kick(void) {}
|