codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
head -60 smi-module.c /* * SMI workaround for x86. * * Cut/Pasted from Vitor Angelo "smi" module. * Adapted by Gilles Chanteperdrix <gilles.chanteperdrix@laposte.net>. * Further adaptation by Alberto Sechi <sechi@aero.polimi.it>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139, * USA; either version 2 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <linux/version.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/pci_ids.h> #include <linux/reboot.h> #include <rtai_wrappers.h> /* set these as you need */ #define CONFIG_RTAI_HW_SMI_ALL 1 #define CONFIG_RTAI_HW_SMI_INTEL_USB2 0 #define CONFIG_RTAI_HW_SMI_LEGACY_USB2 0 #define CONFIG_RTAI_HW_SMI_PERIODIC 0 #define CONFIG_RTAI_HW_SMI_TCO 0 #define CONFIG_RTAI_HW_SMI_MC 0 #define CONFIG_RTAI_HW_SMI_APMC 0 #define CONFIG_RTAI_HW_SMI_LEGACY_USB 0 #define CONFIG_RTAI_HW_SMI_BIOS 0 #ifndef PCI_DEVICE_ID_INTEL_ICH7_0 #define PCI_DEVICE_ID_INTEL_ICH7_0 0x27b8 #endif #ifndef PCI_DEVICE_ID_INTEL_ICH7_1 #define PCI_DEVICE_ID_INTEL_ICH7_1 0x27b9 #endif #ifndef PCI_DEVICE_ID_INTEL_ICH8_4 #define PCI_DEVICE_ID_INTEL_ICH8_4 0x2815 #endif #ifndef PCI_DEVICE_ID_INTEL_ICH10_1 #define PCI_DEVICE_ID_INTEL_ICH10_1 0x3a16 #endif static struct pci_device_id hal_smi_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0) },
Private
[
?
]
Run code
Submit