/* *ThisstructureisusedbyCPUtoprovidecompletedMDL&buffersinformation. *ItsstructureisdictatedbythelayoutoftheSCB,requiredbythe *firmware,butitsdefinitionneedstobehere,insteadofincx18-scb.h, *formailboxworkorderscheduling
*/ struct cx18_mdl_ack {
u32 id; /* ID of a completed MDL */
u32 data_used; /* Total data filled in the MDL with 'id' */
};
/* The cx18_mailbox struct is the mailbox structure which is used for passing
messages between processors */ struct cx18_mailbox { /* The sender sets a handle in 'request' after he fills the command. The 'request'shouldbedifferentthan'ack'.Thesender,also,generates aninterruptonXPU2YPU_irqwhereXPUisthesenderandYPUisthe
receiver. */
u32 request; /* The receiver detects a new command when 'req' is different than 'ack'. Hesets'ack'tothesamevalueas'req'toclearthecommand.He,also, generatesaninterruptonYPU2XPU_irqwhereXPUisthesenderandYPU
is the receiver. */
u32 ack;
u32 reserved[6]; /* 'cmd' identifies the command. The list of these commands are in
cx23418.h */
u32 cmd; /* Each command can have up to 6 arguments */
u32 args[MAX_MB_ARGUMENTS]; /* The return code can be one of the codes in the file cx23418.h. If the commandiscompletedsuccessfully,theerrorwillbeERR_SYS_SUCCESS. Ifitispending,thecodeisERR_SYS_PENDING.Ifitfailed,theerror codewouldindicatethetaskfromwhichtheerrororiginatedandwill beoneoftheerrorsincx23418.h.Inthatcase,thefollowing applies((error&0xff)!=0). Ifthecommandispending,thereturnwillbepassedinaMBfromthe
receiver to the sender. 'req' will be returned in args[0] */
u32 error;
};
struct cx18_stream;
int cx18_api(struct cx18 *cx, u32 cmd, int args, u32 data[]); int cx18_vapi_result(struct cx18 *cx, u32 data[MAX_MB_ARGUMENTS], u32 cmd, int args, ...); int cx18_vapi(struct cx18 *cx, u32 cmd, int args, ...); int cx18_api_func(void *priv, u32 cmd, int in, int out,
u32 data[CX2341X_MBOX_MAX_DATA]);
void cx18_api_epu_cmd_irq(struct cx18 *cx, int rpu);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.