150397Sobrien/*- 290075Sobrien * Copyright (C) 2010 Nathan Whitehorn 3132718Skan * All rights reserved. 490075Sobrien * 550397Sobrien * Redistribution and use in source and binary forms, with or without 6132718Skan * modification, are permitted provided that the following conditions 750397Sobrien * are met: 8132718Skan * 1. Redistributions of source code must retain the above copyright 950397Sobrien * notice, this list of conditions and the following disclaimer. 1050397Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1150397Sobrien * notice, this list of conditions and the following disclaimer in the 1250397Sobrien * documentation and/or other materials provided with the distribution. 13132718Skan * 1450397Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1550397Sobrien * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1650397Sobrien * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1750397Sobrien * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1850397Sobrien * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 19132718Skan * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 20169689Skan * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21169689Skan * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2250397Sobrien * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 23117395Skan * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24132718Skan * 25132718Skan * $FreeBSD: releng/11.0/sys/boot/powerpc/ps3/ps3.h 217044 2011-01-06 04:12:29Z nwhitehorn $ 26132718Skan */ 27132718Skan 28132718Skan#ifndef _PS3_H 29132718Skan#define _PS3_H 30132718Skan 31132718Skanint ps3mmu_init(int maxmem); 32132718Skanint ps3mmu_map(uint64_t va, uint64_t pa); 33132718Skanvoid *ps3mmu_mapdev(uint64_t pa, size_t length); 3450397Sobrien 3550397Sobrien#endif 3690075Sobrien