On Thursday 10 August 2006 10:27, Jan Kiszka wrote:
> Ulrich Schwab wrote:
> > On Thursday 10 August 2006 00:44, Jan Kiszka wrote:
> >> Thanks for the patch, we just need some additional define of
> >> PCI_DEVICE_ID_INTEL_ICH7_0 for kernel 2.4 compatibility. And if you
> >> additionally provide a ChangeLog fragment, your patch would be perfect!
> >> (I tend to forget the last part often too... :) )
> >
> > Where to add the new define for kernel 2.4 ?
>
> I would say to smi.c directly as there are no other users in sight.
> Otherwise, wrapping code goes to include/asm-{generic|<arch>}/wrapper.h.
I did add the new Id to smi.c directly now.

Ulrich
-- 
====================================================
  inmess GmbH
  Frankfurter Str. 74
  D - 64521 Gross-Gerau
  Phone: +49 6152 97790
  Fax  : +49 6152 977920
  mail : [EMAIL PROTECTED]
  web:   www.inmess.de
====================================================
diff -urp xenomai-2.2.0-org/ChangeLog xenomai-2.2.0-patched/ChangeLog
--- xenomai-2.2.0-org/ChangeLog	2006-07-17 18:50:17.000000000 +0200
+++ xenomai-2.2.0-patched/ChangeLog	2006-08-10 14:51:28.000000000 +0200
@@ -1,3 +1,7 @@
+2006-08-10  Ulrich Schwab  <[EMAIL PROTECTED]>
+
+	* ksrc/arch/i386/smi.c added id of Intel ICH7 to list of SMI chipsets
+	
 2006-07-17  Philippe Gerum  <[EMAIL PROTECTED]>
 
  	* RELEASE: Xenomai 2.2 (Engines Of Creation)
diff -urp xenomai-2.2.0-org/ksrc/arch/i386/smi.c xenomai-2.2.0-patched/ksrc/arch/i386/smi.c
--- xenomai-2.2.0-org/ksrc/arch/i386/smi.c	2006-07-03 08:44:33.000000000 +0200
+++ xenomai-2.2.0-patched/ksrc/arch/i386/smi.c	2006-08-10 14:50:37.000000000 +0200
@@ -31,6 +31,13 @@
 #include <linux/reboot.h>
 #include <asm/xenomai/smi.h>
 
+/* DEVICE_IDs needed for 2.4 support */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+#ifndef PCI_DEVICE_ID_INTEL_ICH7_0
+#define PCI_DEVICE_ID_INTEL_ICH7_0 0x27b8
+#endif
+#endif
+
 static struct pci_device_id rthal_smi_pci_tbl[] = {
 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0) },
 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AB_0) },
@@ -45,6 +52,7 @@ static struct pci_device_id rthal_smi_pc
 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0) },
 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1) },
 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_2) },
+{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0) },
 { 0, },
 };
 
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to