Commit f0076e60 authored by Andy Walls's avatar Andy Walls Committed by Mauro Carvalho Chehab

V4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_ent

Rename type in anticipation of implementing a struct cx18_mdl type that
actually keeps track of a memory descriptor list.
Signed-off-by: default avatarAndy Walls <awalls@radix.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c76e6f11
...@@ -201,7 +201,7 @@ int cx18_stream_alloc(struct cx18_stream *s) ...@@ -201,7 +201,7 @@ int cx18_stream_alloc(struct cx18_stream *s)
CX18_ERR("Too many buffers, cannot fit in SCB area\n"); CX18_ERR("Too many buffers, cannot fit in SCB area\n");
CX18_ERR("Max buffers = %zd\n", CX18_ERR("Max buffers = %zd\n",
bufsz / sizeof(struct cx18_mdl)); bufsz / sizeof(struct cx18_mdl_ent));
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
/* This structure is used by EPU to provide memory descriptors in its memory */ /* This structure is used by EPU to provide memory descriptors in its memory */
struct cx18_mdl { struct cx18_mdl_ent {
u32 paddr; /* Physical address of a buffer segment */ u32 paddr; /* Physical address of a buffer segment */
u32 length; /* Length of the buffer segment */ u32 length; /* Length of the buffer segment */
}; };
...@@ -272,7 +272,7 @@ struct cx18_scb { ...@@ -272,7 +272,7 @@ struct cx18_scb {
struct cx18_mailbox ppu2epu_mb; struct cx18_mailbox ppu2epu_mb;
struct cx18_mdl_ack cpu_mdl_ack[CX18_MAX_STREAMS][CX18_MAX_MDL_ACKS]; struct cx18_mdl_ack cpu_mdl_ack[CX18_MAX_STREAMS][CX18_MAX_MDL_ACKS];
struct cx18_mdl cpu_mdl[1]; struct cx18_mdl_ent cpu_mdl[1];
}; };
void cx18_init_scb(struct cx18 *cx); void cx18_init_scb(struct cx18 *cx);
......
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
/* Description: This command provides the offset to a Memory Descriptor List /* Description: This command provides the offset to a Memory Descriptor List
IN[0] - Task handle. Handle of the task to start IN[0] - Task handle. Handle of the task to start
IN[1] - Offset of the MDL from the beginning of the local DDR. IN[1] - Offset of the MDL from the beginning of the local DDR.
IN[2] - Number of cx18_mdl structures in the array pointed to by IN[1] IN[2] - Number of cx18_mdl_ent structures in the array pointed to by IN[1]
IN[3] - Buffer ID IN[3] - Buffer ID
IN[4] - Total buffer length IN[4] - Total buffer length
ReturnCode - One of the ERR_DE_... */ ReturnCode - One of the ERR_DE_... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment