mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 09:06:30 +00:00
- The pci device config is related to VM configurations, so move the device mapping MACROs from pci_devices.h to vm_configurations.h. Also considering pci_devices.h should be generated by offline parse tool, this code change would decouple the relationship between VM configuration tool and target paser tool; - Another minor change is add post-fix in number for each PCI device subclass name to make target parse tool interface friendly; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
17 lines
572 B
C
17 lines
572 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_0 .pbdf.bits = {.b = 0x00U, .d = 0x14U, .f = 0x00U}
|
|
#define USB_CONTROLLER_0 .pbdf.bits = {.b = 0x00U, .d = 0x15U, .f = 0x00U}
|
|
#define ETHERNET_CONTROLLER_0 .pbdf.bits = {.b = 0x03U, .d = 0x00U, .f = 0x00U}
|
|
#define ETHERNET_CONTROLLER_1 .pbdf.bits = {.b = 0x03U, .d = 0x00U, .f = 0x01U}
|
|
|
|
#endif /* PCI_DEVICES_H_ */
|