13ca9928dSSoby Mathew /* 23ca9928dSSoby Mathew * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. 33ca9928dSSoby Mathew * 43ca9928dSSoby Mathew * Redistribution and use in source and binary forms, with or without 53ca9928dSSoby Mathew * modification, are permitted provided that the following conditions are met: 63ca9928dSSoby Mathew * 73ca9928dSSoby Mathew * Redistributions of source code must retain the above copyright notice, this 83ca9928dSSoby Mathew * list of conditions and the following disclaimer. 93ca9928dSSoby Mathew * 103ca9928dSSoby Mathew * Redistributions in binary form must reproduce the above copyright notice, 113ca9928dSSoby Mathew * this list of conditions and the following disclaimer in the documentation 123ca9928dSSoby Mathew * and/or other materials provided with the distribution. 133ca9928dSSoby Mathew * 143ca9928dSSoby Mathew * Neither the name of ARM nor the names of its contributors may be used 153ca9928dSSoby Mathew * to endorse or promote products derived from this software without specific 163ca9928dSSoby Mathew * prior written permission. 173ca9928dSSoby Mathew * 183ca9928dSSoby Mathew * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 193ca9928dSSoby Mathew * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 203ca9928dSSoby Mathew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 213ca9928dSSoby Mathew * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 223ca9928dSSoby Mathew * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 233ca9928dSSoby Mathew * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 243ca9928dSSoby Mathew * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 253ca9928dSSoby Mathew * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 263ca9928dSSoby Mathew * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 273ca9928dSSoby Mathew * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 283ca9928dSSoby Mathew * POSSIBILITY OF SUCH DAMAGE. 293ca9928dSSoby Mathew */ 303ca9928dSSoby Mathew 313ca9928dSSoby Mathew #ifndef __XLAT_TABLES_PRIVATE_H__ 323ca9928dSSoby Mathew #define __XLAT_TABLES_PRIVATE_H__ 333ca9928dSSoby Mathew 34*e8719552SAntonio Nino Diaz #include <cassert.h> 35*e8719552SAntonio Nino Diaz #include <utils.h> 36*e8719552SAntonio Nino Diaz 37*e8719552SAntonio Nino Diaz /* The virtual address space size must be a power of two. */ 38*e8719552SAntonio Nino Diaz CASSERT(IS_POWER_OF_TWO(ADDR_SPACE_SIZE), assert_valid_addr_space_size); 39*e8719552SAntonio Nino Diaz 403ca9928dSSoby Mathew void print_mmap(void); 413ca9928dSSoby Mathew void init_xlation_table(uintptr_t base_va, uint64_t *table, 423ca9928dSSoby Mathew int level, uintptr_t *max_va, 433ca9928dSSoby Mathew unsigned long long *max_pa); 443ca9928dSSoby Mathew 453ca9928dSSoby Mathew #endif /* __XLAT_TABLES_PRIVATE_H__ */ 46