11.2Sjmcneill/* $NetBSD: a9ptmr_var.h,v 1.2 2022/11/05 17:30:20 jmcneill Exp $ */
21.1Sskrll/*-
31.1Sskrll * Copyright (c) 2012 The NetBSD Foundation, Inc.
41.1Sskrll * All rights reserved.
51.1Sskrll *
61.1Sskrll * This code is derived from software contributed to The NetBSD Foundation
71.1Sskrll * by Matt Thomas of 3am Software Foundry.
81.1Sskrll *
91.1Sskrll * Redistribution and use in source and binary forms, with or without
101.1Sskrll * modification, are permitted provided that the following conditions
111.1Sskrll * are met:
121.1Sskrll * 1. Redistributions of source code must retain the above copyright
131.1Sskrll *    notice, this list of conditions and the following disclaimer.
141.1Sskrll * 2. Redistributions in binary form must reproduce the above copyright
151.1Sskrll *    notice, this list of conditions and the following disclaimer in the
161.1Sskrll *    documentation and/or other materials provided with the distribution.
171.1Sskrll *
181.1Sskrll * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
191.1Sskrll * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
201.1Sskrll * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
211.1Sskrll * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
221.1Sskrll * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
231.1Sskrll * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
241.1Sskrll * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
251.1Sskrll * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
261.1Sskrll * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
271.1Sskrll * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
281.1Sskrll * POSSIBILITY OF SUCH DAMAGE.
291.1Sskrll */
301.1Sskrll
311.1Sskrll#ifndef	_ARM_CORTEX_A9PTMR_VAR_
321.1Sskrll#define	_ARM_CORTEX_A9PTMR_VAR_
331.1Sskrll
341.1Sskrll#ifdef _KERNEL
351.1Sskrll
361.1Sskrllvoid	a9ptmr_cpu_initclocks(void);
371.1Sskrll
381.1Sskrllstruct cpu_info;
391.1Sskrllvoid	a9ptmr_init_cpu_clock(struct cpu_info *);
401.1Sskrll
411.1Sskrllint	a9ptmr_intr(void *);
421.2Sjmcneillvoid	a9ptmr_update_freq(uint32_t);
431.1Sskrllvoid	a9ptmr_delay(unsigned int n);
441.1Sskrll#endif
451.1Sskrll
461.1Sskrll#endif	/* _ARM_CORTEX_A9PTMR_VAR_ */
47