Skip to content

Commit f36f955

Browse files
bring back vtd but without inteldrm support for now
1 parent f26f17e commit f36f955

File tree

6 files changed

+2516
-1
lines changed

6 files changed

+2516
-1
lines changed

sys/arch/amd64/conf/generic.amd64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ acpivideo* at acpi?
5656
acpivout* at acpivideo?
5757
acpipwrres* at acpi?
5858
aibs* at acpi?
59+
acpidmar0 at acpi?
5960

6061
mpbios0 at bios0
6162

sys/arch/amd64/include/pci_machdep.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ void *pci_intr_establish(pci_chipset_tag_t, pci_intr_handle_t,
9090
void pci_intr_disestablish(pci_chipset_tag_t, void *);
9191
void pci_decompose_tag(pci_chipset_tag_t, pcitag_t,
9292
int *, int *, int *);
93-
#define pci_probe_device_hook(c, a) (0)
93+
int pci_probe_device_hook(pci_chipset_tag_t,
94+
struct pci_attach_args *);
9495

9596
void pci_dev_postattach(struct device *, struct pci_attach_args *);
9697

sys/arch/amd64/pci/pci_machdep.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ struct bus_dma_tag pci_bus_dma_tag = {
147147
_bus_dmamem_mmap,
148148
};
149149

150+
extern void acpidmar_pci_hook(pci_chipset_tag_t, struct pci_attach_args *);
151+
152+
int
153+
pci_probe_device_hook(pci_chipset_tag_t pc, struct pci_attach_args *pa)
154+
{
155+
acpidmar_pci_hook(pc, pa);
156+
return (0);
157+
}
158+
150159
void
151160
pci_attach_hook(struct device *parent, struct device *self,
152161
struct pcibus_attach_args *pba)

0 commit comments

Comments
 (0)