Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331530
b: refs/heads/master
c: d976195
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel committed Sep 28, 2012
1 parent a73c8f3 commit 28263dd
Show file tree
Hide file tree
Showing 2 changed files with 27 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: 0b4d48cb2240d1686b3f0da234f0c9da18576503
refs/heads/master: d976195c93bce4512e990d170858d20d71c95c45
26 changes: 26 additions & 0 deletions trunk/drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4200,4 +4200,30 @@ static int msi_setup_irq(struct pci_dev *pdev, unsigned int irq,
return 0;
}

static int setup_hpet_msi(unsigned int irq, unsigned int id)
{
struct irq_2_iommu *irte_info;
struct irq_cfg *cfg;
int index, devid;

cfg = irq_get_chip_data(irq);
if (!cfg)
return -EINVAL;

irte_info = &cfg->irq_2_iommu;
devid = get_hpet_devid(id);
if (devid < 0)
return devid;

index = alloc_irq_index(cfg, devid, 1);
if (index < 0)
return index;

irte_info->sub_handle = devid;
irte_info->irte_index = index;
irte_info->iommu = (void *)cfg;

return 0;
}

#endif

0 comments on commit 28263dd

Please sign in to comment.