~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/dsp/syslink/procmgr/proc4430/proc4430_drvdefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * proc4430_drvdefs.h
3
 
 *
4
 
 * Syslink driver support functions for TI OMAP processors.
5
 
 *
6
 
 * Copyright (C) 2009-2010 Texas Instruments, Inc.
7
 
 *
8
 
 * This package is free software; you can redistribute it and/or modify
9
 
 * it under the terms of the GNU General Public License version 2 as
10
 
 * published by the Free Software Foundation.
11
 
 *
12
 
 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13
 
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14
 
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15
 
 */
16
 
 
17
 
 
18
 
#ifndef _SYSLINK_PROC4430_H
19
 
#define _SYSLINK_PROC4430_H
20
 
 
21
 
 
22
 
/* Module headers */
23
 
#include "../procmgr_drvdefs.h"
24
 
#include "proc4430.h"
25
 
 
26
 
 
27
 
/*  ----------------------------------------------------------------------------
28
 
 *  IOCTL command IDs for OMAP4430PROC
29
 
 *  ----------------------------------------------------------------------------
30
 
 */
31
 
/*
32
 
 * Base command ID for OMAP4430PROC
33
 
 */
34
 
#define PROC4430_BASE_CMD                0x200
35
 
 
36
 
/*
37
 
 * Command for PROC4430_getConfig
38
 
 */
39
 
#define CMD_PROC4430_GETCONFIG          (PROC4430_BASE_CMD + 1)
40
 
 
41
 
/*
42
 
 * Command for PROC4430_setup
43
 
 */
44
 
#define CMD_PROC4430_SETUP              (PROC4430_BASE_CMD + 2)
45
 
 
46
 
/*
47
 
 * Command for PROC4430_setup
48
 
 */
49
 
#define CMD_PROC4430_DESTROY            (PROC4430_BASE_CMD + 3)
50
 
 
51
 
/*
52
 
 * Command for PROC4430_destroy
53
 
 */
54
 
#define CMD_PROC4430_PARAMS_INIT        (PROC4430_BASE_CMD + 4)
55
 
 
56
 
/*
57
 
 * Command for PROC4430_create
58
 
 */
59
 
#define CMD_PROC4430_CREATE             (PROC4430_BASE_CMD + 5)
60
 
 
61
 
/*
62
 
 * Command for PROC4430_delete
63
 
 */
64
 
#define CMD_PROC4430_DELETE             (PROC4430_BASE_CMD + 6)
65
 
 
66
 
/*
67
 
 * Command for PROC4430_open
68
 
 */
69
 
#define CMD_PROC4430_OPEN               (PROC4430_BASE_CMD + 7)
70
 
 
71
 
/*
72
 
 * Command for PROC4430_close
73
 
 */
74
 
#define CMD_PROC4430_CLOSE              (PROC4430_BASE_CMD + 8)
75
 
 
76
 
 
77
 
/*  ---------------------------------------------------
78
 
 *  Command arguments for OMAP4430PROC
79
 
 *  ---------------------------------------------------
80
 
 */
81
 
/*
82
 
 * Command arguments for PROC4430_getConfig
83
 
 */
84
 
struct proc4430_cmd_args_get_config {
85
 
        struct proc_mgr_cmd_args command_args;
86
 
        /* Common command args */
87
 
        struct proc4430_config *cfg;
88
 
        /* Pointer to the OMAP4430PROC module configuration structure
89
 
        * in which the default config is to be returned. */
90
 
};
91
 
 
92
 
/*
93
 
 * Command arguments for PROC4430_setup
94
 
 */
95
 
struct proc4430_cmd_args_setup {
96
 
        struct proc_mgr_cmd_args command_args;
97
 
        /* Common command args */
98
 
        struct proc4430_config *cfg;
99
 
        /* Optional OMAP4430PROC module configuration. If provided as NULL,
100
 
        * default configuration is used. */
101
 
};
102
 
 
103
 
/*
104
 
 * Command arguments for PROC4430_destroy
105
 
 */
106
 
struct proc4430_cmd_args_destroy {
107
 
        struct proc_mgr_cmd_args command_args;
108
 
        /* Common command args */
109
 
};
110
 
 
111
 
/*
112
 
 * Command arguments for struct struct proc4430_params_init
113
 
 */
114
 
struct proc4430_cmd_args_params_init {
115
 
        struct proc_mgr_cmd_args command_args;
116
 
        /* Common command args */
117
 
        void *handle;
118
 
        /* void * to the processor instance. */
119
 
        struct proc4430_params *params;
120
 
        /* Configuration parameters. */
121
 
};
122
 
 
123
 
/*
124
 
 * Command arguments for PROC4430_create
125
 
 */
126
 
struct proc4430_cmd_args_create {
127
 
        struct proc_mgr_cmd_args         command_args;
128
 
        /* Common command args */
129
 
        u16 proc_id;
130
 
        /* Processor ID for which this processor instance is required. */
131
 
        struct proc4430_params *params;
132
 
        /*Configuration parameters. */
133
 
        void *handle;
134
 
        /* void * to the created processor instance. */
135
 
};
136
 
 
137
 
/*
138
 
 * Command arguments for PROC4430_delete
139
 
 */
140
 
struct proc4430_cmd_args_delete {
141
 
        struct proc_mgr_cmd_args command_args;
142
 
        /* Common command args */
143
 
        void *handle;
144
 
        /* Pointer to handle to the processor instance */
145
 
};
146
 
 
147
 
/*
148
 
 * Command arguments for PROC4430_open
149
 
 */
150
 
struct proc4430_cmd_args_open {
151
 
        struct proc_mgr_cmd_args command_args;
152
 
        /* Common command args */
153
 
        u16 proc_id;
154
 
        /* Processor ID addressed by this OMAP4430PROC instance. */
155
 
        void *handle;
156
 
        /* Return parameter: void * to the processor instance */
157
 
};
158
 
 
159
 
/*
160
 
 * Command arguments for PROC4430_close
161
 
 */
162
 
struct proc4430_cmd_args_close {
163
 
        struct proc_mgr_cmd_args command_args;
164
 
        /* Common command args */
165
 
        void *handle;
166
 
        /* void * to the processor instance */
167
 
};
168
 
 
169
 
#endif