mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: vuart: refine vuart read/write
The vuart_read()/vuart_write() are coupled with PIO vuart type. Move the non-type related code into vuart_read_reg()/vuart_write_reg(), so that we can re-use them to handle MMIO request of pci-vuart type. Tracked-On: #5394 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -89,4 +89,7 @@ char vuart_getchar(struct acrn_vuart *vu);
|
||||
void vuart_toggle_intr(const struct acrn_vuart *vu);
|
||||
|
||||
bool is_vuart_intx(const struct acrn_vm *vm, uint32_t intx_gsi);
|
||||
|
||||
uint8_t vuart_read_reg(struct acrn_vuart *vu, uint16_t offset);
|
||||
void vuart_write_reg(struct acrn_vuart *vu, uint16_t offset, uint8_t value);
|
||||
#endif /* VUART_H */
|
||||
|
Reference in New Issue
Block a user