aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-10-11 00:57:26 -0400
committerPaul Mackerras <paulus@samba.org>2007-10-11 06:40:47 -0400
commitb833b481c10cf591b15cc674948cc514e55d3b94 (patch)
tree6e02bb29bff6eea2716c0b02c0a2779d2b80480c /include
parentdd9b67ab37d57da67840276d28957498512d4dd8 (diff)
[POWERPC] iSeries: Move detection of virtual cdroms
Now we will only have entries in the device tree for the actual existing devices (including their OS/400 properties). This way viocd.c gets all the information about the devices from the device tree. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-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 5a5cd0f0c09..e5a405b8d46 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.