mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
HV: decouple legacy vuart interface from acrn_vuart layer
support pci-vuart type, and refine: 1.Rename init_vuart() to init_legacy_vuarts(), only init PIO type. 2.Rename deinit_vuart() to deinit_legacy_vuarts(), only deinit PIO type. 3.Move io handler code out of setup_vuart(), into init_legacy_vuarts() 4.add init_pci_vuart(), deinit_pci_vuart, for one pci vuart vdev. and some change from requirement: 1.Increase MAX_VUART_NUM_PER_VM to 8. Tracked-On: #5394 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -78,11 +78,14 @@ struct acrn_vuart {
|
||||
bool active;
|
||||
struct acrn_vuart *target_vu; /* Pointer to target vuart */
|
||||
struct acrn_vm *vm;
|
||||
struct pci_vdev *vdev; /* pci vuart */
|
||||
spinlock_t lock; /* protects all softc elements */
|
||||
};
|
||||
|
||||
void init_vuart(struct acrn_vm *vm, const struct vuart_config *vu_config);
|
||||
void deinit_vuart(struct acrn_vm *vm);
|
||||
void init_legacy_vuarts(struct acrn_vm *vm, const struct vuart_config *vu_config);
|
||||
void deinit_legacy_vuarts(struct acrn_vm *vm);
|
||||
void init_pci_vuart(struct pci_vdev *vdev);
|
||||
void deinit_pci_vuart(struct pci_vdev *vdev);
|
||||
|
||||
void vuart_putchar(struct acrn_vuart *vu, char ch);
|
||||
char vuart_getchar(struct acrn_vuart *vu);
|
||||
|
Reference in New Issue
Block a user