Deleted Added
full compact
hwpmc_piv.h (147191) hwpmc_piv.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_piv.h 147191 2005-06-09 19:45:09Z jkoshy $
26 * $FreeBSD: head/sys/dev/hwpmc/hwpmc_piv.h 184802 2008-11-09 17:37:54Z jkoshy $
27 */
28
29/* Machine dependent interfaces */
30
31#ifndef _DEV_HWPMC_PIV_H_
32#define _DEV_HWPMC_PIV_H_ 1
33
34/* Intel P4 PMCs */
35
27 */
28
29/* Machine dependent interfaces */
30
31#ifndef _DEV_HWPMC_PIV_H_
32#define _DEV_HWPMC_PIV_H_ 1
33
34/* Intel P4 PMCs */
35
36#define P4_NPMCS 19 /* 1 TSC + 18 PMCS */
36#define P4_NPMCS 18
37#define P4_NESCR 45
38#define P4_INVALID_PMC_INDEX -1
39#define P4_MAX_ESCR_PER_EVENT 2
40#define P4_MAX_PMC_PER_ESCR 3
41
42#define P4_CCCR_OVF (1 << 31)
43#define P4_CCCR_CASCADE (1 << 30)
44#define P4_CCCR_OVF_PMI_T1 (1 << 27)

--- 68 unchanged lines hidden (view full) ---

113 uint32_t pm_p4_escrmsr;
114};
115
116
117/*
118 * Prototypes
119 */
120
37#define P4_NESCR 45
38#define P4_INVALID_PMC_INDEX -1
39#define P4_MAX_ESCR_PER_EVENT 2
40#define P4_MAX_PMC_PER_ESCR 3
41
42#define P4_CCCR_OVF (1 << 31)
43#define P4_CCCR_CASCADE (1 << 30)
44#define P4_CCCR_OVF_PMI_T1 (1 << 27)

--- 68 unchanged lines hidden (view full) ---

113 uint32_t pm_p4_escrmsr;
114};
115
116
117/*
118 * Prototypes
119 */
120
121int pmc_initialize_p4(struct pmc_mdep *); /* Pentium IV PMCs */
121int pmc_p4_initialize(struct pmc_mdep *_md, int _ncpus);
122void pmc_p4_finalize(struct pmc_mdep *md);
122
123#endif /* _KERNEL */
123
124#endif /* _KERNEL */
124#endif /* _MACHINE_PMC_MDEP_H */
125#endif /* _DEV_HWPMC_PIV_H_ */