Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gx-suspmod.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/cpufreq.h>
#include <linux/pci.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <asm/cpu_device_id.h>
#include <asm/processor-cyrix.h>

Go to the source code of this file.

Data Structures

struct  gxfreq_params
 

Macros

#define PCI_PMER1   0x80 /* power management enable register 1 */
 
#define PCI_PMER2   0x81 /* power management enable register 2 */
 
#define PCI_PMER3   0x82 /* power management enable register 3 */
 
#define PCI_IRQTC   0x8c /* irq speedup timer counter register:typical 2 to 4ms */
 
#define PCI_VIDTC   0x8d /* video speedup timer counter register: typical 50 to 100ms */
 
#define PCI_MODOFF   0x94 /* suspend modulation OFF counter register, 1 = 32us */
 
#define PCI_MODON   0x95 /* suspend modulation ON counter register */
 
#define PCI_SUSCFG   0x96 /* suspend configuration register */
 
#define GPM   (1<<0) /* global power management */
 
#define GIT   (1<<1) /* globally enable PM device idle timers */
 
#define GTR   (1<<2) /* globally enable IO traps */
 
#define IRQ_SPDUP   (1<<3) /* disable clock throttle during interrupt handling */
 
#define VID_SPDUP   (1<<4) /* disable clock throttle during vga video handling */
 
#define SUSMOD   (1<<0) /* enable/disable suspend modulation */
 
#define SMISPDUP   (1<<1) /* select how SMI re-enable suspend modulation: */
 
#define SUSCFG   (1<<2) /* enable powering down a GXLV processor. "Special 3Volt Suspend" mode */
 
#define PWRSVE_ISA   (1<<3) /* stop ISA clock */
 
#define PWRSVE   (1<<4) /* active idle */
 
#define POLICY_MIN_DIV   20
 

Functions

 module_param (pci_busclk, int, 0444)
 
 module_param (max_duration, int, 0444)
 
 MODULE_DEVICE_TABLE (pci, gx_chipset_tbl)
 
 MODULE_AUTHOR ("Hiroshi Miura <miura@da-cha.org>")
 
 MODULE_DESCRIPTION ("Cpufreq driver for Cyrix MediaGX and NatSemi Geode")
 
 MODULE_LICENSE ("GPL")
 
 module_init (cpufreq_gx_init)
 
 module_exit (cpufreq_gx_exit)
 

Macro Definition Documentation

#define GIT   (1<<1) /* globally enable PM device idle timers */

Definition at line 100 of file gx-suspmod.c.

#define GPM   (1<<0) /* global power management */

Definition at line 99 of file gx-suspmod.c.

#define GTR   (1<<2) /* globally enable IO traps */

Definition at line 101 of file gx-suspmod.c.

#define IRQ_SPDUP   (1<<3) /* disable clock throttle during interrupt handling */

Definition at line 102 of file gx-suspmod.c.

#define PCI_IRQTC   0x8c /* irq speedup timer counter register:typical 2 to 4ms */

Definition at line 92 of file gx-suspmod.c.

#define PCI_MODOFF   0x94 /* suspend modulation OFF counter register, 1 = 32us */

Definition at line 94 of file gx-suspmod.c.

#define PCI_MODON   0x95 /* suspend modulation ON counter register */

Definition at line 95 of file gx-suspmod.c.

#define PCI_PMER1   0x80 /* power management enable register 1 */

Definition at line 89 of file gx-suspmod.c.

#define PCI_PMER2   0x81 /* power management enable register 2 */

Definition at line 90 of file gx-suspmod.c.

#define PCI_PMER3   0x82 /* power management enable register 3 */

Definition at line 91 of file gx-suspmod.c.

#define PCI_SUSCFG   0x96 /* suspend configuration register */

Definition at line 96 of file gx-suspmod.c.

#define PCI_VIDTC   0x8d /* video speedup timer counter register: typical 50 to 100ms */

Definition at line 93 of file gx-suspmod.c.

#define POLICY_MIN_DIV   20

Definition at line 143 of file gx-suspmod.c.

#define PWRSVE   (1<<4) /* active idle */

Definition at line 113 of file gx-suspmod.c.

#define PWRSVE_ISA   (1<<3) /* stop ISA clock */

Definition at line 112 of file gx-suspmod.c.

#define SMISPDUP   (1<<1) /* select how SMI re-enable suspend modulation: */

Definition at line 108 of file gx-suspmod.c.

#define SUSCFG   (1<<2) /* enable powering down a GXLV processor. "Special 3Volt Suspend" mode */

Definition at line 110 of file gx-suspmod.c.

#define SUSMOD   (1<<0) /* enable/disable suspend modulation */

Definition at line 106 of file gx-suspmod.c.

#define VID_SPDUP   (1<<4) /* disable clock throttle during vga video handling */

Definition at line 103 of file gx-suspmod.c.

Function Documentation

MODULE_AUTHOR ( "Hiroshi Miura <miura@da-cha.org>"  )
MODULE_DESCRIPTION ( "Cpufreq driver for Cyrix MediaGX and NatSemi Geode"  )
MODULE_DEVICE_TABLE ( pci  ,
gx_chipset_tbl   
)
module_exit ( cpufreq_gx_exit  )
module_init ( cpufreq_gx_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( pci_busclk  ,
int  ,
0444   
)
module_param ( max_duration  ,
int  ,
0444   
)