[PATCH 2.5] [6/6] EISA support updates

From: Marc Zyngier (mzyngier@freesurf.fr)
Date: Fri Jul 04 2003 - 18:10:35 EST


Virtual root :

- By default, do not try to probe the bus if the mainboard does not
seems to support EISA (allow this behaviour to be changed through a
command-line option).

        M.

diff -ruN linux-latest/drivers/eisa/virtual_root.c linux-eisa/drivers/eisa/virtual_root.c
--- linux-latest/drivers/eisa/virtual_root.c 2003-07-04 09:43:35.000000000 +0200
+++ linux-eisa/drivers/eisa/virtual_root.c 2003-07-04 09:45:31.000000000 +0200
@@ -7,12 +7,22 @@
  * This code is released under the GPL version 2.
  */
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
 #include <linux/eisa.h>
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/init.h>
 
+#if defined(CONFIG_ALPHA_JENSEN) || defined(CONFIG_EISA_VLB_PRIMING)
+#define EISA_FORCE_PROBE_DEFAULT 1
+#else
+#define EISA_FORCE_PROBE_DEFAULT 0
+#endif
+
+static int force_probe = EISA_FORCE_PROBE_DEFAULT;
+
 /* The default EISA device parent (virtual root device).
  * Now use a platform device, since that's the obvious choice. */
 
@@ -29,6 +39,7 @@
         .bus_base_addr = 0,
         .res = &ioport_resource,
         .slots = EISA_MAX_SLOTS,
+ .dma_mask = 0xffffffff,
 };
 
 static int virtual_eisa_root_init (void)
@@ -39,6 +50,8 @@
                 return r;
         }
 
+ eisa_bus_root.force_probe = force_probe;
+
         eisa_root_dev.dev.driver_data = &eisa_bus_root;
 
         if (eisa_root_register (&eisa_bus_root)) {
@@ -51,4 +64,6 @@
         return 0;
 }
 
+module_param (force_probe, int, 0444);
+
 device_initcall (virtual_eisa_root_init);

-- 
Places change, faces change. Life is so very strange.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:24 EST