diff options
author | Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> | 2017-05-24 22:02:15 -0700 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-01 12:39:43 +1000 |
commit | 63a7bf7f58b6b87d00e58a74c0440adad904d575 (patch) | |
tree | 9a702ef458d959c223ca9e2b57c54a370d3e79d6 /core | |
parent | 371cd735e1dc118ffbf3d4ebc8e89ad5aaa2a8f1 (diff) | |
download | skiboot-63a7bf7f58b6b87d00e58a74c0440adad904d575.zip skiboot-63a7bf7f58b6b87d00e58a74c0440adad904d575.tar.gz skiboot-63a7bf7f58b6b87d00e58a74c0440adad904d575.tar.bz2 |
vas: Define vas_get_wcbs_bar interface
Implement the function vas_get_wcbs_bar() that returns the Window
Context Backing store address register. NX driver uses this function
to initialize its UMAC Send WC register.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/vas.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -82,6 +82,21 @@ __attrconst inline uint64_t vas_get_hvwc_mmio_bar(const int chipid) return addr; } +/* Interface for NX - make sure VAS is fully initialized first */ +__attrconst uint64_t vas_get_wcbs_bar(int chipid) +{ + struct proc_chip *chip; + + if (!vas_initialized) + return 0ULL; + + chip = get_chip(chipid); + if (!chip) + return 0ULL; + + return chip->vas->wcbs; +} + static int init_north_ctl(struct proc_chip *chip) { uint64_t val = 0ULL; |