aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/syslink/notify_setup_proxy.h
blob: 383b3150a7d7e4e8473555fcdf55b1516e6d8ab0 (plain) (blame)
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
/*
 * notify_setup_proxy.h
 *
 * Proxy to connect notify setup to device specific implementation
 *
 * Copyright (C) 2008-2009 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.
 */

#if !defined(_NOTIFYSETUPPROXY_H_0x5f84)
#define _NOTIFYSETUPPROXY_H_0x5f84

#if defined(CONFIG_ARCH_OMAP4)
/* Function that will be called in Notify_attach */
extern int notify_setup_omap4_attach(u16 proc_id, void *shared_addr);
#define notify_setup_proxy_attach(proc_id, shared_addr)		\
			notify_setup_omap4_attach(proc_id, shared_addr)

/* Function that will be called in notify_stop */
extern int notify_setup_omap4_detach(u16 proc_id);
#define notify_setup_proxy_detach notify_setup_omap4_detach

/* Shared Memory Required for notify setup */
extern uint notify_setup_omap4_shared_mem_req(u16 proc_id, void *shared_addr);
#define notify_setup_proxy_shared_mem_req(proc_id, shared_addr)	\
			notify_setup_omap4_shared_mem_req(proc_id, shared_addr)

/* Is interrupt line available? */
extern bool notify_setup_omap4_int_line_available(u16 remote_proc_id);
#define notify_setup_proxy_int_line_available(remote_proc_id)	\
	notify_setup_omap4_int_line_available(remote_proc_id)
#else
/* Function that will be called in Notify_attach */
#define notify_setup_proxy_attach(proc_id, shared_addr)

/* Function that will be called in notify_stop */
#define notify_setup_proxy_detach

/* Shared Memory Required for notify setup */
#define notify_setup_proxy_shared_mem_req(proc_id, shared_addr)

/* Is interrupt line available? */
#define notify_setup_proxy_int_line_available(remote_proc_id)
#endif /* if defined (SYSLINK_PLATFORM_OMAPL1XX) */

#endif  /* !defined(_NOTIFYSETUPPROXY_H_0x5f84) */