diff options
author | Giridhari Krishnan <gikrish1@in.ibm.com> | 2019-08-12 05:31:40 -0500 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-09-25 08:55:43 -0500 |
commit | d507b6f85a1793dc0f6a5d48f75cbb7eb5f68598 (patch) | |
tree | 1f8c372702bca321c2405cfd49566b06c8f33caf /src/usr/targeting/common | |
parent | 75aa7d0bd5751482e99cd06330ac9cdf85049de7 (diff) | |
download | talos-hostboot-d507b6f85a1793dc0f6a5d48f75cbb7eb5f68598.tar.gz talos-hostboot-d507b6f85a1793dc0f6a5d48f75cbb7eb5f68598.zip |
Merging of Serverwiz and hostboot repo Targets.pm
file, so to have a common version at start. This
common version is pulled to hostboot repo for use.
Change-Id: I2024fb0a344375ac1d4705a9b9a7b77f2dc774ab
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82062
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rw-r--r-- | src/usr/targeting/common/Targets.pm | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/usr/targeting/common/Targets.pm b/src/usr/targeting/common/Targets.pm index cea9a1a25..c106ef0fc 100644 --- a/src/usr/targeting/common/Targets.pm +++ b/src/usr/targeting/common/Targets.pm @@ -22,6 +22,7 @@ # permissions and limitations under the License. # # IBM_PROLOG_END_TAG + package Targets; use strict; @@ -100,6 +101,7 @@ sub new targeting => undef, enumerations => undef, MAX_MCS => 0, + master_proc => undef, UNIT_COUNTS => undef, huid_idx => undef, mru_idx => undef, @@ -559,6 +561,13 @@ sub buildHierarchy }, $b ); + push( + @{ + $self->{data}->{TARGETS}->{$source_target}->{CONNECTION} + ->{BUS_PARENT} + }, + $key + ); my %bus_entry; $bus_entry{SOURCE_TARGET} = $source_target; $bus_entry{DEST_TARGET} = $dest_target; @@ -2392,6 +2401,15 @@ sub getConnectionBus return $target_ptr->{CONNECTION}->{BUS}->[$i]; } +sub getConnectionBusParent +{ + my $self = shift; + my $target = shift; + my $i = shift; + my $target_ptr = $self->getTarget($target); + return $target_ptr->{CONNECTION}->{BUS_PARENT}->[$i]; +} + sub findFirstEndpoint { my $self = shift; @@ -3176,6 +3194,19 @@ sub setMruid $self->{mru_idx}->{$node}->{$type}++; } +sub getMasterProc +{ + my $self = shift; + return $self->{master_proc}; +} + +sub setMasterProc +{ + my $self = shift; + my $target = shift; + $self->{master_proc}=$target; +} + sub getSystemName { my $self = shift; @@ -3408,11 +3439,16 @@ C<TARGET_STRING>. The bus data structure is also a target with attributes. Returns the target string of the C<INDEX> target found connected to C<TARGET_STRING>. -=item getConnectionBus(C<TARGET_STRING>) +=item getConnectionBus(C<TARGET_STRING>,C<INDEX>) Returns the data structure of the C<INDEX> bus target found connected to C<TARGET_STRING>. +=item getConnectionBusParent(C<TARGET_STRING>,C<INDEX>) + +Returns C<PARENT_TARGET_STRING> of the parent target for the bus target found +connected to C<TARGET_STRING> + =item findEndpoint(C<TARGET_STRING>,C<BUS_TYPE>,C<ENDPOINT_MRW_TYPE>) Searches through all connections to C<TARGET_STRING> |