Module Name: src
Committed By: cliff
Date: Mon Mar 29 23:31:38 UTC 2010
Modified Files:
src/sys/arch/mips/rmi [matt-nb5-mips64]: rmixlvar.h
Log Message:
- add inline cpu_rmixl_chip_type()
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.15 -r1.1.2.16 src/sys/arch/mips/rmi/rmixlvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/rmi/rmixlvar.h
diff -u src/sys/arch/mips/rmi/rmixlvar.h:1.1.2.15 src/sys/arch/mips/rmi/rmixlvar.h:1.1.2.16
--- src/sys/arch/mips/rmi/rmixlvar.h:1.1.2.15 Sun Mar 21 21:56:50 2010
+++ src/sys/arch/mips/rmi/rmixlvar.h Mon Mar 29 23:31:38 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: rmixlvar.h,v 1.1.2.15 2010/03/21 21:56:50 cliff Exp $ */
+/* $NetBSD: rmixlvar.h,v 1.1.2.16 2010/03/29 23:31:38 cliff Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -81,6 +81,12 @@
return false;
}
+static inline int
+cpu_rmixl_chip_type(const struct pridtab *ct)
+{
+ return ct->cpu_cidflags & MIPS_CIDFL_RMI_TYPE;
+}
+
typedef enum {
PSB_TYPE_UNKNOWN=0,
PSB_TYPE_RMI,