Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
hpet.c File Reference
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/export.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/i8253.h>
#include <linux/slab.h>
#include <linux/hpet.h>
#include <linux/init.h>
#include <linux/cpu.h>
#include <linux/pm.h>
#include <linux/io.h>
#include <asm/fixmap.h>
#include <asm/hpet.h>
#include <asm/time.h>

Go to the source code of this file.

Data Structures

struct  hpet_dev
 

Macros

#define HPET_MASK   CLOCKSOURCE_MASK(32)
 
#define FSEC_PER_NSEC   1000000L
 
#define HPET_DEV_USED_BIT   2
 
#define HPET_DEV_USED   (1 << HPET_DEV_USED_BIT)
 
#define HPET_DEV_VALID   0x8
 
#define HPET_DEV_FSB_CAP   0x1000
 
#define HPET_DEV_PERI_CAP   0x2000
 
#define HPET_MIN_CYCLES   128
 
#define HPET_MIN_PROG_DELTA   (HPET_MIN_CYCLES + (HPET_MIN_CYCLES >> 1))
 
#define hpet_print_config()
 

Functions

struct hpet_devEVT_TO_HPET_DEV (struct clock_event_device *evtdev)
 
unsigned int hpet_readl (unsigned int a)
 
 __setup ("hpet=", hpet_setup)
 
 __setup ("nohpet", disable_hpet)
 
int is_hpet_enabled (void)
 
 EXPORT_SYMBOL_GPL (is_hpet_enabled)
 
int __init hpet_enable (void)
 
 fs_initcall (hpet_late_init)
 
void hpet_disable (void)
 

Variables

unsigned long hpet_address
 
u8 hpet_blockid
 
u8 hpet_msi_disable
 
int hpet_force_user
 

Macro Definition Documentation

#define FSEC_PER_NSEC   1000000L

Definition at line 23 of file hpet.c.

#define HPET_DEV_FSB_CAP   0x1000

Definition at line 28 of file hpet.c.

#define HPET_DEV_PERI_CAP   0x2000

Definition at line 29 of file hpet.c.

#define HPET_DEV_USED   (1 << HPET_DEV_USED_BIT)

Definition at line 26 of file hpet.c.

#define HPET_DEV_USED_BIT   2

Definition at line 25 of file hpet.c.

#define HPET_DEV_VALID   0x8

Definition at line 27 of file hpet.c.

#define HPET_MASK   CLOCKSOURCE_MASK(32)

Definition at line 19 of file hpet.c.

#define HPET_MIN_CYCLES   128

Definition at line 31 of file hpet.c.

#define HPET_MIN_PROG_DELTA   (HPET_MIN_CYCLES + (HPET_MIN_CYCLES >> 1))

Definition at line 32 of file hpet.c.

#define hpet_print_config ( )
Value:
do { \
if (hpet_verbose) \
_hpet_print_config(__FUNCTION__, __LINE__); \
} while (0)

Definition at line 171 of file hpet.c.

Function Documentation

__setup ( )
__setup ( "nohpet"  ,
disable_hpet   
)
struct hpet_dev* EVT_TO_HPET_DEV ( struct clock_event_device *  evtdev)
read

Definition at line 55 of file hpet.c.

EXPORT_SYMBOL_GPL ( is_hpet_enabled  )
fs_initcall ( hpet_late_init  )
void hpet_disable ( void  )

Definition at line 957 of file hpet.c.

int __init hpet_enable ( void  )

hpet_enable - Try to setup the HPET timer. Returns 1 on success.

Definition at line 798 of file hpet.c.

unsigned int hpet_readl ( unsigned int  a)
inline

Definition at line 60 of file hpet.c.

int is_hpet_enabled ( void  )

is_hpet_enabled - check whether the hpet timer interrupt is enabled

Definition at line 134 of file hpet.c.

Variable Documentation

unsigned long hpet_address

Definition at line 37 of file hpet.c.

u8 hpet_blockid

Definition at line 38 of file hpet.c.

int hpet_force_user

Definition at line 92 of file hpet.c.

u8 hpet_msi_disable

Definition at line 39 of file hpet.c.