xref: /openbsd-src/sys/arch/arm/include/proc.h (revision f5d56f6d1abf3988ecad6e5bcc0d9e60de25e475)
1*f5d56f6dSguenther /*	$OpenBSD: proc.h,v 1.5 2017/04/13 03:52:25 guenther Exp $	*/
2e1e4f5b1Sdrahn /*	$NetBSD: proc.h,v 1.5 2003/03/01 04:36:39 thorpej Exp $	*/
3e1e4f5b1Sdrahn 
4e1e4f5b1Sdrahn /*
5e1e4f5b1Sdrahn  * Copyright (c) 1994 Mark Brinicombe.
6e1e4f5b1Sdrahn  * All rights reserved.
7e1e4f5b1Sdrahn  *
8e1e4f5b1Sdrahn  * Redistribution and use in source and binary forms, with or without
9e1e4f5b1Sdrahn  * modification, are permitted provided that the following conditions
10e1e4f5b1Sdrahn  * are met:
11e1e4f5b1Sdrahn  * 1. Redistributions of source code must retain the above copyright
12e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer.
13e1e4f5b1Sdrahn  * 2. Redistributions in binary form must reproduce the above copyright
14e1e4f5b1Sdrahn  *    notice, this list of conditions and the following disclaimer in the
15e1e4f5b1Sdrahn  *    documentation and/or other materials provided with the distribution.
16e1e4f5b1Sdrahn  * 3. All advertising materials mentioning features or use of this software
17e1e4f5b1Sdrahn  *    must display the following acknowledgement:
18e1e4f5b1Sdrahn  *	This product includes software developed by the RiscBSD team.
19e1e4f5b1Sdrahn  * 4. The name "RiscBSD" nor the name of the author may be used to
20e1e4f5b1Sdrahn  *    endorse or promote products derived from this software without specific
21e1e4f5b1Sdrahn  *    prior written permission.
22e1e4f5b1Sdrahn  *
23e1e4f5b1Sdrahn  * THIS SOFTWARE IS PROVIDED BY RISCBSD ``AS IS'' AND ANY EXPRESS OR IMPLIED
24e1e4f5b1Sdrahn  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25e1e4f5b1Sdrahn  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26e1e4f5b1Sdrahn  * IN NO EVENT SHALL RISCBSD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27e1e4f5b1Sdrahn  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28e1e4f5b1Sdrahn  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29e1e4f5b1Sdrahn  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30e1e4f5b1Sdrahn  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31e1e4f5b1Sdrahn  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32e1e4f5b1Sdrahn  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33e1e4f5b1Sdrahn  * SUCH DAMAGE.
34e1e4f5b1Sdrahn  */
35e1e4f5b1Sdrahn 
362fa72412Spirofti #ifndef	_ARM_PROC_H_
372fa72412Spirofti #define	_ARM_PROC_H_
38e1e4f5b1Sdrahn 
39e1e4f5b1Sdrahn /*
40e1e4f5b1Sdrahn  * Machine-dependent part of the proc structure for arm.
41e1e4f5b1Sdrahn  */
42e1e4f5b1Sdrahn 
43e1e4f5b1Sdrahn struct trapframe;
44e1e4f5b1Sdrahn 
45e1e4f5b1Sdrahn struct mdproc {
46e1e4f5b1Sdrahn 	int	pmc_enabled;		/* bitfield of enabled counters */
47e1e4f5b1Sdrahn 	void	*pmc_state;		/* port-specific pmc state */
48e1e4f5b1Sdrahn };
49e1e4f5b1Sdrahn 
502fa72412Spirofti #endif /* _ARM_PROC_H_ */
51