1252391Sray/*-
2252391Sray * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com>
3252391Sray * All rights reserved.
4252391Sray *
5252391Sray * Redistribution and use in source and binary forms, with or without
6252391Sray * modification, are permitted provided that the following conditions
7252391Sray * are met:
8252391Sray * 1. Redistributions of source code must retain the above copyright
9252391Sray *    notice, this list of conditions and the following disclaimer.
10252391Sray * 2. Redistributions in binary form must reproduce the above copyright
11252391Sray *    notice, this list of conditions and the following disclaimer in the
12252391Sray *    documentation and/or other materials provided with the distribution.
13252391Sray *
14252391Sray * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15252391Sray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16252391Sray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17252391Sray * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18252391Sray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19252391Sray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20252391Sray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21252391Sray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22252391Sray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23252391Sray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24252391Sray * SUCH DAMAGE.
25252391Sray */
26252391Sray
27252391Sray#include "opt_ddb.h"
28252391Sray#include "opt_platform.h"
29252391Sray
30252391Sray#include <sys/cdefs.h>
31252391Sray__FBSDID("$FreeBSD$");
32252391Sray
33266275Sian#define	_ARM32_BUS_DMA_PRIVATE
34252391Sray#include <sys/param.h>
35252391Sray#include <sys/systm.h>
36252391Sray#include <sys/bus.h>
37252391Sray
38252391Sray#include <vm/vm.h>
39252391Sray
40266275Sian#include <machine/armreg.h>
41252391Sray#include <machine/bus.h>
42259364Sian#include <machine/devmap.h>
43252391Sray#include <machine/machdep.h>
44252391Sray
45252391Sray#include <dev/fdt/fdt_common.h>
46252391Sray
47252391Srayvm_offset_t
48252391Srayinitarm_lastaddr(void)
49252391Sray{
50252391Sray
51266275Sian	return (arm_devmap_lastaddr());
52252391Sray}
53252391Sray
54252391Srayvoid
55259365Sianinitarm_early_init(void)
56259365Sian{
57259365Sian
58259365Sian}
59259365Sian
60259365Sianvoid
61252391Srayinitarm_gpio_init(void)
62252391Sray{
63266275Sian
64252391Sray}
65252391Sray
66252391Srayvoid
67252391Srayinitarm_late_init(void)
68252391Sray{
69266275Sian
70252391Sray}
71252391Sray
72252391Srayint
73259365Sianinitarm_devmap_init(void)
74252391Sray{
75252391Sray
76266275Sian	/* UART */
77266275Sian	arm_devmap_add_entry(0x12C00000, 0x100000);
78252391Sray
79252391Sray	return (0);
80252391Sray}
81252391Sray
82252391Sraystruct arm32_dma_range *
83252391Sraybus_dma_get_range(void)
84252391Sray{
85252391Sray
86252391Sray	return (NULL);
87252391Sray}
88252391Sray
89252391Srayint
90252391Sraybus_dma_get_range_nb(void)
91252391Sray{
92252391Sray
93252391Sray	return (0);
94252391Sray}
95