blob: 8da1d75c7a5c043b0855b04875d0628ab95c9e26 [file] [log] [blame]
Matt Wagantall11afeee2012-02-07 18:38:59 -08001/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
Stephen Boyde44ec392011-08-29 12:03:24 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12#ifndef __MSM_SCM_PAS_H
13#define __MSM_SCM_PAS_H
14
15enum pas_id {
16 PAS_MODEM,
17 PAS_Q6,
18 PAS_DSPS,
Stephen Boydd89eebe2011-09-28 23:28:11 -070019 PAS_TZAPPS,
Stephen Boyde44ec392011-08-29 12:03:24 -070020 PAS_MODEM_SW,
21 PAS_MODEM_FW,
Tianyi Gouca0aaac2012-07-27 14:13:29 -070022 PAS_WCNSS,
Matt Wagantall11afeee2012-02-07 18:38:59 -080023 PAS_SECAPP,
24 PAS_GSS,
Stephen Boyd7b973de2012-03-09 12:26:16 -080025 PAS_VIDC,
Stephen Boyde44ec392011-08-29 12:03:24 -070026};
27
Stephen Boyd866f9a22012-07-10 18:56:53 -070028#ifdef CONFIG_MSM_PIL
Stephen Boyde44ec392011-08-29 12:03:24 -070029extern int pas_init_image(enum pas_id id, const u8 *metadata, size_t size);
30extern int pas_auth_and_reset(enum pas_id id);
31extern int pas_shutdown(enum pas_id id);
32extern int pas_supported(enum pas_id id);
Stephen Boyd866f9a22012-07-10 18:56:53 -070033#else
34static inline int pas_init_image(enum pas_id id, const u8 *metadata,
35 size_t size)
36{
37 return 0;
38}
39static inline int pas_auth_and_reset(enum pas_id id)
40{
41 return 0;
42}
43static inline int pas_shutdown(enum pas_id id)
44{
45 return 0;
46}
47static inline int pas_supported(enum pas_id id)
48{
49 return 0;
50}
51#endif
52
Stephen Boyde44ec392011-08-29 12:03:24 -070053#endif