Search
lxdream.org :: lxdream :: r332:4c1b31e646ef
lxdream 0.9.1
released Jun 29
Download Now
changeset332:4c1b31e646ef
parent331:a6048d3a9a79
child333:e29561c998f5
authornkeynes
dateFri Jan 26 02:08:19 2007 +0000 (13 years ago)
Add another batch of registers to test masking
test/testregs.c
1.1 --- a/test/testregs.c Fri Jan 26 01:37:39 2007 +0000
1.2 +++ b/test/testregs.c Fri Jan 26 02:08:19 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: testregs.c,v 1.2 2006-08-06 02:46:09 nkeynes Exp $
1.6 + * $Id: testregs.c,v 1.3 2007-01-26 02:08:19 nkeynes Exp $
1.7 *
1.8 * Register mask tests. These are simple "write value to register and check
1.9 * that we read back what we expect" tests.
1.10 @@ -34,6 +34,30 @@
1.11
1.12
1.13 struct test test_cases[] = {
1.14 + { 0xA05F6800, 0xFFFFFFFF, 0x13FFFFE0 },
1.15 + { 0xA05F6800, 0x00000000, 0x10000000 },
1.16 + { 0xA05F6804, 0xFFFFFFFF, 0x00FFFFE0 },
1.17 + { 0xA05F6808, 0xFFFFFFFF, 0x00000001 },
1.18 + { 0xA05F6808, 0x00000000, 0x00000000 },
1.19 + { 0xA05F680C, 0xFFFFFFFF, 0x00000000 },
1.20 + { 0xA05F7400, 0xFFFFFFFF, 0x00000000 },
1.21 + { 0xA05F7404, 0xFFFFFFFF, 0x1FFFFFE0 },
1.22 + { 0xA05F7404, 0x00000000, 0x00000000 },
1.23 + { 0xA05F7408, 0xFFFFFFFF, 0x01FFFFFE },
1.24 + { 0xA05F740C, 0xFFFFFFFF, 0x00000001 },
1.25 + { 0xA05F7410, 0xFFFFFFFF, 0x00000000 },
1.26 + { 0xA05F7414, 0xFFFFFFFF, 0x00000001 },
1.27 + { 0xA05F7418, 0xFFFFFFFF, 0x00000001 },
1.28 + { 0xA05F741C, 0xFFFFFFFF, 0x00000000 },
1.29 + { 0xA05F7800, 0xFFFFFFFF, 0x9FFFFFE0 },
1.30 + { 0xA05F7800, 0x00000000, 0x00000000 },
1.31 + { 0xA05F7804, 0xFFFFFFFF, 0x9FFFFFE0 },
1.32 + { 0xA05F7808, 0xFFFFFFFF, 0x9FFFFFE0 },
1.33 + { 0xA05F780C, 0xFFFFFFFF, 0x00000001 },
1.34 + { 0xA05F7810, 0xFFFFFFFF, 0x00000007 },
1.35 + { 0xA05F7814, 0xFFFFFFFF, 0x00000001 },
1.36 + { 0xA05F7818, 0xFFFFFFFF, 0x00000000 },
1.37 + { 0xA05F781C, 0xFFFFFFFF, 0x00000037 },
1.38 { 0xA05F8000, 0xFFFFFFFF, 0x17FD11DB }, /* PVRID read-only */
1.39 { 0xA05F8004, 0xFFFFFFFF, 0x00000011 }, /* PVRVER read-only */
1.40 { 0xA05F8008, 0xFFFFFFFF, 0x00000007 }, /* Reset */
.