summaryrefslogtreecommitdiffstats
path: root/include/npu2.h
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2017-06-26 16:57:11 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-30 14:43:29 +1000
commit785c80b093c9ea608b6b91fee3634e5c8e323db3 (patch)
tree44ca5c0d60a2d4e8a19a1ed10c1b6258d4f999b0 /include/npu2.h
parenta1e0a047b2a01c4ad18796151685d41f747af273 (diff)
downloadblackbird-skiboot-785c80b093c9ea608b6b91fee3634e5c8e323db3.tar.gz
blackbird-skiboot-785c80b093c9ea608b6b91fee3634e5c8e323db3.zip
npu2: Use phys-map to get MMIO BARs
Commit bdea201a4c4b ("hw/npu2.c: Use phys-map to get GPU memory BARs") added use of phys-map for setting GPU memory BARs. Move the MMIO BARs over to using phys-map as well. Acked-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r--include/npu2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h
index 3b013c9c..544e98ec 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -17,6 +17,8 @@
#ifndef __NPU2_H
#define __NPU2_H
+#include <phys-map.h>
+
/* Debugging options */
#define NPU2DBG(p, fmt, a...) prlog(PR_DEBUG, "NPU%d: " fmt, \
(p)->phb.opal_id, ##a)
@@ -49,6 +51,8 @@
* emulated PCIe BARs. The is a subtle difference between the two as
* not all BARs are exposed outside of skiboot. */
struct npu2_bar {
+ enum phys_map_type type;
+ int index;
#define NPU2_BAR_FLAG_ENABLED 0x0010
/* Generation ID's are a single space in the hardware but we split
OpenPOWER on IntegriCloud