acrn-hypervisor/misc/services/life_mngr
Xiangyang Wu 591998e956 misc: life_mngr: add uart module
In the uart module, the following functions are implemented:
- init_uart_dev
Allocate UART device instance and initialize UART device
according to device name.
- deinit_uart_dev
Close UART devcie and free UART device instance.
- send_message_by_uart
Set handler to handle received message.
- receive_message_by_uart
Receive message and retry RETRY_RECV_TIMES time to
avoid miss message in some cases.
- get_uart_dev_fd
Get the file descriptor of a UART device
- get_uart_dev_path
Get the name of a UART device

v1-->v2:
	Update sync logic between uart in service VM and uart in
	user VM, lifecycle manager will not depend on VM boot order.
	Add code comments.
v2-->v3:
	This module only includes UART device operations, move other
	logic into uart channel module.
v3-->v4:
	Add parameters check for interface and refine some names.
v4-->v5:
	Refine interface parameter type, error value.
v5-->v6:
	Update condition check format of deinit_uart_dev.

Tracked-On: #6652

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Reviewed-by: fei1.li@intel.com
2021-11-12 11:04:23 +08:00
..
COPYING.MinGW-w64-runtime.txt tools: rename and category content into debug tools and services 2021-01-27 11:08:28 +08:00
life_mngr_win.c ACRN: misc: Unify terminology for service vm/user vm 2021-11-02 10:00:55 +08:00
life_mngr.c ACRN: misc: Unify terminology for service vm/user vm 2021-11-02 10:00:55 +08:00
life_mngr.service tools: rename and category content into debug tools and services 2021-01-27 11:08:28 +08:00
Makefile Makefile: lifemngr: split linux and windows build 2021-05-20 10:02:33 +08:00
s5_trigger.sh tools: rename and category content into debug tools and services 2021-01-27 11:08:28 +08:00
uart.c misc: life_mngr: add uart module 2021-11-12 11:04:23 +08:00
uart.h misc: life_mngr: add uart module 2021-11-12 11:04:23 +08:00