diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2018-06-20 13:49:36 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-06-27 17:19:01 +1000 |
commit | ef623f91e5c4719e65784fa976f9227a6926939d (patch) | |
tree | 18a6816fcca9ffa9d06ebbda22884802fdb75e52 /core | |
parent | 815417dcda2e87fc5f1aa087ae5374515cdd86df (diff) | |
download | skiboot-ef623f91e5c4719e65784fa976f9227a6926939d.zip skiboot-ef623f91e5c4719e65784fa976f9227a6926939d.tar.gz skiboot-ef623f91e5c4719e65784fa976f9227a6926939d.tar.bz2 |
occ: Move occ declarations into occ.h
OCC declarations are currently split between skiboot.h and occ-sensor.h.
Given the growing unwieldyness of skiboot.h it's probably time to move it
all into one header.
Rename occ-sensor.h to occ.h, move all OCC-related declarations out of
skiboot.h, and add #includes as necessary.
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/hostservices.c | 1 | ||||
-rw-r--r-- | core/init.c | 1 | ||||
-rw-r--r-- | core/opal.c | 1 | ||||
-rw-r--r-- | core/sensor.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/core/hostservices.c b/core/hostservices.c index c37bf2f..d3a9b3c 100644 --- a/core/hostservices.c +++ b/core/hostservices.c @@ -29,6 +29,7 @@ #include <console.h> #include <mem-map.h> #include <timebase.h> +#include <occ.h> #define HOSTBOOT_RUNTIME_INTERFACE_VERSION 1 diff --git a/core/init.c b/core/init.c index 272a57a..b660af2 100644 --- a/core/init.c +++ b/core/init.c @@ -53,6 +53,7 @@ #include <dts.h> #include <sbe-p9.h> #include <debug_descriptor.h> +#include <occ.h> enum proc_gen proc_gen; unsigned int pcie_max_link_speed; diff --git a/core/opal.c b/core/opal.c index e3a3bbd..7ffca9c 100644 --- a/core/opal.c +++ b/core/opal.c @@ -31,6 +31,7 @@ #include <timer.h> #include <elf-abi.h> #include <errorlog.h> +#include <occ.h> /* Pending events to signal via opal_poll_events */ uint64_t opal_pending_events; diff --git a/core/sensor.c b/core/sensor.c index c3fa319..bd329a1 100644 --- a/core/sensor.c +++ b/core/sensor.c @@ -21,6 +21,7 @@ #include <opal.h> #include <dts.h> #include <lock.h> +#include <occ.h> struct dt_node *sensor_node; |