Deleted Added
full compact
devmap.h (259365) devmap.h (266086)
1/*-
2 * Copyright (c) 2013 Ian Lepore <ian@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2013 Ian Lepore <ian@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: stable/10/sys/arm/include/devmap.h 259365 2013-12-14 00:16:08Z ian $
26 * $FreeBSD: stable/10/sys/arm/include/devmap.h 266086 2014-05-14 20:17:31Z ian $
27 */
28
29#ifndef _MACHINE_DEVMAP_H_
30#define _MACHINE_DEVMAP_H_
31
32/*
33 * This structure is used by MD code to describe static mappings of devices
34 * which are established as part of bringing up the MMU early in the boot.

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

82 * occupies the end of the physical address space, you're only prevented from
83 * doing vtop for that single byte. If you vtop a size bigger than 1 it works.
84 */
85#define DEVMAP_PADDR_NOTFOUND ((vm_paddr_t)(-1))
86
87void * arm_devmap_ptov(vm_paddr_t _pa, vm_size_t _sz);
88vm_paddr_t arm_devmap_vtop(void * _va, vm_size_t _sz);
89
27 */
28
29#ifndef _MACHINE_DEVMAP_H_
30#define _MACHINE_DEVMAP_H_
31
32/*
33 * This structure is used by MD code to describe static mappings of devices
34 * which are established as part of bringing up the MMU early in the boot.

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

82 * occupies the end of the physical address space, you're only prevented from
83 * doing vtop for that single byte. If you vtop a size bigger than 1 it works.
84 */
85#define DEVMAP_PADDR_NOTFOUND ((vm_paddr_t)(-1))
86
87void * arm_devmap_ptov(vm_paddr_t _pa, vm_size_t _sz);
88vm_paddr_t arm_devmap_vtop(void * _va, vm_size_t _sz);
89
90/* Print the static mapping table; used for bootverbose output. */
91void arm_devmap_print_table(void);
92
90#endif
93#endif