summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--src/freebsd_pci.c10
2 files changed, 0 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index e67623e..96f46a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,14 +133,6 @@ if test "x$have_mtrr_h" = xyes; then
AC_DEFINE(HAVE_MTRR, 1, [Use MTRRs on mappings])
fi
-# check for the pci_io.pi_sel.pc_domain
-AC_CHECK_MEMBER([struct pci_io.pi_sel.pc_domain],
- [AC_DEFINE(HAVE_PCI_IO_PC_DOMAIN,1,[Have the pci_io.pi_sel.pc_domain member.])],
- [],
- [ #include <sys/types.h>
- #include <sys/pciio.h>
- ])
-
AC_SUBST(PCIACCESS_CFLAGS)
AC_SUBST(PCIACCESS_LIBS)
diff --git a/src/freebsd_pci.c b/src/freebsd_pci.c
index 6b660b1..c1f8e1e 100644
--- a/src/freebsd_pci.c
+++ b/src/freebsd_pci.c
@@ -187,9 +187,7 @@ pci_device_freebsd_read( struct pci_device * dev, void * data,
{
struct pci_io io;
-#if HAVE_PCI_IO_PC_DOMAIN
io.pi_sel.pc_domain = dev->domain;
-#endif
io.pi_sel.pc_bus = dev->bus;
io.pi_sel.pc_dev = dev->dev;
io.pi_sel.pc_func = dev->func;
@@ -227,9 +225,7 @@ pci_device_freebsd_write( struct pci_device * dev, const void * data,
{
struct pci_io io;
-#if HAVE_PCI_IO_PC_DOMAIN
io.pi_sel.pc_domain = dev->domain;
-#endif
io.pi_sel.pc_bus = dev->bus;
io.pi_sel.pc_dev = dev->dev;
io.pi_sel.pc_func = dev->func;
@@ -351,9 +347,7 @@ pci_device_freebsd_probe( struct pci_device * dev )
uint8_t irq;
int err, i;
-#if HAVE_PCI_IO_PC_DOMAIN
bar.pbi_sel.pc_domain = dev->domain;
-#endif
bar.pbi_sel.pc_bus = dev->bus;
bar.pbi_sel.pc_dev = dev->dev;
bar.pbi_sel.pc_func = dev->func;
@@ -789,11 +783,7 @@ pci_system_freebsd_create( void )
for ( i = 0; i < pciconfio.num_matches; i++ ) {
struct pci_conf *p = &pciconf[ i ];
-#if HAVE_PCI_IO_PC_DOMAIN
pci_sys->devices[ i ].base.domain = p->pc_sel.pc_domain;
-#else
- pci_sys->devices[ i ].base.domain = 0;
-#endif
pci_sys->devices[ i ].base.bus = p->pc_sel.pc_bus;
pci_sys->devices[ i ].base.dev = p->pc_sel.pc_dev;
pci_sys->devices[ i ].base.func = p->pc_sel.pc_func;