mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
hv:Reshuffle console/uart code
The current hierarchy : CONSOLE --> SERIAL -->UART DRIVER This patch remove SERIAL layer, that is console will call UART driver directly, change it to: CONSOLE --> UART DRIVER Remove some related data structures and registration and callback. Cleanup vuart.c Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -63,8 +63,8 @@ struct vuart {
|
||||
#ifdef HV_DEBUG
|
||||
void *vuart_init(struct vm *vm);
|
||||
struct vuart *vuart_console_active(void);
|
||||
void vuart_console_tx_chars(void);
|
||||
void vuart_console_rx_chars(uint32_t serial_handle);
|
||||
void vuart_console_tx_chars(struct vuart *vu);
|
||||
void vuart_console_rx_chars(struct vuart *vu);
|
||||
#else
|
||||
static inline void *vuart_init(__unused struct vm *vm)
|
||||
{
|
||||
@@ -74,11 +74,8 @@ static inline struct vuart *vuart_console_active(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline void vuart_console_tx_chars(void) {}
|
||||
static inline void vuart_console_rx_chars(
|
||||
__unused uint32_t serial_handle)
|
||||
{
|
||||
}
|
||||
static inline void vuart_console_tx_chars(__unused struct vuart *vu) {}
|
||||
static inline void vuart_console_rx_chars(__unused struct vuart *vu) {}
|
||||
#endif /*HV_DEBUG*/
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user