.. | .. |
---|
9 | 9 | #include "css.h" |
---|
10 | 10 | #include "orb.h" |
---|
11 | 11 | |
---|
| 12 | +struct io_subchannel_dma_area { |
---|
| 13 | + struct ccw1 sense_ccw; /* static ccw for sense command */ |
---|
| 14 | +}; |
---|
| 15 | + |
---|
12 | 16 | struct io_subchannel_private { |
---|
13 | 17 | union orb orb; /* operation request block */ |
---|
14 | | - struct ccw1 sense_ccw; /* static ccw for sense command */ |
---|
15 | 18 | struct ccw_device *cdev;/* pointer to the child ccw device */ |
---|
16 | 19 | struct { |
---|
17 | 20 | unsigned int suspend:1; /* allow suspend */ |
---|
18 | 21 | unsigned int prefetch:1;/* deny prefetch */ |
---|
19 | 22 | unsigned int inter:1; /* suppress intermediate interrupts */ |
---|
20 | 23 | } __packed options; |
---|
| 24 | + struct io_subchannel_dma_area *dma_area; |
---|
| 25 | + dma_addr_t dma_area_dma; |
---|
21 | 26 | } __aligned(8); |
---|
22 | 27 | |
---|
23 | 28 | #define to_io_private(n) ((struct io_subchannel_private *) \ |
---|
.. | .. |
---|
115 | 120 | #define FAKE_CMD_IRB 1 |
---|
116 | 121 | #define FAKE_TM_IRB 2 |
---|
117 | 122 | |
---|
| 123 | +struct ccw_device_dma_area { |
---|
| 124 | + struct senseid senseid; /* SenseID info */ |
---|
| 125 | + struct ccw1 iccws[2]; /* ccws for SNID/SID/SPGID commands */ |
---|
| 126 | + struct irb irb; /* device status */ |
---|
| 127 | + struct pgid pgid[8]; /* path group IDs per chpid*/ |
---|
| 128 | +}; |
---|
| 129 | + |
---|
118 | 130 | struct ccw_device_private { |
---|
119 | 131 | struct ccw_device *cdev; |
---|
120 | 132 | struct subchannel *sch; |
---|
.. | .. |
---|
156 | 168 | } __attribute__((packed)) flags; |
---|
157 | 169 | unsigned long intparm; /* user interruption parameter */ |
---|
158 | 170 | struct qdio_irq *qdio_data; |
---|
159 | | - struct irb irb; /* device status */ |
---|
160 | 171 | int async_kill_io_rc; |
---|
161 | | - struct senseid senseid; /* SenseID info */ |
---|
162 | | - struct pgid pgid[8]; /* path group IDs per chpid*/ |
---|
163 | | - struct ccw1 iccws[2]; /* ccws for SNID/SID/SPGID commands */ |
---|
164 | 172 | struct work_struct todo_work; |
---|
165 | 173 | enum cdev_todo todo; |
---|
166 | 174 | wait_queue_head_t wait_q; |
---|
.. | .. |
---|
169 | 177 | struct list_head cmb_list; /* list of measured devices */ |
---|
170 | 178 | u64 cmb_start_time; /* clock value of cmb reset */ |
---|
171 | 179 | void *cmb_wait; /* deferred cmb enable/disable */ |
---|
| 180 | + struct gen_pool *dma_pool; |
---|
| 181 | + struct ccw_device_dma_area *dma_area; |
---|
172 | 182 | enum interruption_class int_class; |
---|
173 | 183 | }; |
---|
174 | 184 | |
---|