summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/pci
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-30 14:52:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-30 15:55:36 +0200
commit36a16f5c7fa0a037b48d0a91dff4fdcf81ed162f (patch)
treea06d8484fd5603b49165e2848746fca7cba0dd95 /freebsd/sys/dev/pci
parentBUS_SPACE(9): Use FreeBSD files for i386 arch (diff)
downloadrtems-libbsd-36a16f5c7fa0a037b48d0a91dff4fdcf81ed162f.tar.bz2
i386: Quick and dirty hack to get PCI working
Diffstat (limited to 'freebsd/sys/dev/pci')
-rw-r--r--freebsd/sys/dev/pci/pci.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/freebsd/sys/dev/pci/pci.c b/freebsd/sys/dev/pci/pci.c
index 426d06a2..e76b6b9e 100644
--- a/freebsd/sys/dev/pci/pci.c
+++ b/freebsd/sys/dev/pci/pci.c
@@ -4206,6 +4206,15 @@ pci_reserve_map(device_t dev, device_t child, int type, int *rid,
* Allocate enough resource, and then write back the
* appropriate BAR for that resource.
*/
+#if defined(__rtems__) && defined(__i386__)
+ /*
+ * FIXME: This is a quick and dirty hack. Use the BIOS or whoever
+ * provided values. The nexus device reserves such allocation requests
+ * offhandedly.
+ */
+ start = map;
+ end = map + count;
+#endif /* __rtems__ */
resource_list_add(rl, type, *rid, start, end, count);
res = resource_list_reserve(rl, dev, child, type, rid, start, end,
count, flags & ~RF_ACTIVE);