Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99606
b: refs/heads/master
c: 6c56747
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Jun 27, 2008
1 parent 3570d94 commit e24a6e7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca7ed057ae25e5e60814f950995f22f051d2e449
refs/heads/master: 6c56747b46717b4c6a890b35e8518f4be961dc7e
23 changes: 23 additions & 0 deletions trunk/arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,29 @@ static u32 dev_table_size;
static u32 alias_table_size;
static u32 rlookup_table_size;

static u8 * __init iommu_map_mmio_space(u64 address)
{
u8 *ret;

if (!request_mem_region(address, MMIO_REGION_LENGTH, "amd_iommu"))
return NULL;

ret = ioremap_nocache(address, MMIO_REGION_LENGTH);
if (ret != NULL)
return ret;

release_mem_region(address, MMIO_REGION_LENGTH);

return NULL;
}

static void __init iommu_unmap_mmio_space(struct amd_iommu *iommu)
{
if (iommu->mmio_base)
iounmap(iommu->mmio_base);
release_mem_region(iommu->mmio_phys, MMIO_REGION_LENGTH);
}

static int __init find_last_devid_on_pci(int bus, int dev, int fn, int cap_ptr)
{
u32 cap;
Expand Down

0 comments on commit e24a6e7

Please sign in to comment.