diff options
author | Andy Walls <awalls@radix.net> | 2009-11-08 21:45:24 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:51 -0500 |
commit | 52fcb3ecc6707f52dfe4297f96b7609d4ba517fb (patch) | |
tree | fe8ecd66c20b10e8b2ba63c667a6afe78c23a2e1 /drivers/media/video/cx18/cx18-streams.h | |
parent | fa655dda5ce6e5ac4a9b94fd451358edca2ddab8 (diff) |
V4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling
Add a Memory Descriptor List (MDL) layer to buffer handling to implement
scatter-gather I/O. Currently there is still only 1 buffer per MDL.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-streams.h')
-rw-r--r-- | drivers/media/video/cx18/cx18-streams.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/cx18/cx18-streams.h b/drivers/media/video/cx18/cx18-streams.h index 1afc3fd9d822..4a01db5e5a35 100644 --- a/drivers/media/video/cx18/cx18-streams.h +++ b/drivers/media/video/cx18/cx18-streams.h | |||
@@ -28,18 +28,18 @@ int cx18_streams_setup(struct cx18 *cx); | |||
28 | int cx18_streams_register(struct cx18 *cx); | 28 | int cx18_streams_register(struct cx18 *cx); |
29 | void cx18_streams_cleanup(struct cx18 *cx, int unregister); | 29 | void cx18_streams_cleanup(struct cx18 *cx, int unregister); |
30 | 30 | ||
31 | /* Related to submission of buffers to firmware */ | 31 | /* Related to submission of mdls to firmware */ |
32 | static inline void cx18_stream_load_fw_queue(struct cx18_stream *s) | 32 | static inline void cx18_stream_load_fw_queue(struct cx18_stream *s) |
33 | { | 33 | { |
34 | struct cx18 *cx = s->cx; | 34 | struct cx18 *cx = s->cx; |
35 | queue_work(cx->out_work_queue, &s->out_work_order); | 35 | queue_work(cx->out_work_queue, &s->out_work_order); |
36 | } | 36 | } |
37 | 37 | ||
38 | static inline void cx18_stream_put_buf_fw(struct cx18_stream *s, | 38 | static inline void cx18_stream_put_mdl_fw(struct cx18_stream *s, |
39 | struct cx18_buffer *buf) | 39 | struct cx18_mdl *mdl) |
40 | { | 40 | { |
41 | /* Put buf on q_free; the out work handler will move buf(s) to q_busy */ | 41 | /* Put mdl on q_free; the out work handler will move mdl(s) to q_busy */ |
42 | cx18_enqueue(s, buf, &s->q_free); | 42 | cx18_enqueue(s, mdl, &s->q_free); |
43 | cx18_stream_load_fw_queue(s); | 43 | cx18_stream_load_fw_queue(s); |
44 | } | 44 | } |
45 | 45 | ||