mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: PTM: Add virtual root port
Add virtual root port that supports the most basic pci-e bridge and root port operations. - init_vroot_port(): init vroot_port's basic registers. - deinit_vroot_port(): reset vroot_port - read_vroot_port_cfg(): read from vroot_port's virtual config space. - write_vroot_port_cfg(): write to vroot_port's virtual config space. Tracked-On: #5915 Signed-off-by: Rong Liu <rong.l.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Jason Chen <jason.cj.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
18
hypervisor/include/dm/vroot_port.h
Normal file
18
hypervisor/include/dm/vroot_port.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2021 Intel Corporation.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __VROOT_PORT_H
|
||||
#define __VROOT_PORT_H
|
||||
|
||||
#include "vpci.h"
|
||||
|
||||
#define VROOT_PORT_VENDOR 0x8086U
|
||||
#define VROOT_PORT_DEVICE 0x9d14U
|
||||
|
||||
extern const struct pci_vdev_ops vroot_port_ops;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user