2018-03-07 20:57:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
|
|
*
|
2018-05-26 01:49:13 +08:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2018-03-07 20:57:14 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SERIAL_H
|
|
|
|
#define SERIAL_H
|
|
|
|
|
|
|
|
#ifdef HV_DEBUG
|
|
|
|
int serial_init(void);
|
2018-03-22 16:44:56 +08:00
|
|
|
void uart16550_set_property(int enabled, int port_mapped, uint64_t base_addr);
|
2018-03-07 20:57:14 +08:00
|
|
|
#else
|
|
|
|
static inline int serial_init(void) { return 0; }
|
2018-03-22 16:44:56 +08:00
|
|
|
static inline void uart16550_set_property(__unused int enabled,
|
|
|
|
__unused int port_mapped,
|
|
|
|
__unused uint64_t base_addr)
|
|
|
|
{
|
|
|
|
}
|
2018-03-07 20:57:14 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|