diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-06-20 12:21:57 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-06-21 17:59:56 -0500 |
commit | 5611dd07de1fa342f487d49f57259639c2b0529a (patch) | |
tree | 163d0c0f88ce2238ebe9af5c34940b2e5bcef9da /src/usr/devicefw/test | |
parent | 91c0fe55a63a9d420e851534354f1058a9189743 (diff) | |
download | talos-hostboot-5611dd07de1fa342f487d49f57259639c2b0529a.tar.gz talos-hostboot-5611dd07de1fa342f487d49f57259639c2b0529a.zip |
Migrate device framework to use targeting.
Change-Id: I1ae855406e3061f10505eeccbcb2766a15581189
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/153
Tested-by: Jenkins Server
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Diffstat (limited to 'src/usr/devicefw/test')
-rw-r--r-- | src/usr/devicefw/test/associatortest.H | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/usr/devicefw/test/associatortest.H b/src/usr/devicefw/test/associatortest.H index 3d7aa6a32..74f30fa3e 100644 --- a/src/usr/devicefw/test/associatortest.H +++ b/src/usr/devicefw/test/associatortest.H @@ -7,6 +7,7 @@ #include "../associator.H" using namespace DeviceFW; +using namespace TARGETING; class AssociatorTest; typedef void (AssociatorTest::*test_fn)(); @@ -36,7 +37,7 @@ public: // Used for registration testing. static errlHndl_t performOperation(OperationType i_opType, - TargetHandle_t i_target, + Target* i_target, void* io_buffer, size_t& io_buflen, int64_t i_accessType, va_list i_addr) { @@ -60,10 +61,11 @@ public: Associator as; as.registerRoute(READ, SCOM, - PROCESSOR, + TYPE_PROC, &performOperation); - errlHndl_t l_errl = as.performOp(READ, TargetHandle_t(), + errlHndl_t l_errl = as.performOp(READ, + MASTER_PROCESSOR_CHIP_TARGET_SENTINEL, buf, bufsize, SCOM, va_list()); @@ -101,10 +103,11 @@ public: Associator as; as.registerRoute(WILDCARD, SCOM, - PROCESSOR, + TYPE_PROC, &performOperation); - errlHndl_t l_errl = as.performOp(WRITE, TargetHandle_t(), + errlHndl_t l_errl = as.performOp(WRITE, + MASTER_PROCESSOR_CHIP_TARGET_SENTINEL, buf, bufsize, SCOM, va_list()); @@ -145,7 +148,8 @@ public: WILDCARD, &performOperation); - errlHndl_t l_errl = as.performOp(READ, TargetHandle_t(), + errlHndl_t l_errl = as.performOp(READ, + MASTER_PROCESSOR_CHIP_TARGET_SENTINEL, buf, bufsize, SCOM, va_list()); @@ -187,7 +191,8 @@ public: WILDCARD, &performOperation); - errlHndl_t l_errl = as.performOp(READ, TargetHandle_t(), + errlHndl_t l_errl = as.performOp(READ, + MASTER_PROCESSOR_CHIP_TARGET_SENTINEL, buf, bufsize, MAILBOX, va_list()); |