Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 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 __MACH_PERIPHERAL_LOADER_H |
| 13 | #define __MACH_PERIPHERAL_LOADER_H |
| 14 | |
| 15 | #ifdef CONFIG_MSM_PIL |
| 16 | extern void *pil_get(const char *name); |
| 17 | extern void pil_put(void *peripheral_handle); |
| 18 | extern void pil_force_shutdown(const char *name); |
| 19 | extern int pil_force_boot(const char *name); |
| 20 | #else |
| 21 | static inline void *pil_get(const char *name) { return NULL; } |
| 22 | static inline void pil_put(void *peripheral_handle) { } |
| 23 | static inline void pil_force_shutdown(const char *name) { } |
| 24 | static inline int pil_force_boot(const char *name) { return -ENOSYS; } |
| 25 | #endif |
| 26 | |
| 27 | #endif |