s390/sclp: provide extended sccb support
[linux-2.6-microblaze.git] / drivers / s390 / char / sclp.h
index 448ed25..6de9199 100644 (file)
@@ -156,7 +156,11 @@ struct read_cpu_info_sccb {
        u16     offset_configured;
        u16     nr_standby;
        u16     offset_standby;
-       u8      reserved[4096 - 16];
+       /*
+        * Without ext sccb, struct size is PAGE_SIZE.
+        * With ext sccb, struct size is EXT_SCCB_READ_CPU.
+        */
+       u8      reserved[];
 } __attribute__((packed, aligned(PAGE_SIZE)));
 
 struct read_info_sccb {
@@ -199,7 +203,7 @@ struct read_info_sccb {
        u8      byte_134;                       /* 134 */
        u8      cpudirq;                /* 135 */
        u16     cbl;                    /* 136-137 */
-       u8      _pad_138[4096 - 138];   /* 138-4095 */
+       u8      _pad_138[EXT_SCCB_READ_SCP - 138];
 } __packed __aligned(PAGE_SIZE);
 
 struct read_storage_sccb {