4
* Syslink driver support functions for TI OMAP processors.
6
* Copyright (C) 2009-2010 Texas Instruments, Inc.
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.
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.
18
#ifndef _SYSLINK_PROC4430_H
19
#define _SYSLINK_PROC4430_H
23
#include "../procmgr_drvdefs.h"
27
/* ----------------------------------------------------------------------------
28
* IOCTL command IDs for OMAP4430PROC
29
* ----------------------------------------------------------------------------
32
* Base command ID for OMAP4430PROC
34
#define PROC4430_BASE_CMD 0x200
37
* Command for PROC4430_getConfig
39
#define CMD_PROC4430_GETCONFIG (PROC4430_BASE_CMD + 1)
42
* Command for PROC4430_setup
44
#define CMD_PROC4430_SETUP (PROC4430_BASE_CMD + 2)
47
* Command for PROC4430_setup
49
#define CMD_PROC4430_DESTROY (PROC4430_BASE_CMD + 3)
52
* Command for PROC4430_destroy
54
#define CMD_PROC4430_PARAMS_INIT (PROC4430_BASE_CMD + 4)
57
* Command for PROC4430_create
59
#define CMD_PROC4430_CREATE (PROC4430_BASE_CMD + 5)
62
* Command for PROC4430_delete
64
#define CMD_PROC4430_DELETE (PROC4430_BASE_CMD + 6)
67
* Command for PROC4430_open
69
#define CMD_PROC4430_OPEN (PROC4430_BASE_CMD + 7)
72
* Command for PROC4430_close
74
#define CMD_PROC4430_CLOSE (PROC4430_BASE_CMD + 8)
77
/* ---------------------------------------------------
78
* Command arguments for OMAP4430PROC
79
* ---------------------------------------------------
82
* Command arguments for PROC4430_getConfig
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. */
93
* Command arguments for PROC4430_setup
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. */
104
* Command arguments for PROC4430_destroy
106
struct proc4430_cmd_args_destroy {
107
struct proc_mgr_cmd_args command_args;
108
/* Common command args */
112
* Command arguments for struct struct proc4430_params_init
114
struct proc4430_cmd_args_params_init {
115
struct proc_mgr_cmd_args command_args;
116
/* Common command args */
118
/* void * to the processor instance. */
119
struct proc4430_params *params;
120
/* Configuration parameters. */
124
* Command arguments for PROC4430_create
126
struct proc4430_cmd_args_create {
127
struct proc_mgr_cmd_args command_args;
128
/* Common command args */
130
/* Processor ID for which this processor instance is required. */
131
struct proc4430_params *params;
132
/*Configuration parameters. */
134
/* void * to the created processor instance. */
138
* Command arguments for PROC4430_delete
140
struct proc4430_cmd_args_delete {
141
struct proc_mgr_cmd_args command_args;
142
/* Common command args */
144
/* Pointer to handle to the processor instance */
148
* Command arguments for PROC4430_open
150
struct proc4430_cmd_args_open {
151
struct proc_mgr_cmd_args command_args;
152
/* Common command args */
154
/* Processor ID addressed by this OMAP4430PROC instance. */
156
/* Return parameter: void * to the processor instance */
160
* Command arguments for PROC4430_close
162
struct proc4430_cmd_args_close {
163
struct proc_mgr_cmd_args command_args;
164
/* Common command args */
166
/* void * to the processor instance */