All pastes #290406 Raw Edit

Untitled

public text v1 · immutable
#290406 ·published 2006-12-23 23:53 UTC
rendered paste body
Index: smi-module.c

===================================================================

RCS file: /cvs/rtai/magma/base/arch/i386/calibration/smi-module.c,v

retrieving revision 1.5

diff -u -p -r1.5 smi-module.c

--- smi-module.c        12 Apr 2006 12:59:11 -0000      1.5

+++ smi-module.c        23 Dec 2006 23:53:15 -0000

@@ -31,6 +31,10 @@

 int smiReset = 0;

 MODULE_PARM(smiReset, "i");



+int smiDisableMask = 0;

+MODULE_PARM(smiDisableMask, "i");

+

+

 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)

 #define pci_get_device(a, b, c)  pci_find_device(a, b, c)

 #define pci_dev_put(a)           do { /*nothing*/ } while(0)

@@ -94,7 +98,7 @@ pci.ids database, ICH5-M ?)

 #define BIOS_EN_BIT         (0x01 << 2)

 #define GBL_SMI_EN_BIT      (0x01) /* This is reset by a PCI reset event! */



-static const unsigned rthal_smi_masked_bits = 0

+static unsigned rthal_smi_masked_bits = 0

 #if CONFIG_RTAI_HW_SMI_ALL

     | GBL_SMI_EN_BIT

 #else

@@ -187,6 +191,7 @@ int __devinit rthal_smi_init(void)

 int init_module(void)

 {

        int retval;

+       rthal_smi_masked_bits |= smiDisableMask;

        if (!(retval = rthal_smi_init())) {

                printk("SMI module loaded\n");

        }