xref: /netbsd-src/sys/arch/i386/include/cpu_counter.h (revision 9ab200719cdd970ee07692050a3d5f19dd117de5)
1*9ab20071Sad /*	$NetBSD: cpu_counter.h,v 1.9 2008/05/10 14:53:54 ad Exp $	*/
264eb1178Snakayama 
364eb1178Snakayama /*-
4*9ab20071Sad  * Copyright (c) 2008 The NetBSD Foundation, Inc.
564eb1178Snakayama  * All rights reserved.
664eb1178Snakayama  *
764eb1178Snakayama  * Redistribution and use in source and binary forms, with or without
864eb1178Snakayama  * modification, are permitted provided that the following conditions
964eb1178Snakayama  * are met:
1064eb1178Snakayama  * 1. Redistributions of source code must retain the above copyright
1164eb1178Snakayama  *    notice, this list of conditions and the following disclaimer.
1264eb1178Snakayama  * 2. Redistributions in binary form must reproduce the above copyright
1364eb1178Snakayama  *    notice, this list of conditions and the following disclaimer in the
1464eb1178Snakayama  *    documentation and/or other materials provided with the distribution.
1564eb1178Snakayama  *
1664eb1178Snakayama  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1764eb1178Snakayama  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1864eb1178Snakayama  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1964eb1178Snakayama  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2064eb1178Snakayama  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2164eb1178Snakayama  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2264eb1178Snakayama  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2364eb1178Snakayama  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2464eb1178Snakayama  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2564eb1178Snakayama  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2664eb1178Snakayama  * POSSIBILITY OF SUCH DAMAGE.
2764eb1178Snakayama  */
2864eb1178Snakayama 
2969dbd2e4Stsutsui #include <x86/cpu_counter.h>
30