Home | History | Annotate | Line # | Download | only in i386
      1  1.1  fvdl /*	$NetBSD: i386_mtrr.c,v 1.1 2001/09/10 10:20:32 fvdl Exp $	*/
      2  1.1  fvdl 
      3  1.1  fvdl #include <sys/cdefs.h>
      4  1.1  fvdl #include <sys/types.h>
      5  1.1  fvdl 
      6  1.1  fvdl #include <machine/sysarch.h>
      7  1.1  fvdl 
      8  1.1  fvdl int
      9  1.1  fvdl i386_get_mtrr(struct mtrr *mtrrp, int *n)
     10  1.1  fvdl {
     11  1.1  fvdl 	struct i386_get_mtrr_args a;
     12  1.1  fvdl 
     13  1.1  fvdl 	a.mtrrp = mtrrp;
     14  1.1  fvdl 	a.n = n;
     15  1.1  fvdl 	return sysarch(I386_GET_MTRR, (void *)&a);
     16  1.1  fvdl }
     17  1.1  fvdl 
     18  1.1  fvdl int
     19  1.1  fvdl i386_set_mtrr(struct mtrr *mtrrp, int *n)
     20  1.1  fvdl {
     21  1.1  fvdl 	struct i386_set_mtrr_args a;
     22  1.1  fvdl 
     23  1.1  fvdl 	a.mtrrp = mtrrp;
     24  1.1  fvdl 	a.n = n;
     25  1.1  fvdl 	return sysarch(I386_SET_MTRR, (void *)&a);
     26  1.1  fvdl }
     27