acrn-hypervisor/hypervisor/include/debug/serial.h
David B. Kinder f4122d99c5 license: Replace license text with SPDX tag
Replace the BSD-3-Clause boiler plate license text with an SPDX tag.

Fixes: #189

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
2018-06-01 10:43:06 +08:00

23 lines
471 B
C

/*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef SERIAL_H
#define SERIAL_H
#ifdef HV_DEBUG
int serial_init(void);
void uart16550_set_property(int enabled, int port_mapped, uint64_t base_addr);
#else
static inline int serial_init(void) { return 0; }
static inline void uart16550_set_property(__unused int enabled,
__unused int port_mapped,
__unused uint64_t base_addr)
{
}
#endif
#endif