diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-10-11 00:58:31 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-11 06:40:47 -0400 |
commit | 7465ce0db310d2fa29f721da7e3aacd1dad7090f (patch) | |
tree | ce8cd473877948310b2e86f685ab09686b79ea23 /include | |
parent | b833b481c10cf591b15cc674948cc514e55d3b94 (diff) |
[POWERPC] iSeries: Move detection of virtual tapes
Now we will only have entries in the device tree for the actual existing
devices (including their OS/400 properties). This way viotape.c gets
all the information about the devices from the device tree.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/iseries/vio.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/asm-powerpc/iseries/vio.h b/include/asm-powerpc/iseries/vio.h index e5a405b8d461..2555dfd6fac6 100644 --- a/include/asm-powerpc/iseries/vio.h +++ b/include/asm-powerpc/iseries/vio.h | |||
@@ -75,6 +75,47 @@ enum viocdsubtype { | |||
75 | viocdcheck = 0x0007 | 75 | viocdcheck = 0x0007 |
76 | }; | 76 | }; |
77 | 77 | ||
78 | struct viotapelpevent { | ||
79 | struct HvLpEvent event; | ||
80 | u32 reserved; | ||
81 | u16 version; | ||
82 | u16 sub_type_result; | ||
83 | u16 tape; | ||
84 | u16 flags; | ||
85 | u32 token; | ||
86 | u64 len; | ||
87 | union { | ||
88 | struct { | ||
89 | u32 tape_op; | ||
90 | u32 count; | ||
91 | } op; | ||
92 | struct { | ||
93 | u32 type; | ||
94 | u32 resid; | ||
95 | u32 dsreg; | ||
96 | u32 gstat; | ||
97 | u32 erreg; | ||
98 | u32 file_no; | ||
99 | u32 block_no; | ||
100 | } get_status; | ||
101 | struct { | ||
102 | u32 block_no; | ||
103 | } get_pos; | ||
104 | } u; | ||
105 | }; | ||
106 | |||
107 | enum viotapesubtype { | ||
108 | viotapeopen = 0x0001, | ||
109 | viotapeclose = 0x0002, | ||
110 | viotaperead = 0x0003, | ||
111 | viotapewrite = 0x0004, | ||
112 | viotapegetinfo = 0x0005, | ||
113 | viotapeop = 0x0006, | ||
114 | viotapegetpos = 0x0007, | ||
115 | viotapesetpos = 0x0008, | ||
116 | viotapegetstatus = 0x0009 | ||
117 | }; | ||
118 | |||
78 | /* | 119 | /* |
79 | * Each subtype can register a handler to process their events. | 120 | * Each subtype can register a handler to process their events. |
80 | * The handler must have this interface. | 121 | * The handler must have this interface. |