diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2012-03-29 16:03:59 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-03-30 15:50:50 -0500 |
commit | a2cf819c913c65fb9a019b8e62c8e77b8964929a (patch) | |
tree | 103843cd2c48b1a8af4f17de3da1bc23627b8836 /src/include/usr | |
parent | df3648d7cd33ee146de3041d3f0d93a713075e26 (diff) | |
download | talos-hostboot-a2cf819c913c65fb9a019b8e62c8e77b8964929a.tar.gz talos-hostboot-a2cf819c913c65fb9a019b8e62c8e77b8964929a.zip |
Prevent double registration in device framework
The device framework code will log an error if more than one
function is registered for the same operation/access/target
combination.
Change-Id: Id5136c389250ed26d7b62ff3b71116bba54ceb89
RTC: 38760
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/805
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/devicefw/devfwreasoncodes.H | 1 | ||||
-rw-r--r-- | src/include/usr/devicefw/driverif.H | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/include/usr/devicefw/devfwreasoncodes.H b/src/include/usr/devicefw/devfwreasoncodes.H index 2f471eeb5..6d3c26476 100644 --- a/src/include/usr/devicefw/devfwreasoncodes.H +++ b/src/include/usr/devicefw/devfwreasoncodes.H @@ -37,6 +37,7 @@ namespace DeviceFW DEVFW_RC_INVALID_REGISTRATION = DEVFW_COMP_ID | 0x01, DEVFW_RC_NO_ROUTE_FOUND = DEVFW_COMP_ID | 0x02, DEVFW_RC_NULL_TARGET = DEVFW_COMP_ID | 0x03, + DEVFW_RC_DOUBLE_REGISTRATION = DEVFW_COMP_ID | 0x04, }; }; diff --git a/src/include/usr/devicefw/driverif.H b/src/include/usr/devicefw/driverif.H index 939190459..74843e4f4 100644 --- a/src/include/usr/devicefw/driverif.H +++ b/src/include/usr/devicefw/driverif.H @@ -59,7 +59,8 @@ namespace DeviceFW READ = 0, WRITE, - LAST_OP_TYPE + LAST_OP_TYPE, + FIRST_OP_TYPE = READ }; |