Deleted Added
full compact
imx_gpt.c (262531) imx_gpt.c (262534)
1/*-
2 * Copyright (c) 2012, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012, 2013 The FreeBSD Foundation
3 * All rights reserved.
4 *
5 * This software was developed by Oleksandr Rybalko under sponsorship
6 * from the FreeBSD Foundation.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx_gpt.c 262531 2014-02-26 18:29:14Z ian $");
31__FBSDID("$FreeBSD: head/sys/arm/freescale/imx/imx_gpt.c 262534 2014-02-26 22:06:10Z ian $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/module.h>
38#include <sys/malloc.h>
39#include <sys/rman.h>

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

314
315int
316imx_gpt_get_timerfreq(struct imx_gpt_softc *sc)
317{
318
319 return (sc->clkfreq);
320}
321
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/module.h>
38#include <sys/malloc.h>
39#include <sys/rman.h>

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

314
315int
316imx_gpt_get_timerfreq(struct imx_gpt_softc *sc)
317{
318
319 return (sc->clkfreq);
320}
321
322void
323cpu_initclocks(void)
324{
325
326 if (imx_gpt_sc == NULL) {
327 panic("%s: i.MX GPT driver has not been initialized!", __func__);
328 }
329
330 cpu_initclocks_bsp();
331}
332
333static int
334imx_gpt_intr(void *arg)
335{
336 struct imx_gpt_softc *sc;
337 uint32_t status;
338
339 sc = (struct imx_gpt_softc *)arg;
340

--- 87 unchanged lines hidden ---
322static int
323imx_gpt_intr(void *arg)
324{
325 struct imx_gpt_softc *sc;
326 uint32_t status;
327
328 sc = (struct imx_gpt_softc *)arg;
329

--- 87 unchanged lines hidden ---