sysarch.h revision 142519
1135642Scognet/* $NetBSD: sysarch.h,v 1.5 2003/09/11 09:40:12 kleink Exp $ */ 2135642Scognet 3139735Simp/*- 4135642Scognet * Copyright (c) 1996-1997 Mark Brinicombe. 5135642Scognet * All rights reserved. 6135642Scognet * 7135642Scognet * Redistribution and use in source and binary forms, with or without 8135642Scognet * modification, are permitted provided that the following conditions 9135642Scognet * are met: 10135642Scognet * 1. Redistributions of source code must retain the above copyright 11135642Scognet * notice, this list of conditions and the following disclaimer. 12135642Scognet * 2. Redistributions in binary form must reproduce the above copyright 13135642Scognet * notice, this list of conditions and the following disclaimer in the 14135642Scognet * documentation and/or other materials provided with the distribution. 15135642Scognet * 3. All advertising materials mentioning features or use of this software 16135642Scognet * must display the following acknowledgement: 17135642Scognet * This product includes software developed by Mark Brinicombe. 18135642Scognet * 4. The name of the company nor the name of the author may be used to 19135642Scognet * endorse or promote products derived from this software without specific 20135642Scognet * prior written permission. 21135642Scognet * 22135642Scognet * THIS SOFTWARE IS PROVIDED BY AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 23135642Scognet * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 24135642Scognet * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25135642Scognet * IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26135642Scognet * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27135642Scognet * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28135642Scognet * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29135642Scognet * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30135642Scognet * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31135642Scognet * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32135642Scognet * SUCH DAMAGE. 33135642Scognet */ 34135642Scognet 35135642Scognet/* $FreeBSD: head/sys/arm/include/sysarch.h 142519 2005-02-25 22:56:16Z cognet $ */ 36135642Scognet 37135642Scognet#ifndef _ARM_SYSARCH_H_ 38135642Scognet#define _ARM_SYSARCH_H_ 39135642Scognet 40135642Scognet#include <sys/cdefs.h> 41135642Scognet 42135642Scognet/* 43135642Scognet * Pickup definition of uintptr_t 44135642Scognet */ 45135642Scognet#include <sys/stdint.h> 46135642Scognet 47135642Scognet/* 48135642Scognet * Architecture specific syscalls (arm) 49135642Scognet */ 50135642Scognet 51135642Scognet#define ARM_SYNC_ICACHE 0 52135642Scognet#define ARM_DRAIN_WRITEBUF 1 53142519Scognet#define ARM_SET_TP 2 54142519Scognet#define ARM_GET_TP 3 55135642Scognet 56135642Scognetstruct arm_sync_icache_args { 57135642Scognet uintptr_t addr; /* Virtual start address */ 58135642Scognet size_t len; /* Region size */ 59135642Scognet}; 60135642Scognet 61135642Scognet#ifndef _KERNEL 62135642Scognet__BEGIN_DECLS 63135642Scognetint arm_sync_icache (u_int addr, int len); 64135642Scognetint arm_drain_writebuf (void); 65142519Scognetint sysarch(int, void *); 66135642Scognet__END_DECLS 67135642Scognet#endif 68135642Scognet 69135642Scognet#endif /* !_ARM_SYSARCH_H_ */ 70