mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 06:05:59 +08:00
Hack to the fxp driver to force i386 to be io based.
This commit is contained in:
@@ -459,7 +459,15 @@ fxp_attach(device_t dev)
|
|||||||
* We default to memory mapping. Then we accept an override from the
|
* We default to memory mapping. Then we accept an override from the
|
||||||
* command line. Then we check to see which one is enabled.
|
* command line. Then we check to see which one is enabled.
|
||||||
*/
|
*/
|
||||||
|
#ifndef __rtems__ /* XXX NOTE: This is a hack. */
|
||||||
prefer_iomap = 0;
|
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),
|
resource_int_value(device_get_name(dev), device_get_unit(dev),
|
||||||
"prefer_iomap", &prefer_iomap);
|
"prefer_iomap", &prefer_iomap);
|
||||||
if (prefer_iomap)
|
if (prefer_iomap)
|
||||||
|
Reference in New Issue
Block a user