]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
s390: add eadm facility bits
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 28 Aug 2012 14:43:36 +0000 (16:43 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:44:57 +0000 (15:44 +0200)
Add the eadm facility bits to the css characteristics and move
them to a new header.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/chsc.h
arch/s390/include/asm/css_chars.h [new file with mode: 0644]
arch/s390/include/asm/scsw.h
drivers/s390/block/dasd_eckd.c
drivers/s390/cio/chsc.h

index bf115b49f444980d47a70f1a3f4232b50a52aec2..aea451fd182ec123982cd3321b06aa3110f85645 100644 (file)
@@ -125,32 +125,4 @@ struct chsc_cpd_info {
 #define CHSC_INFO_CPD _IOWR(CHSC_IOCTL_MAGIC, 0x87, struct chsc_cpd_info)
 #define CHSC_INFO_DCAL _IOWR(CHSC_IOCTL_MAGIC, 0x88, struct chsc_dcal)
 
-#ifdef __KERNEL__
-
-struct css_general_char {
-       u64 : 12;
-       u32 dynio : 1;   /* bit 12 */
-       u32 : 28;
-       u32 aif : 1;     /* bit 41 */
-       u32 : 3;
-       u32 mcss : 1;    /* bit 45 */
-       u32 fcs : 1;     /* bit 46 */
-       u32 : 1;
-       u32 ext_mb : 1;  /* bit 48 */
-       u32 : 7;
-       u32 aif_tdd : 1; /* bit 56 */
-       u32 : 1;
-       u32 qebsm : 1;   /* bit 58 */
-       u32 : 8;
-       u32 aif_osa : 1; /* bit 67 */
-       u32 : 14;
-       u32 cib : 1;     /* bit 82 */
-       u32 : 5;
-       u32 fcx : 1;     /* bit 88 */
-       u32 : 7;
-}__attribute__((packed));
-
-extern struct css_general_char css_general_characteristics;
-
-#endif /* __KERNEL__ */
 #endif
diff --git a/arch/s390/include/asm/css_chars.h b/arch/s390/include/asm/css_chars.h
new file mode 100644 (file)
index 0000000..a06ebc2
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef _ASM_CSS_CHARS_H
+#define _ASM_CSS_CHARS_H
+
+#include <linux/types.h>
+
+#ifdef __KERNEL__
+
+struct css_general_char {
+       u64 : 12;
+       u32 dynio : 1;   /* bit 12 */
+       u32 : 4;
+       u32 eadm : 1;    /* bit 17 */
+       u32 : 23;
+       u32 aif : 1;     /* bit 41 */
+       u32 : 3;
+       u32 mcss : 1;    /* bit 45 */
+       u32 fcs : 1;     /* bit 46 */
+       u32 : 1;
+       u32 ext_mb : 1;  /* bit 48 */
+       u32 : 7;
+       u32 aif_tdd : 1; /* bit 56 */
+       u32 : 1;
+       u32 qebsm : 1;   /* bit 58 */
+       u32 : 8;
+       u32 aif_osa : 1; /* bit 67 */
+       u32 : 12;
+       u32 eadm_rf : 1; /* bit 80 */
+       u32 : 1;
+       u32 cib : 1;     /* bit 82 */
+       u32 : 5;
+       u32 fcx : 1;     /* bit 88 */
+       u32 : 19;
+       u32 alt_ssi : 1; /* bit 108 */
+} __packed;
+
+extern struct css_general_char css_general_characteristics;
+
+#endif /* __KERNEL__ */
+#endif
index 4071d00978cb3518eef684b7e3931f3de4d7d15e..8096bfe67424d0f46ab8f7edf52faa242c463b91 100644 (file)
@@ -9,7 +9,7 @@
 #define _ASM_S390_SCSW_H_
 
 #include <linux/types.h>
-#include <asm/chsc.h>
+#include <asm/css_chars.h>
 #include <asm/cio.h>
 
 /**
index c48c72abbefc640671af73090536bd206b1c95dc..ed03c22b215e7dc4f707e29ed521ba4cf2d4a67f 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/compat.h>
 #include <linux/init.h>
 
+#include <asm/css_chars.h>
 #include <asm/debug.h>
 #include <asm/idals.h>
 #include <asm/ebcdic.h>
@@ -31,8 +32,6 @@
 
 #include "dasd_int.h"
 #include "dasd_eckd.h"
-#include "../cio/chsc.h"
-
 
 #ifdef PRINTK_HEADER
 #undef PRINTK_HEADER
index 3f15b2aaeaea0a7dc1b1684033e169b8ebfa0f9b..b5261f318fe880125f985e4f916373137449c5ac 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/types.h>
 #include <linux/device.h>
+#include <asm/css_chars.h>
 #include <asm/chpid.h>
 #include <asm/chsc.h>
 #include <asm/schid.h>