Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
i8254.c File Reference
#include <linux/kvm_host.h>
#include <linux/slab.h>
#include "irq.h"
#include "i8254.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "pit: " fmt
 
#define mod_64(x, y)   ((x) - (y) * div64_u64(x, y))
 
#define RW_STATE_LSB   1
 
#define RW_STATE_MSB   2
 
#define RW_STATE_WORD0   3
 
#define RW_STATE_WORD1   4
 

Functions

void __kvm_migrate_pit_timer (struct kvm_vcpu *vcpu)
 
void kvm_pit_load_count (struct kvm *kvm, int channel, u32 val, int hpet_legacy_start)
 
void kvm_pit_reset (struct kvm_pit *pit)
 
struct kvm_pitkvm_create_pit (struct kvm *kvm, u32 flags)
 
void kvm_free_pit (struct kvm *kvm)
 

Macro Definition Documentation

#define mod_64 (   x,
  y 
)    ((x) - (y) * div64_u64(x, y))

Definition at line 42 of file i8254.c.

#define pr_fmt (   fmt)    "pit: " fmt

Definition at line 33 of file i8254.c.

#define RW_STATE_LSB   1

Definition at line 47 of file i8254.c.

#define RW_STATE_MSB   2

Definition at line 48 of file i8254.c.

#define RW_STATE_WORD0   3

Definition at line 49 of file i8254.c.

#define RW_STATE_WORD1   4

Definition at line 50 of file i8254.c.

Function Documentation

void __kvm_migrate_pit_timer ( struct kvm_vcpu vcpu)

Definition at line 256 of file i8254.c.

struct kvm_pit* kvm_create_pit ( struct kvm kvm,
u32  flags 
)
read

Definition at line 654 of file i8254.c.

void kvm_free_pit ( struct kvm kvm)

Definition at line 737 of file i8254.c.

void kvm_pit_load_count ( struct kvm kvm,
int  channel,
u32  val,
int  hpet_legacy_start 
)

Definition at line 397 of file i8254.c.

void kvm_pit_reset ( struct kvm_pit pit)

Definition at line 614 of file i8254.c.