haiku/headers/private/graphics/common/perfmon_kernel.h
shadow303 8f6c61bcef Upgrade to version 4.1 of radeon driver.
Includes some common routines which may be used by other drivers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-16 00:46:01 +00:00

37 lines
738 B
C

/* ++++++++++
File: perfmon_kernel.h
Description: kernel mode interface to performance counters and time stamp
registers of 586 and 686 CPUs
DO NOT use these functions in the production code !!!
This interface WILL BE CHANGED in the next releases.
Copyright (c) 1998 by Be Incorporated. All Rights Reserved.
+++++ */
#ifndef _PERFMON_KERNEL_H
#define _PERFMON_KERNEL_H
#include <SupportDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
#if __INTEL__
extern _IMPEXP_KERNEL uint64 read_msr(uint32 msr);
extern _IMPEXP_KERNEL void write_msr(uint32 msr, uint64 val);
extern _IMPEXP_KERNEL uint64 read_pmc(uint32 pmc);
extern _IMPEXP_KERNEL uint64 read_tsc(void);
#endif
#ifdef __cplusplus
}
#endif
#endif