soc/amd/common/block/iommu: factor out PCI register definitions

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ie155cab1f659e9f7b64cd87ba8a77260056656d8
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76222
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2023-07-03 18:50:48 +02:00
parent 6da62684de
commit e54e141d6c
2 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#define IOMMU_CAP_BASE_LO 0x44
#define IOMMU_ENABLE (1 << 0)
#define IOMMU_CAP_BASE_HI 0x48

View File

@ -1,14 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/iommu.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <lib.h> #include <lib.h>
#define IOMMU_CAP_BASE_LO 0x44
#define IOMMU_CAP_BASE_HI 0x48
#define IOMMU_ENABLE (1 << 0)
static void iommu_read_resources(struct device *dev) static void iommu_read_resources(struct device *dev)
{ {
struct resource *res; struct resource *res;