diff options
Diffstat (limited to 'include/asm-powerpc')
-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. |