diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2018-09-19 08:06:54 +0200 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-09-20 12:38:02 +0000 |
commit | ca0c8e75f9106ecd436db87424b6d836a465c0a2 (patch) | |
tree | 90919d0f9ebfa19875a269ed8cfa3d93937f6c34 /src/soc/intel/fsp_broadwell_de/vtd.c | |
parent | 5a0b252ded2a3f0f70436ad55f4908c8ec8683e6 (diff) | |
download | coreboot-ca0c8e75f9106ecd436db87424b6d836a465c0a2.tar.xz |
fsp_broadwell_de: Move DMAR table generation to corresponding VT-d device
The DMAR table generation depends on the VT-d feature which is
implemented in its own PCI device located in PCI:00:05.0 for
Broadwell-DE. Add a new PCI driver for this device and move
DMAR table generation to this device driver.
Change-Id: I103257c73f5e745e996a441a2535b885270bc204
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/28671
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'src/soc/intel/fsp_broadwell_de/vtd.c')
-rw-r--r-- | src/soc/intel/fsp_broadwell_de/vtd.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/soc/intel/fsp_broadwell_de/vtd.c b/src/soc/intel/fsp_broadwell_de/vtd.c new file mode 100644 index 0000000000..ad4a056dd1 --- /dev/null +++ b/src/soc/intel/fsp_broadwell_de/vtd.c @@ -0,0 +1,30 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2018 Siemens AG + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <device/pci.h> +#include <device/pci_ids.h> +#include <soc/pci_devs.h> +#include <soc/acpi.h> + + +static struct device_operations vtd_ops = { + .write_acpi_tables = vtd_write_acpi_tables, +}; + +static const struct pci_driver vtd_driver __pci_driver = { + .ops = &vtd_ops, + .vendor = PCI_VENDOR_ID_INTEL, + .device = VTD_DEVID, +}; |