xref: /linux/drivers/media/pci/ivtv/ivtv-mailbox.h (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3     mailbox functions
4     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
5     Copyright (C) 2005-2007  Hans Verkuil <hverkuil@xs4all.nl>
6 
7  */
8 
9 #ifndef IVTV_MAILBOX_H
10 #define IVTV_MAILBOX_H
11 
12 #define IVTV_MBOX_DMA_END         8
13 #define IVTV_MBOX_DMA             9
14 
15 void ivtv_api_get_data(struct ivtv_mailbox_data *mbdata, int mb,
16 		       int argc, u32 data[]);
17 int ivtv_api(struct ivtv *itv, int cmd, int args, u32 data[]);
18 int ivtv_vapi_result(struct ivtv *itv, u32 data[CX2341X_MBOX_MAX_DATA], int cmd, int args, ...);
19 int ivtv_vapi(struct ivtv *itv, int cmd, int args, ...);
20 int ivtv_api_func(void *priv, u32 cmd, int in, int out, u32 data[CX2341X_MBOX_MAX_DATA]);
21 void ivtv_mailbox_cache_invalidate(struct ivtv *itv);
22 
23 #endif
24