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

« back to all changes in this revision

Viewing changes to drivers/dsp/syslink/procmgr/processor.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
 
 * processor.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
 
#ifndef SYSLINK_PROCESSOR_H_
18
 
#define SYSLINK_PROCESSOR_H_
19
 
 
20
 
#include <linux/types.h>
21
 
 
22
 
/* Module level headers */
23
 
#include "procdefs.h"
24
 
 
25
 
/* ===================================
26
 
 *  APIs
27
 
 * ===================================
28
 
 */
29
 
/* Function to attach to the Processor. */
30
 
int processor_attach(void *handle, struct processor_attach_params *params);
31
 
 
32
 
/* Function to detach from the Processor. */
33
 
int processor_detach(void *handle);
34
 
 
35
 
/* Function to read from the slave processor's memory. */
36
 
int processor_read(void *handle, u32 proc_addr, u32 *num_bytes, void *buffer);
37
 
 
38
 
/* Function to read write into the slave processor's memory. */
39
 
int processor_write(void *handle, u32 proc_addr, u32 *num_bytes, void *buffer);
40
 
 
41
 
/* Function to get the current state of the slave Processor as maintained on
42
 
 * the master Processor state machine.
43
 
 */
44
 
enum proc_mgr_state processor_get_state(void *handle);
45
 
 
46
 
/* Function to set the current state of the slave Processor to specified value.
47
 
 */
48
 
void processor_set_state(void *handle, enum proc_mgr_state state);
49
 
 
50
 
/* Function to perform device-dependent operations. */
51
 
int processor_control(void *handle, int cmd, void *arg);
52
 
 
53
 
/* Function to translate between two types of address spaces. */
54
 
int processor_translate_addr(void *handle, void **dst_addr,
55
 
        enum proc_mgr_addr_type dst_addr_type, void *src_addr,
56
 
        enum proc_mgr_addr_type src_addr_type);
57
 
 
58
 
/* Function that registers for notification when the slave processor
59
 
 * transitions to any of the states specified.
60
 
 */
61
 
int processor_register_notify(void *handle, proc_mgr_callback_fxn fxn,
62
 
                void *args, enum proc_mgr_state state[]);
63
 
 
64
 
/* Function that returns the return value of specific processor info
65
 
 */
66
 
int processor_get_proc_info(void *handle, struct proc_mgr_proc_info *procinfo);
67
 
 
68
 
int processor_virt_to_phys(void *handle, u32 da, u32 *mapped_entries,
69
 
                                                u32 num_of_entries);
70
 
#endif