base/arch/i386/calibration/smi-module.c File Reference

#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>

Include dependency graph for smi-module.c:

Include dependency graph

Go to the source code of this file.

Defines

#define CONFIG_RTAI_HW_SMI_ALL   0
#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
#define DEVFN   0xf8
#define PMBASE_B0   0x40
#define PMBASE_B1   0x41
#define SMI_CTRL_ADDR   0x30
#define SMI_STATUS_ADDR   0x34
#define SMI_MON_ADDR   0x40
#define INTEL_USB2_EN_BIT   (0x01 << 18)
#define LEGACY_USB2_EN_BIT   (0x01 << 17)
#define PERIODIC_EN_BIT   (0x01 << 14)
#define TCO_EN_BIT   (0x01 << 13)
#define MCSMI_EN_BIT   (0x01 << 11)
#define SWSMI_TMR_EN_BIT   (0x01 << 6)
#define APMC_EN_BIT   (0x01 << 5)
#define SLP_EN_BIT   (0x01 << 4)
#define LEGACY_USB_EN_BIT   (0x01 << 3)
#define BIOS_EN_BIT   (0x01 << 2)
#define GBL_SMI_EN_BIT   (0x01)
#define mask_bits(v, p)   outl(inl(p) & ~(v), (p))
#define set_bits(v, p)   outl(inl(p) | (v), (p))

Functions

 MODULE_PARM (smiReset,"i")
void rthal_smi_restore (void)
void rthal_smi_disable (void)
unsigned short __devinit get_smi_en_addr (struct pci_dev *dev)
int __devinit rthal_smi_init (void)
int init_module (void)
void cleanup_module (void)
 MODULE_LICENSE ("GPL")

Variables

int smiReset = 0
pci_device_id rthal_smi_pci_tbl[] __initdata
const unsigned rthal_smi_masked_bits = 0
unsigned rthal_smi_saved_bits
unsigned short rthal_smi_en_addr
pci_dev * smi_dev


Define Documentation

#define APMC_EN_BIT   (0x01 << 5)
 

Definition at line 91 of file smi-module.c.

#define BIOS_EN_BIT   (0x01 << 2)
 

Definition at line 94 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_ALL   0
 

Definition at line 40 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_APMC   0
 

Definition at line 46 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_BIOS   0
 

Definition at line 48 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_INTEL_USB2   0
 

Definition at line 41 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_LEGACY_USB   0
 

Definition at line 47 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_LEGACY_USB2   0
 

Definition at line 42 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_MC   0
 

Definition at line 45 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_PERIODIC   0
 

Definition at line 43 of file smi-module.c.

#define CONFIG_RTAI_HW_SMI_TCO   0
 

Definition at line 44 of file smi-module.c.

#define DEVFN   0xf8
 

Definition at line 75 of file smi-module.c.

Referenced by rthal_smi_init().

#define GBL_SMI_EN_BIT   (0x01)
 

Definition at line 95 of file smi-module.c.

#define INTEL_USB2_EN_BIT   (0x01 << 18)
 

Definition at line 85 of file smi-module.c.

#define LEGACY_USB2_EN_BIT   (0x01 << 17)
 

Definition at line 86 of file smi-module.c.

#define LEGACY_USB_EN_BIT   (0x01 << 3)
 

Definition at line 93 of file smi-module.c.

#define mask_bits v,
 )     outl(inl(p) & ~(v), (p))
 

Definition at line 132 of file smi-module.c.

Referenced by rthal_smi_disable().

#define MCSMI_EN_BIT   (0x01 << 11)
 

Definition at line 89 of file smi-module.c.

#define PERIODIC_EN_BIT   (0x01 << 14)
 

Definition at line 87 of file smi-module.c.

#define PMBASE_B0   0x40
 

Definition at line 77 of file smi-module.c.

Referenced by get_smi_en_addr().

#define PMBASE_B1   0x41
 

Definition at line 78 of file smi-module.c.

Referenced by get_smi_en_addr().

#define set_bits v,
 )     outl(inl(p) | (v), (p))
 

Definition at line 133 of file smi-module.c.

Referenced by rthal_smi_restore().

#define SLP_EN_BIT   (0x01 << 4)
 

Definition at line 92 of file smi-module.c.

#define SMI_CTRL_ADDR   0x30
 

Definition at line 80 of file smi-module.c.

Referenced by get_smi_en_addr().

#define SMI_MON_ADDR   0x40
 

Definition at line 82 of file smi-module.c.

#define SMI_STATUS_ADDR   0x34
 

Definition at line 81 of file smi-module.c.

#define SWSMI_TMR_EN_BIT   (0x01 << 6)
 

Definition at line 90 of file smi-module.c.

#define TCO_EN_BIT   (0x01 << 13)
 

Definition at line 88 of file smi-module.c.


Function Documentation

void cleanup_module void   ) 
 

Definition at line 195 of file smi-module.c.

References printk(), rthal_smi_restore(), and smiReset.

Here is the call graph for this function:

unsigned short __devinit get_smi_en_addr struct pci_dev *  dev  )  [static]
 

Definition at line 151 of file smi-module.c.

References PMBASE_B0, PMBASE_B1, and SMI_CTRL_ADDR.

Referenced by rthal_smi_init().

int init_module void   ) 
 

Definition at line 186 of file smi-module.c.

References printk(), and rthal_smi_init().

Here is the call graph for this function:

MODULE_LICENSE "GPL"   ) 
 

MODULE_PARM smiReset  ,
"i" 
 

void rthal_smi_disable void   ) 
 

Definition at line 143 of file smi-module.c.

References mask_bits, rthal_smi_en_addr, rthal_smi_masked_bits, and rthal_smi_saved_bits.

int __devinit rthal_smi_init void   ) 
 

Definition at line 160 of file smi-module.c.

References DEVFN, get_smi_en_addr(), printk(), rthal_smi_en_addr, and smi_dev.

Referenced by init_module().

Here is the call graph for this function:

void rthal_smi_restore void   ) 
 

Definition at line 135 of file smi-module.c.

References rthal_smi_en_addr, rthal_smi_saved_bits, set_bits, and smi_dev.

Referenced by cleanup_module().


Variable Documentation

struct pci_device_id rthal_smi_pci_tbl [] __initdata [static]
 

Initial value:

{ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AB_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_10) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801E_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_12) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_0) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_12) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0) }, { 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) }, { 0, }, }
Definition at line 50 of file smi-module.c.

unsigned short rthal_smi_en_addr [static]
 

Definition at line 129 of file smi-module.c.

Referenced by rthal_smi_disable(), rthal_smi_init(), and rthal_smi_restore().

const unsigned rthal_smi_masked_bits = 0 [static]
 

Definition at line 97 of file smi-module.c.

Referenced by rthal_smi_disable().

unsigned rthal_smi_saved_bits [static]
 

Definition at line 128 of file smi-module.c.

Referenced by rthal_smi_disable(), and rthal_smi_restore().

struct pci_dev* smi_dev [static]
 

Definition at line 130 of file smi-module.c.

Referenced by rthal_smi_init(), and rthal_smi_restore().

int smiReset = 0
 

Definition at line 31 of file smi-module.c.

Referenced by cleanup_module().


Generated on Thu Nov 20 11:50:18 2008 for RTAI API by doxygen 1.3.8