hwpmc_pentium.c revision 147191
1254721Semaste/*- 2254721Semaste * Copyright (c) 2003-2005 Joseph Koshy 3254721Semaste * All rights reserved. 4254721Semaste * 5254721Semaste * Redistribution and use in source and binary forms, with or without 6254721Semaste * modification, are permitted provided that the following conditions 7254721Semaste * are met: 8254721Semaste * 1. Redistributions of source code must retain the above copyright 9254721Semaste * notice, this list of conditions and the following disclaimer. 10254721Semaste * 2. Redistributions in binary form must reproduce the above copyright 11254721Semaste * notice, this list of conditions and the following disclaimer in the 12254721Semaste * documentation and/or other materials provided with the distribution. 13254721Semaste * 14254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15254721Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17254721Semaste * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18254721Semaste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19254721Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20254721Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21254721Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22254721Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23254721Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24254721Semaste * SUCH DAMAGE. 25254721Semaste */ 26254721Semaste 27254721Semaste#include <sys/cdefs.h> 28254721Semaste__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_pentium.c 147191 2005-06-09 19:45:09Z jkoshy $"); 29254721Semaste 30254721Semaste#include <sys/param.h> 31254721Semaste#include <sys/lock.h> 32254721Semaste#include <sys/mutex.h> 33254721Semaste#include <sys/pmc.h> 34254721Semaste#include <sys/pmckern.h> 35254721Semaste#include <sys/smp.h> 36254721Semaste#include <sys/systm.h> 37254721Semaste 38254721Semaste#include <machine/cpufunc.h> 39254721Semaste#include <machine/md_var.h> 40254721Semaste#include <machine/pmc_mdep.h> 41254721Semaste 42254721Semaste/* 43254721Semaste * Intel Pentium PMCs 44254721Semaste */ 45254721Semaste 46254721Semasteint 47254721Semastepmc_initialize_p5(struct pmc_mdep *pmc_mdep) 48254721Semaste{ 49254721Semaste (void) pmc_mdep; 50254721Semaste return ENOSYS; /* nothing here yet */ 51254721Semaste} 52254721Semaste