summaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2014-09-05 09:33:17 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-09-23 14:10:17 +0200
commita327c9215d8a9b5935ea807aaa9b65ccd23ec615 (patch)
treee4802dc2dd9398caf7b68a8b390d972d62206d4d /target-s390x
parent450749141ef90841f8731fc41e28c364bf768759 (diff)
downloadqemu-a327c9215d8a9b5935ea807aaa9b65ccd23ec615.tar.gz
qemu-a327c9215d8a9b5935ea807aaa9b65ccd23ec615.tar.bz2
qemu-a327c9215d8a9b5935ea807aaa9b65ccd23ec615.zip
s390x/css: support format-0 ccws
Add support for format-0 ccws in channel programs. As a format-1 ccw contains the same information as format-0 ccws, only supporting larger addresses, simply convert every ccw to format-1 as we walk the chain. Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/ioinst.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-s390x/ioinst.h b/target-s390x/ioinst.h
index 5bbc67d15e..29f6423df4 100644
--- a/target-s390x/ioinst.h
+++ b/target-s390x/ioinst.h
@@ -156,6 +156,16 @@ typedef struct ORB {
#define ORB_CTRL1_MASK_ORBX 0x01
#define ORB_CTRL1_MASK_INVALID 0x3e
+/* channel command word (type 0) */
+typedef struct CCW0 {
+ uint8_t cmd_code;
+ uint8_t cda0;
+ uint16_t cda1;
+ uint8_t flags;
+ uint8_t reserved;
+ uint16_t count;
+} QEMU_PACKED CCW0;
+
/* channel command word (type 1) */
typedef struct CCW1 {
uint8_t cmd_code;