1248557Sray/*- 2250357Sray * Copyright (c) 2012, 2013 The FreeBSD Foundation 3248557Sray * All rights reserved. 4248557Sray * 5248557Sray * This software was developed by Oleksandr Rybalko under sponsorship 6248557Sray * from the FreeBSD Foundation. 7248557Sray * 8248557Sray * Redistribution and use in source and binary forms, with or without 9248557Sray * modification, are permitted provided that the following conditions 10248557Sray * are met: 11248557Sray * 1. Redistributions of source code must retain the above copyright 12248557Sray * notice, this list of conditions and the following disclaimer. 13248557Sray * 2. Redistributions in binary form must reproduce the above copyright 14248557Sray * notice, this list of conditions and the following disclaimer in the 15248557Sray * documentation and/or other materials provided with the distribution. 16248557Sray * 17248557Sray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18248557Sray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19248557Sray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20248557Sray * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21248557Sray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22248557Sray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23248557Sray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24248557Sray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25248557Sray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26248557Sray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27248557Sray * SUCH DAMAGE. 28248557Sray * 29248557Sray * $FreeBSD: releng/10.3/sys/arm/freescale/imx/imx_gptvar.h 250357 2013-05-08 09:42:50Z ray $ 30248557Sray */ 31248557Sray 32248557Sray#ifndef _IMXGPTVAR_H 33248557Sray#define _IMXGPTVAR_H 34248557Sray 35248557Sraystruct imx_gpt_softc { 36248557Sray device_t sc_dev; 37248557Sray struct resource *res[2]; 38248557Sray bus_space_tag_t sc_iot; 39248557Sray bus_space_handle_t sc_ioh; 40248557Sray void *sc_ih; /* interrupt handler */ 41248557Sray uint32_t sc_period; 42248557Sray uint32_t sc_clksrc; 43248557Sray uint32_t clkfreq; 44248557Sray struct eventtimer et; 45248557Sray}; 46248557Sray 47248557Srayextern struct imx_gpt_softc *imx_gpt_sc; 48248557Sray 49248557Srayint imx_gpt_get_timerfreq(struct imx_gpt_softc *); 50248557Sray#endif /* _IMXGPTVAR_H */ 51