mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-22 21:28:45 +00:00
Use MACROs in pt_dev.c to replace straight-forward BDF numbers. The pt devices for each VM will be chosen from Board specific PCI devices list which defined in pci_devices.h; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
21 lines
611 B
C
21 lines
611 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PCI_DEVICES_H_
|
|
#define PCI_DEVICES_H_
|
|
|
|
#define HOST_BRIDGE .pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U}
|
|
#define SATA_CONTROLLER .pbdf.bits = {.b = 0x00U, .d = 0x12U, .f = 0x00U}
|
|
#define USB_CONTROLLER .pbdf.bits = {.b = 0x00U, .d = 0x15U, .f = 0x00U}
|
|
|
|
#define STORAGE_CONTROLLER_0 SATA_CONTROLLER
|
|
#define STORAGE_CONTROLLER_1 USB_CONTROLLER
|
|
|
|
#define ETHERNET_CONTROLLER_0 .pbdf.bits = {.b = 0x02U, .d = 0x00U, .f = 0x00U}
|
|
#define ETHERNET_CONTROLLER_1
|
|
|
|
#endif /* PCI_DEVICES_H_ */
|