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:
5
src/soc/amd/common/block/include/amdblocks/iommu.h
Normal file
5
src/soc/amd/common/block/include/amdblocks/iommu.h
Normal 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
|
@@ -1,14 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <amdblocks/iommu.h>
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.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)
|
||||
{
|
||||
struct resource *res;
|
||||
|
Reference in New Issue
Block a user