diff options
| author | Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> | 2017-02-14 04:04:02 +0100 |
|---|---|---|
| committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-04-21 09:32:09 +0200 |
| commit | c35fc6aa1840b26f06f9ac79509c7ed9280003ac (patch) | |
| tree | b5c9a28d740ef24be8868a19563984ac226d455b /include/hw/s390x/css.h | |
| parent | 229913f0ef3807b5cf4eecd5a0ef8133ff6dbbcb (diff) | |
| download | focaccia-qemu-c35fc6aa1840b26f06f9ac79509c7ed9280003ac.tar.gz focaccia-qemu-c35fc6aa1840b26f06f9ac79509c7ed9280003ac.zip | |
s390x/css: introduce read-only property type for device ids
Let's introduce a read-only property type that handles device ids of the CssDevId type used for channel devices for future use. e.g. exposing the busid of an I/O subchannel that is assigned to a ccw device. Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'include/hw/s390x/css.h')
| -rw-r--r-- | include/hw/s390x/css.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/s390x/css.h b/include/hw/s390x/css.h index c96c862057..e88f24b868 100644 --- a/include/hw/s390x/css.h +++ b/include/hw/s390x/css.h @@ -172,6 +172,11 @@ extern PropertyInfo css_devid_propinfo; #define DEFINE_PROP_CSS_DEV_ID(_n, _s, _f) \ DEFINE_PROP(_n, _s, _f, css_devid_propinfo, CssDevId) +extern PropertyInfo css_devid_ro_propinfo; + +#define DEFINE_PROP_CSS_DEV_ID_RO(_n, _s, _f) \ + DEFINE_PROP(_n, _s, _f, css_devid_ro_propinfo, CssDevId) + /** * Create a subchannel for the given bus id. * |