[rtems-libbsd commit] Hack to the fxp driver to force i386 to be io based.

Jennifer Averett jennifer at rtems.org
Mon Jul 9 15:19:48 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    c537dc207c64481c9043e6940da6f658de589e2f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=c537dc207c64481c9043e6940da6f658de589e2f

Author:    Jennifer Averett <jennifer.averett at oarcorp.com>
Date:      Mon Jul  9 10:17:03 2012 -0500

Hack to the fxp driver to force i386 to be io based.

---

 freebsd/dev/fxp/if_fxp.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/freebsd/dev/fxp/if_fxp.c b/freebsd/dev/fxp/if_fxp.c
index 51ee51a..7d07dae 100644
--- a/freebsd/dev/fxp/if_fxp.c
+++ b/freebsd/dev/fxp/if_fxp.c
@@ -459,7 +459,15 @@ fxp_attach(device_t dev)
 	 * We default to memory mapping. Then we accept an override from the
 	 * command line. Then we check to see which one is enabled.
 	 */
+#ifndef __rtems__        /* XXX NOTE: This is a hack. */
 	prefer_iomap = 0;
+#else   /* __rtems__ */
+#if defined(__i386__) 
+	prefer_iomap = 1;
+#else
+	prefer_iomap = 0;
+#endif
+#endif /* __rtems__ */
 	resource_int_value(device_get_name(dev), device_get_unit(dev),
 	    "prefer_iomap", &prefer_iomap);
 	if (prefer_iomap)




More information about the vc mailing list