hwpmc_ppro.h (147191) | hwpmc_ppro.h (184802) |
---|---|
1/*- 2 * Copyright (c) 2005, Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2005, Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/hwpmc/hwpmc_ppro.h 147191 2005-06-09 19:45:09Z jkoshy $ | 26 * $FreeBSD: head/sys/dev/hwpmc/hwpmc_ppro.h 184802 2008-11-09 17:37:54Z jkoshy $ |
27 */ 28 29/* Machine dependent interfaces */ 30 31#ifndef _DEV_HWPMC_PPRO_H_ 32#define _DEV_HWPMC_PPRO_H_ 33 34/* Intel PPro, Celeron, P-II, P-III, Pentium-M PMCS */ 35 | 27 */ 28 29/* Machine dependent interfaces */ 30 31#ifndef _DEV_HWPMC_PPRO_H_ 32#define _DEV_HWPMC_PPRO_H_ 33 34/* Intel PPro, Celeron, P-II, P-III, Pentium-M PMCS */ 35 |
36#define P6_NPMCS 3 /* 1 TSC + 2 PMCs */ | 36#define P6_NPMCS 2 /* 2 PMCs */ |
37 38#define P6_EVSEL_CMASK_MASK 0xFF000000 39#define P6_EVSEL_TO_CMASK(C) (((C) & 0xFF) << 24) 40#define P6_EVSEL_INV (1 << 23) 41#define P6_EVSEL_EN (1 << 22) 42#define P6_EVSEL_INT (1 << 20) 43#define P6_EVSEL_PC (1 << 19) 44#define P6_EVSEL_E (1 << 18) --- 27 unchanged lines hidden (view full) --- 72struct pmc_md_ppro_pmc { 73 uint32_t pm_ppro_evsel; 74}; 75 76/* 77 * Prototypes 78 */ 79 | 37 38#define P6_EVSEL_CMASK_MASK 0xFF000000 39#define P6_EVSEL_TO_CMASK(C) (((C) & 0xFF) << 24) 40#define P6_EVSEL_INV (1 << 23) 41#define P6_EVSEL_EN (1 << 22) 42#define P6_EVSEL_INT (1 << 20) 43#define P6_EVSEL_PC (1 << 19) 44#define P6_EVSEL_E (1 << 18) --- 27 unchanged lines hidden (view full) --- 72struct pmc_md_ppro_pmc { 73 uint32_t pm_ppro_evsel; 74}; 75 76/* 77 * Prototypes 78 */ 79 |
80int pmc_initialize_p6(struct pmc_mdep *); /* Pentium Pro PMCs */ | 80int pmc_p6_initialize(struct pmc_mdep *_md, int _ncpus); 81void pmc_p6_finalize(struct pmc_mdep *_md); |
81 82#endif /* _KERNEL */ 83#endif /* _DEV_HWPMC_PPRO_H_ */ | 82 83#endif /* _KERNEL */ 84#endif /* _DEV_HWPMC_PPRO_H_ */ |