version 1.15, 2009/05/01 09:43:11 |
version 1.16, 2009/07/29 12:02:09 |
Line 54 __KERNEL_RCSID(0, "$NetBSD$"); |
|
Line 54 __KERNEL_RCSID(0, "$NetBSD$"); |
|
|
|
#include <xen/evtchn.h> |
#include <xen/evtchn.h> |
|
|
#ifdef XEN3 |
|
#include "ioapic.h" |
#include "ioapic.h" |
#endif |
|
|
|
#if NIOAPIC > 0 |
#if NIOAPIC > 0 |
#include <machine/i82093var.h> |
#include <machine/i82093var.h> |
Line 76 pciide_machdep_compat_intr_establish(dev |
|
Line 74 pciide_machdep_compat_intr_establish(dev |
|
#endif |
#endif |
int evtch; |
int evtch; |
|
|
#ifndef XEN3 |
xenih.pirq = PCIIDE_COMPAT_IRQ(chan); |
physdev_op_t physdev_op; |
|
|
|
physdev_op.cmd = PHYSDEVOP_PCI_INITIALISE_DEVICE; |
|
physdev_op.u.pci_cfgreg_read.bus = pa->pa_bus; |
|
physdev_op.u.pci_cfgreg_read.dev = pa->pa_device; |
|
physdev_op.u.pci_cfgreg_read.func = pa->pa_function; |
|
if (HYPERVISOR_physdev_op(&physdev_op) < 0) |
|
panic("HYPERVISOR_physdev_op(PHYSDEVOP_PCI_INITIALISE_DEVICE)"); |
|
#endif /* !XEN3 */ |
|
xenih.pirq = 0; |
xenih.pirq = 0; |
#if NIOAPIC > 0 |
#if NIOAPIC > 0 |
if (mp_busses != NULL) { |
if (mp_busses != NULL) { |