#include <asm/current.h>
#include <asm/hvm/support.h>
#include <xen/pci_regs.h>
-
+#include <xen/pci_ids.h>
+
#include "op_x86_model.h"
#include "op_counter.h"
apic_write(reg, APIC_EILVT_MSG_NMI << 8);
}
-#define PCI_VENDOR_ID_AMD 0x1022
#define PCI_DEVICE_ID_AMD_10H_NB_MISC 0x1203
#define IBSCTL 0x1cc
static int __init init_ibs_nmi(void)
#include <xen/acpi.h>
#include <xen/pci.h>
#include <xen/pci_regs.h>
+#include <xen/pci_ids.h>
#include <xen/init.h>
#include <xen/dmi.h>
#include <asm/amd.h>
#include <xen/xmalloc.h>
#include <xen/pci.h>
#include <xen/pci_regs.h>
+#include <xen/pci_ids.h>
#include <asm/e820.h>
#include <asm/msr.h>
#include <asm/msr-index.h>
* Author: Allen Kay <allen.m.kay@intel.com> - adapted from linux
*/
-#define PCI_VENDOR_ID_INTEL 0x8086
#define PCI_DEVICE_ID_INTEL_E7520_MCH 0x3590
#define PCI_DEVICE_ID_INTEL_82945G_HB 0x2770
#define PCI_PROBE_MASK 0x000f
#define PCI_PROBE_NOEARLY 0x0010
-#define PCI_VENDOR_ID_AMD 0x1022
#define PCI_CHECK_ENABLE_AMD_MMCONF 0x20000
-#define PCI_VENDOR_ID_NVIDIA 0x10de
-
extern unsigned int pci_probe;
/*
#ifdef HAS_PCI
#include <xen/pci.h>
#include <xen/pci_regs.h>
+#include <xen/pci_ids.h>
#endif
#include <xen/8250-uart.h>
#include <xen/vmap.h>
{
/* Broadcom TruManage device */
{
- .vendor_id = 0x14e4,
+ .vendor_id = PCI_VENDOR_ID_BROADCOM,
.dev_id = 0x160a,
.param = param_trumanage,
},
/* OXPCIe952 1 Native UART */
{
- .vendor_id = 0x1415,
+ .vendor_id = PCI_VENDOR_ID_OXSEMI,
.dev_id = 0xc138,
.param = param_oxford,
}
--- /dev/null
+#define PCI_VENDOR_ID_AMD 0x1022
+
+#define PCI_VENDOR_ID_NVIDIA 0x10de
+
+#define PCI_VENDOR_ID_OXSEMI 0x1415
+
+#define PCI_VENDOR_ID_BROADCOM 0x14e4
+
+#define PCI_VENDOR_ID_INTEL 0x8086