patch-2.2.15 linux/drivers/s390/block/mdisk.h
Next file: linux/drivers/s390/char/con3215.c
Previous file: linux/drivers/s390/block/mdisk.c
Back to the patch index
Back to the overall index
- Lines: 57
- Date:
Fri Apr 21 12:46:24 2000
- Orig file:
v2.2.14/drivers/s390/block/mdisk.h
- Orig date:
Tue Jan 4 21:18:53 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/s390/block/mdisk.h linux/drivers/s390/block/mdisk.h
@@ -3,14 +3,14 @@
* VM minidisk device driver.
*
* S390 version
- * Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
+ * Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
* Author(s): Hartmut Penner (hp@de.ibm.com)
*/
#include <linux/ioctl.h>
#include <linux/types.h>
-#define MDISK_DEVS 4 /* for disks */
+#define MDISK_DEVS 8 /* for disks */
#define MDISK_RAHEAD 8 /* read ahead */
#define MDISK_BLKSIZE 1024 /* 1k blocks */
#define MDISK_HARDSECT 512 /* FIXME -- 512 byte blocks */
@@ -25,8 +25,8 @@
#define MDISK_WRITE_REQ 0x01
#define MDISK_READ_REQ 0x02
-#define MDISK_SYNC 0x01
-#define MDISK_ASYNC 0x03
+#define MDISK_SYNC 0x00
+#define MDISK_ASYNC 0x02
#define INIT_BIO 0x00
#define RW_BIO 0x01
#define TERM_BIO 0x02
@@ -67,5 +67,28 @@
u32 interrupt_params;
u32 spare3[5];
} mdisk_rw_io_t;
+
+/*
+ * low level definitions for Diagnose 210
+ */
+
+#define DEV_CLASS_FBA 0x01
+
+/*
+ * Data structures for Diagnose 210
+ */
+
+typedef struct {
+ u16 dev_nr;
+ u16 rdc_len;
+ u8 vdev_class;
+ u8 vdev_type;
+ u8 vdev_status;
+ u8 vdev_flags;
+ u8 rdev_class;
+ u8 rdev_type;
+ u8 rdev_model;
+ u8 rdev_features;
+} mdisk_dev_char_t;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)