summaryrefslogtreecommitdiff
path: root/drivers/dsp/syslink/procmgr/proc4430/proc4430_drvdefs.h
blob: 4176d731f1d44e789c2e0a8d1ef468e4945ca962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*
 * proc4430_drvdefs.h
 *
 * Syslink driver support functions for TI OMAP processors.
 *
 * Copyright (C) 2009-2010 Texas Instruments, Inc.
 *
 * This package is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */


#ifndef _SYSLINK_PROC4430_H
#define _SYSLINK_PROC4430_H


/* Module headers */
#include "../procmgr_drvdefs.h"
#include "proc4430.h"


/*  ----------------------------------------------------------------------------
 *  IOCTL command IDs for OMAP4430PROC
 *  ----------------------------------------------------------------------------
 */
/*
 * Base command ID for OMAP4430PROC
 */
#define PROC4430_BASE_CMD		 0x200

/*
 * Command for PROC4430_getConfig
 */
#define CMD_PROC4430_GETCONFIG		(PROC4430_BASE_CMD + 1)

/*
 * Command for PROC4430_setup
 */
#define CMD_PROC4430_SETUP		(PROC4430_BASE_CMD + 2)

/*
 * Command for PROC4430_setup
 */
#define CMD_PROC4430_DESTROY		(PROC4430_BASE_CMD + 3)

/*
 * Command for PROC4430_destroy
 */
#define CMD_PROC4430_PARAMS_INIT	(PROC4430_BASE_CMD + 4)

/*
 * Command for PROC4430_create
 */
#define CMD_PROC4430_CREATE		(PROC4430_BASE_CMD + 5)

/*
 * Command for PROC4430_delete
 */
#define CMD_PROC4430_DELETE		(PROC4430_BASE_CMD + 6)

/*
 * Command for PROC4430_open
 */
#define CMD_PROC4430_OPEN		(PROC4430_BASE_CMD + 7)

/*
 * Command for PROC4430_close
 */
#define CMD_PROC4430_CLOSE		(PROC4430_BASE_CMD + 8)


/*  ---------------------------------------------------
 *  Command arguments for OMAP4430PROC
 *  ---------------------------------------------------
 */
/*
 * Command arguments for PROC4430_getConfig
 */
struct proc4430_cmd_args_get_config {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	struct proc4430_config *cfg;
	/* Pointer to the OMAP4430PROC module configuration structure
	* in which the default config is to be returned. */
};

/*
 * Command arguments for PROC4430_setup
 */
struct proc4430_cmd_args_setup {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	struct proc4430_config *cfg;
	/* Optional OMAP4430PROC module configuration. If provided as NULL,
	* default configuration is used. */
};

/*
 * Command arguments for PROC4430_destroy
 */
struct proc4430_cmd_args_destroy {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
};

/*
 * Command arguments for struct struct proc4430_params_init
 */
struct proc4430_cmd_args_params_init {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	void *handle;
	/* void * to the processor instance. */
	struct proc4430_params *params;
	/* Configuration parameters. */
};

/*
 * Command arguments for PROC4430_create
 */
struct proc4430_cmd_args_create {
	struct proc_mgr_cmd_args	 command_args;
	/* Common command args */
	u16 proc_id;
	/* Processor ID for which this processor instance is required. */
	struct proc4430_params *params;
	/*Configuration parameters. */
	void *handle;
	/* void * to the created processor instance. */
};

/*
 * Command arguments for PROC4430_delete
 */
struct proc4430_cmd_args_delete {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	void *handle;
	/* Pointer to handle to the processor instance */
};

/*
 * Command arguments for PROC4430_open
 */
struct proc4430_cmd_args_open {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	u16 proc_id;
	/* Processor ID addressed by this OMAP4430PROC instance. */
	void *handle;
	/* Return parameter: void * to the processor instance */
};

/*
 * Command arguments for PROC4430_close
 */
struct proc4430_cmd_args_close {
	struct proc_mgr_cmd_args command_args;
	/* Common command args */
	void *handle;
	/* void * to the processor instance */
};

#endif