Home | History | Annotate | Line # | Download | only in include
sysarch.h revision 1.10
      1  1.10  christos /*	$NetBSD: sysarch.h,v 1.10 2013/05/23 21:39:49 christos Exp $ */
      2   1.1  jonathan 
      3  1.10  christos /*-
      4  1.10  christos  * Copyright (c) 2013 The NetBSD Foundation, Inc.
      5  1.10  christos  * All rights reserved.
      6  1.10  christos  *
      7  1.10  christos  * Redistribution and use in source and binary forms, with or without
      8  1.10  christos  * modification, are permitted provided that the following conditions
      9  1.10  christos  * are met:
     10  1.10  christos  * 1. Redistributions of source code must retain the above copyright
     11  1.10  christos  *    notice, this list of conditions and the following disclaimer.
     12  1.10  christos  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.10  christos  *    notice, this list of conditions and the following disclaimer in the
     14  1.10  christos  *    documentation and/or other materials provided with the distribution.
     15  1.10  christos  *
     16  1.10  christos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     17  1.10  christos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     18  1.10  christos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     19  1.10  christos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     20  1.10  christos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     21  1.10  christos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     22  1.10  christos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     23  1.10  christos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     24  1.10  christos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     25  1.10  christos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     26  1.10  christos  * POSSIBILITY OF SUCH DAMAGE.
     27  1.10  christos  */
     28   1.1  jonathan #ifndef _MIPS_SYSARCH_H_
     29   1.1  jonathan #define _MIPS_SYSARCH_H_
     30   1.1  jonathan 
     31   1.1  jonathan /*
     32   1.1  jonathan  * Architecture specific syscalls (mips)
     33   1.1  jonathan  */
     34   1.1  jonathan #define MIPS_CACHEFLUSH	0
     35   1.1  jonathan #define MIPS_CACHECTL	1
     36   1.1  jonathan 
     37   1.1  jonathan struct mips_cacheflush_args {
     38   1.3  nisimura 	vaddr_t va;
     39   1.7  christos 	size_t nbytes;
     40   1.1  jonathan 	int whichcache;
     41   1.1  jonathan };
     42   1.1  jonathan 
     43   1.1  jonathan struct mips_cachectl_args {
     44   1.3  nisimura 	vaddr_t va;
     45   1.7  christos 	size_t nbytes;
     46   1.1  jonathan 	int ctl;
     47   1.1  jonathan };
     48   1.1  jonathan 
     49   1.1  jonathan #ifndef _KERNEL
     50   1.6    kleink #include <sys/cdefs.h>
     51   1.6    kleink 
     52   1.6    kleink __BEGIN_DECLS
     53   1.4    simonb int sysarch(int, void *);
     54   1.6    kleink __END_DECLS
     55   1.5    simonb #endif /* !_KERNEL */
     56   1.1  jonathan #endif /* !_MIPS_SYSARCH_H_ */
     57