diff options
Diffstat (limited to 'arch/arm/plat-omap/include/syslink/platform.h')
-rw-r--r-- | arch/arm/plat-omap/include/syslink/platform.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/syslink/platform.h b/arch/arm/plat-omap/include/syslink/platform.h new file mode 100644 index 00000000000..9dbae5cf152 --- /dev/null +++ b/arch/arm/plat-omap/include/syslink/platform.h @@ -0,0 +1,44 @@ +/* + * platform.h + * + * Defines the platform functions to be used by SysMgr module. + * + * Copyright (C) 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. + */ + +#ifndef _PLATFORM_H_ +#define _PLATFORM_H_ + +#define PLATFORM_S_SUCCESS 0 +#define PLATFORM_E_FAIL -1 +#define PLATFORM_E_INVALIDARG -2 + +/* ============================================================================= + * APIs + * ============================================================================= + */ +/* Function to setup the platform */ +s32 platform_setup(void); + +/* Function to destroy the platform */ +s32 platform_destroy(void); + +/* Function called when slave is loaded with executable */ +int platform_load_callback(u16 proc_id, void *arg); + +/* Function called when slave is in started state*/ +int platform_start_callback(u16 proc_id, void *arg); + +/* Function called when slave is stopped state */ +int platform_stop_callback(u16 proc_id, void *arg); + +#endif /* ifndef _PLATFORM_H_ */ |