2002-07-19 07:13:55 +04:00
|
|
|
/* $NetBSD: sysarch.h,v 1.5 2002/07/19 03:13:55 simonb Exp $ */
|
1997-06-09 15:46:16 +04:00
|
|
|
|
|
|
|
#ifndef _MIPS_SYSARCH_H_
|
|
|
|
#define _MIPS_SYSARCH_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Architecture specific syscalls (mips)
|
|
|
|
*/
|
|
|
|
#define MIPS_CACHEFLUSH 0
|
|
|
|
#define MIPS_CACHECTL 1
|
|
|
|
|
|
|
|
struct mips_cacheflush_args {
|
1999-01-06 07:11:25 +03:00
|
|
|
vaddr_t va;
|
1997-06-09 15:46:16 +04:00
|
|
|
int nbytes;
|
|
|
|
int whichcache;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct mips_cachectl_args {
|
1999-01-06 07:11:25 +03:00
|
|
|
vaddr_t va;
|
1997-06-09 15:46:16 +04:00
|
|
|
int nbytes;
|
|
|
|
int ctl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifndef _KERNEL
|
2002-03-05 17:08:43 +03:00
|
|
|
int sysarch(int, void *);
|
2002-07-19 07:13:55 +04:00
|
|
|
#endif /* !_KERNEL */
|
1997-06-09 15:46:16 +04:00
|
|
|
#endif /* !_MIPS_SYSARCH_H_ */
|