kloader.h revision 1.2
11.2Smatt/* $NetBSD: kloader.h,v 1.2 2015/06/11 15:11:14 matt Exp $ */ 21.1Snonaka 31.1Snonaka/*- 41.1Snonaka * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc. 51.1Snonaka * All rights reserved. 61.1Snonaka * 71.1Snonaka * Redistribution and use in source and binary forms, with or without 81.1Snonaka * modification, are permitted provided that the following conditions 91.1Snonaka * are met: 101.1Snonaka * 1. Redistributions of source code must retain the above copyright 111.1Snonaka * notice, this list of conditions and the following disclaimer. 121.1Snonaka * 2. Redistributions in binary form must reproduce the above copyright 131.1Snonaka * notice, this list of conditions and the following disclaimer in the 141.1Snonaka * documentation and/or other materials provided with the distribution. 151.1Snonaka * 3. All advertising materials mentioning features or use of this software 161.1Snonaka * must display the following acknowledgement: 171.1Snonaka * This product includes software developed by the NetBSD 181.1Snonaka * Foundation, Inc. and its contributors. 191.1Snonaka * 4. Neither the name of The NetBSD Foundation nor the names of its 201.1Snonaka * contributors may be used to endorse or promote products derived 211.1Snonaka * from this software without specific prior written permission. 221.1Snonaka * 231.1Snonaka * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 241.1Snonaka * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 251.1Snonaka * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 261.1Snonaka * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 271.1Snonaka * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 281.1Snonaka * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 291.1Snonaka * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 301.1Snonaka * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 311.1Snonaka * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 321.1Snonaka * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 331.1Snonaka * POSSIBILITY OF SUCH DAMAGE. 341.1Snonaka */ 351.1Snonaka 361.1Snonaka#ifndef _ZAURUS_KLOADER_H_ 371.1Snonaka#define _ZAURUS_KLOADER_H_ 381.1Snonaka 391.1Snonaka#include <sys/lock.h> 401.1Snonaka 411.1Snonaka#include <uvm/uvm.h> 421.1Snonaka 431.1Snonaka#include <machine/pmap.h> 441.1Snonaka 451.1Snonaka#define PG_VADDR(pg) kloader_phystov(VM_PAGE_TO_PHYS(pg)) 461.1Snonakavaddr_t kloader_phystov(paddr_t pa); 471.2Smattextern paddr_t avail_start, avail_end; 481.1Snonaka 491.1Snonaka#include <dev/kloader.h> 501.1Snonaka 511.1Snonaka#endif /* _ZAURUS_KLOADER_H_ */ 52