summaryrefslogtreecommitdiffstats
path: root/include/asm-s390/cio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-s390/cio.h')
-rw-r--r--include/asm-s390/cio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-s390/cio.h b/include/asm-s390/cio.h
index da063cd5f0a0..81287d86329d 100644
--- a/include/asm-s390/cio.h
+++ b/include/asm-s390/cio.h
@@ -275,6 +275,12 @@ struct ccw_dev_id {
u16 devno;
};
+static inline int ccw_dev_id_is_equal(struct ccw_dev_id *dev_id1,
+ struct ccw_dev_id *dev_id2)
+{
+ return !memcmp(dev_id1, dev_id2, sizeof(struct ccw_dev_id));
+}
+
extern int diag210(struct diag210 *addr);
extern void wait_cons_dev(void);