aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/iseries/vio.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-powerpc/iseries/vio.h b/include/asm-powerpc/iseries/vio.h
index 5a5cd0f0c095..e5a405b8d461 100644
--- a/include/asm-powerpc/iseries/vio.h
+++ b/include/asm-powerpc/iseries/vio.h
@@ -51,6 +51,30 @@
51 */ 51 */
52#define VIO_MAX_SUBTYPES 8 52#define VIO_MAX_SUBTYPES 8
53 53
54struct viocdlpevent {
55 struct HvLpEvent event;
56 u32 reserved;
57 u16 version;
58 u16 sub_result;
59 u16 disk;
60 u16 flags;
61 u32 token;
62 u64 offset; /* On open, max number of disks */
63 u64 len; /* On open, size of the disk */
64 u32 block_size; /* Only set on open */
65 u32 media_size; /* Only set on open */
66};
67
68enum viocdsubtype {
69 viocdopen = 0x0001,
70 viocdclose = 0x0002,
71 viocdread = 0x0003,
72 viocdwrite = 0x0004,
73 viocdlockdoor = 0x0005,
74 viocdgetinfo = 0x0006,
75 viocdcheck = 0x0007
76};
77
54/* 78/*
55 * Each subtype can register a handler to process their events. 79 * Each subtype can register a handler to process their events.
56 * The handler must have this interface. 80 * The handler must have this interface.