xref: /netbsd-src/sys/dev/tprof/tprof_armv8.h (revision 6724c56ea209033e1c17ff65ce5e721edbc3953b)
1*6724c56eSjmcneill /* $NetBSD: tprof_armv8.h,v 1.2 2022/05/16 09:42:32 jmcneill Exp $ */
27620cd88Sjmcneill 
37620cd88Sjmcneill /*-
47620cd88Sjmcneill  * Copyright (c) 2018 Jared McNeill <jmcneill@invisible.ca>
57620cd88Sjmcneill  * All rights reserved.
67620cd88Sjmcneill  *
77620cd88Sjmcneill  * Redistribution and use in source and binary forms, with or without
87620cd88Sjmcneill  * modification, are permitted provided that the following conditions
97620cd88Sjmcneill  * are met:
107620cd88Sjmcneill  * 1. Redistributions of source code must retain the above copyright
117620cd88Sjmcneill  *    notice, this list of conditions and the following disclaimer.
127620cd88Sjmcneill  * 2. Redistributions in binary form must reproduce the above copyright
137620cd88Sjmcneill  *    notice, this list of conditions and the following disclaimer in the
147620cd88Sjmcneill  *    documentation and/or other materials provided with the distribution.
157620cd88Sjmcneill  *
167620cd88Sjmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
177620cd88Sjmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
187620cd88Sjmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
197620cd88Sjmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
207620cd88Sjmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
217620cd88Sjmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
227620cd88Sjmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
237620cd88Sjmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
247620cd88Sjmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
257620cd88Sjmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
267620cd88Sjmcneill  * SUCH DAMAGE.
277620cd88Sjmcneill  */
287620cd88Sjmcneill 
297620cd88Sjmcneill #ifndef _DEV_TPROF_TPROF_ARMV8_H
307620cd88Sjmcneill #define _DEV_TPROF_TPROF_ARMV8_H
317620cd88Sjmcneill 
32*6724c56eSjmcneill bool	armv8_pmu_detect(void);
337620cd88Sjmcneill int	armv8_pmu_intr(void *);
347620cd88Sjmcneill int	armv8_pmu_init(void);
357620cd88Sjmcneill 
367620cd88Sjmcneill #endif /* _DEV_TPROF_TPROF_ARMV8_H */
37