summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/utils/imageProcs
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@de.ibm.com>2016-08-05 15:29:36 +0200
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 16:14:56 -0500
commitc1cbdaa694b15fcbafc0b15121ca0c370e80c8ca (patch)
tree610c78f373735bd38b0d5cec31ac1e1be6da017b /import/chips/p9/utils/imageProcs
parent38f8e41f37ac5b445c08a69f4e83121fd0e1cb2e (diff)
downloadtalos-hcode-c1cbdaa694b15fcbafc0b15121ca0c370e80c8ca.tar.gz
talos-hcode-c1cbdaa694b15fcbafc0b15121ca0c370e80c8ca.zip
p9_ringId / p9_ring_identification: cleanup extern declarations
There is whole bunch of extern declarations in p9_ring_identification.H which refer to stuff that is actually declared in p9_ringId.C. So the right place for these extern declaration is p9_ringId.H. Moving these allows to move a couple of structure definitions, which belong to p9_ringId as well. Besides an unused structure definition is removed entirely. Having these things fall into the right places has enabled cleaning up a few include statements. This makes sure that other code doesn't pick up stuff that it doesn't need. Change-Id: Ic6e8748b8b56653859d1e146ea44e19b7243fd23 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27909 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
Diffstat (limited to 'import/chips/p9/utils/imageProcs')
-rw-r--r--import/chips/p9/utils/imageProcs/p9_ringId.C1
-rw-r--r--import/chips/p9/utils/imageProcs/p9_ringId.H131
-rw-r--r--import/chips/p9/utils/imageProcs/p9_ring_identification.H137
-rw-r--r--import/chips/p9/utils/imageProcs/p9_tor.H1
4 files changed, 132 insertions, 138 deletions
diff --git a/import/chips/p9/utils/imageProcs/p9_ringId.C b/import/chips/p9/utils/imageProcs/p9_ringId.C
index 3786b632..3f5a4bee 100644
--- a/import/chips/p9/utils/imageProcs/p9_ringId.C
+++ b/import/chips/p9/utils/imageProcs/p9_ringId.C
@@ -22,6 +22,7 @@
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
+
#include "p9_ringId.H"
#include "p9_ring_identification.H"
#include "p9_tor.H"
diff --git a/import/chips/p9/utils/imageProcs/p9_ringId.H b/import/chips/p9/utils/imageProcs/p9_ringId.H
index 98ced77d..ea278905 100644
--- a/import/chips/p9/utils/imageProcs/p9_ringId.H
+++ b/import/chips/p9/utils/imageProcs/p9_ringId.H
@@ -29,6 +29,137 @@
#include <stdint.h>
#include <p9_ring_id.h>
+// General Ring ID list structure
+typedef struct
+{
+ const char* ringName;
+ uint8_t ringId;
+ uint8_t instanceIdMin; // the min instanceId
+ uint8_t instanceIdMax; // the max instanceId
+ const char* ringNameImg; // Ring name in image: ringName + "_ring"
+ uint8_t vpdKeyword;
+ uint8_t pllCopy; // 0,1,2,3,4,5 -- No of PLL copies required
+ uint64_t scanRegionType;
+} GenRingIdList;
+
+typedef struct
+{
+ uint8_t variant[3];
+} RingVariantOrder;
+
+
+namespace PERV
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace N0
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace N1
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace N2
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace N3
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace XB
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace MC
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace OB0
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace OB1
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace OB2
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace OB3
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace PCI0
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace PCI1
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace PCI2
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace EQ
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
+namespace EC
+{
+extern const GenRingIdList RING_ID_LIST_COMMON[];
+extern const GenRingIdList RING_ID_LIST_INSTANCE[];
+extern const RingVariantOrder RING_VARIANT_ORDER[];
+}
+
namespace RING_TYPES
{
enum RINGTYPE
diff --git a/import/chips/p9/utils/imageProcs/p9_ring_identification.H b/import/chips/p9/utils/imageProcs/p9_ring_identification.H
index ff0f4386..94f05c69 100644
--- a/import/chips/p9/utils/imageProcs/p9_ring_identification.H
+++ b/import/chips/p9/utils/imageProcs/p9_ring_identification.H
@@ -30,143 +30,6 @@
#include <stdlib.h>
#include <string.h>
-// General Ring ID list structure
-typedef struct
-{
- const char* ringName;
- uint8_t ringId;
- uint8_t instanceIdMin; // the min instanceId
- uint8_t instanceIdMax; // the max instanceId
- const char* ringNameImg; // Ring name in image: ringName + "_ring"
- uint8_t vpdKeyword;
- uint8_t pllCopy; // 0,1,2,3,4,5 -- No of PLL copies required
- uint64_t scanRegionType;
-} GenRingIdList;
-
-typedef struct
-{
- uint16_t ring_offset;
- uint16_t ring_size;
-} Ring_toc_entry;
-
-typedef struct
-{
- uint8_t variant[3];
-} RingVariantOrder;
-
-
-namespace PERV
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace N0
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace N1
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace N2
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace N3
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace XB
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace MC
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace OB0
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace OB1
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace OB2
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace OB3
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace PCI0
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace PCI1
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace PCI2
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace EQ
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
-namespace EC
-{
-extern const GenRingIdList RING_ID_LIST_COMMON[];
-extern const GenRingIdList RING_ID_LIST_INSTANCE[];
-extern const RingVariantOrder RING_VARIANT_ORDER[];
-}
-
// MVPD Ring ID list structure.
typedef struct
{
diff --git a/import/chips/p9/utils/imageProcs/p9_tor.H b/import/chips/p9/utils/imageProcs/p9_tor.H
index 376998f2..76e0c778 100644
--- a/import/chips/p9/utils/imageProcs/p9_tor.H
+++ b/import/chips/p9/utils/imageProcs/p9_tor.H
@@ -25,7 +25,6 @@
#ifndef _P9_TOR_H_
#define _P9_TOR_H_
-#include "p9_ring_identification.H"
#include "p9_ring_id.h"
namespace P9_TOR
OpenPOWER on IntegriCloud