summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-09-11 14:10:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-09-23 10:34:31 +0200
commitcb02e72a1e1782ab58637593f27f8d12c0ba9411 (patch)
treeb61868409686a54faa8a2d8a5b7690d7275b3580
parentPCI(4): Add big endian support (diff)
downloadrtems-libbsd-cb02e72a1e1782ab58637593f27f8d12c0ba9411.tar.bz2
PCI(4): Disable unsupported features
-rw-r--r--freebsd/sys/dev/pci/pci.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/freebsd/sys/dev/pci/pci.c b/freebsd/sys/dev/pci/pci.c
index 745471e3..648f6e5f 100644
--- a/freebsd/sys/dev/pci/pci.c
+++ b/freebsd/sys/dev/pci/pci.c
@@ -133,8 +133,10 @@ static void pci_resume_msi(device_t dev);
static void pci_resume_msix(device_t dev);
static int pci_remap_intr_method(device_t bus, device_t dev,
u_int irq);
+#ifndef __rtems__
static void pci_hint_device_unit(device_t acdev, device_t child,
const char *name, int *unitp);
+#endif /* __rtems__ */
static int pci_reset_post(device_t dev, device_t child);
static int pci_reset_prepare(device_t dev, device_t child);
static int pci_reset_child(device_t dev, device_t child,
@@ -181,7 +183,9 @@ static device_method_t pci_methods[] = {
DEVMETHOD(bus_child_detached, pci_child_detached),
DEVMETHOD(bus_child_pnpinfo_str, pci_child_pnpinfo_str_method),
DEVMETHOD(bus_child_location_str, pci_child_location_str_method),
+#ifndef __rtems__
DEVMETHOD(bus_hint_device_unit, pci_hint_device_unit),
+#endif /* __rtems__ */
DEVMETHOD(bus_remap_intr, pci_remap_intr_method),
DEVMETHOD(bus_suspend_child, pci_suspend_child),
DEVMETHOD(bus_resume_child, pci_resume_child),
@@ -3402,7 +3406,9 @@ pci_assign_interrupt(device_t bus, device_t dev, int force_route)
{
struct pci_devinfo *dinfo = device_get_ivars(dev);
pcicfgregs *cfg = &dinfo->cfg;
+#ifndef __rtems__
char tunable_name[64];
+#endif /* __rtems__ */
int irq;
/* Has to have an intpin to have an interrupt. */
@@ -4433,6 +4439,7 @@ pci_detach(device_t dev)
return (device_delete_children(dev));
}
+#ifndef __rtems__
static void
pci_hint_device_unit(device_t dev, device_t child, const char *name, int *unitp)
{
@@ -4457,6 +4464,7 @@ pci_hint_device_unit(device_t dev, device_t child, const char *name, int *unitp)
return;
}
}
+#endif /* __rtems__ */
static void
pci_set_power_child(device_t dev, device_t child, int state)
@@ -4588,6 +4596,7 @@ pci_resume(device_t dev)
static void
pci_load_vendor_data(void)
{
+#ifndef __rtems__
caddr_t data;
void *ptr;
size_t sz;
@@ -4603,6 +4612,7 @@ pci_load_vendor_data(void)
pci_vendordata[pci_vendordata_size] = '\n';
}
}
+#endif /* __rtems__ */
}
void