HV: Merge hypervisor debug header files

-- merge 'assert.h' & 'printf.h' into 'logmsg.h'
  -- merge 'shell.h' into 'console.h'

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Yonghua Huang
2018-08-13 21:23:50 +08:00
committed by wenlingz
parent a6bc36f8ed
commit 77011ce60e
6 changed files with 54 additions and 94 deletions

View File

@@ -7,6 +7,9 @@
#ifndef CONSOLE_H
#define CONSOLE_H
/* Switching key combinations for shell and uart console */
#define GUEST_CONSOLE_TO_HV_SWITCH_KEY 0 /* CTRL + SPACE */
#ifdef HV_DEBUG
extern struct hv_timer console_timer;
@@ -52,6 +55,9 @@ static inline void resume_console(void)
}
void uart16550_set_property(bool enabled, bool port_mapped, uint64_t base_addr);
void shell_init(void);
void shell_kick(void);
#else
static inline void console_init(void)
{
@@ -70,6 +76,9 @@ static inline void suspend_console(void) {}
static inline void resume_console(void) {}
static inline void uart16550_set_property(__unused bool enabled,
__unused bool port_mapped, __unused uint64_t base_addr) {}
static inline void shell_init(void) {}
static inline void shell_kick(void) {}
#endif
#endif /* CONSOLE_H */