summaryrefslogtreecommitdiffstats
path: root/src/include/arch/pvrformat.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/arch/pvrformat.H')
-rw-r--r--src/include/arch/pvrformat.H12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/arch/pvrformat.H b/src/include/arch/pvrformat.H
index 0e1c462b8..2559ce997 100644
--- a/src/include/arch/pvrformat.H
+++ b/src/include/arch/pvrformat.H
@@ -113,8 +113,8 @@ struct PVR_t
*/
enum
{
- CHIP_DD_MASK = 0x00FF0F0F,
- IS_NIMBUS_DD1 = 0x004E0100,
+ NIMBUS_DD1_MASK = 0x00FF2F0F,
+ IS_NIMBUS_DD1 = 0x004E0100,
// Field: chipType
NIMBUS_CHIP = 0,
@@ -132,6 +132,14 @@ struct PVR_t
P8_VENICE = 0x4D,
P9_ALL = 0x4E,
};
+
+ /**
+ * @brief Return Major.Minor DD level
+ * @return 8-bit DD level
+ */
+ inline bool isNimbusDD1() {
+ return ((word & NIMBUS_DD1_MASK) == IS_NIMBUS_DD1);
+ }
};
#endif //_PVRFORMAT_H
OpenPOWER on IntegriCloud