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.
17
#ifndef SYSLINK_PROCESSOR_H_
18
#define SYSLINK_PROCESSOR_H_
20
#include <linux/types.h>
22
/* Module level headers */
25
/* ===================================
27
* ===================================
29
/* Function to attach to the Processor. */
30
int processor_attach(void *handle, struct processor_attach_params *params);
32
/* Function to detach from the Processor. */
33
int processor_detach(void *handle);
35
/* Function to read from the slave processor's memory. */
36
int processor_read(void *handle, u32 proc_addr, u32 *num_bytes, void *buffer);
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);
41
/* Function to get the current state of the slave Processor as maintained on
42
* the master Processor state machine.
44
enum proc_mgr_state processor_get_state(void *handle);
46
/* Function to set the current state of the slave Processor to specified value.
48
void processor_set_state(void *handle, enum proc_mgr_state state);
50
/* Function to perform device-dependent operations. */
51
int processor_control(void *handle, int cmd, void *arg);
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);
58
/* Function that registers for notification when the slave processor
59
* transitions to any of the states specified.
61
int processor_register_notify(void *handle, proc_mgr_callback_fxn fxn,
62
void *args, enum proc_mgr_state state[]);
64
/* Function that returns the return value of specific processor info
66
int processor_get_proc_info(void *handle, struct proc_mgr_proc_info *procinfo);
68
int processor_virt_to_phys(void *handle, u32 da, u32 *mapped_entries,