-
Notifications
You must be signed in to change notification settings - Fork 350
Expand file tree
/
Copy pathplatform.h
More file actions
59 lines (45 loc) · 1.27 KB
/
platform.h
File metadata and controls
59 lines (45 loc) · 1.27 KB
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
54
55
56
57
58
59
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2018 Intel Corporation. All rights reserved.
*
* Author: Marcin Maka <marcin.maka@linux.intel.com>
*/
/**
* \file include/sof/platform.h
* \brief Platform API definition
* \author Marcin Maka <marcin.maka@linux.intel.com>
*/
#ifndef __SOF_PLATFORM_H__
#define __SOF_PLATFORM_H__
#include <platform/platform.h>
#if !defined(__ASSEMBLER__) && !defined(LINKER)
#include <stdint.h>
struct sof;
/** \addtogroup platform_api Platform API
* Platform API specification.
* @{
*/
/*
* APIs declared here are defined for every platform.
*/
/**
* \brief Platform specific implementation of the On Boot Complete handler.
* \param[in] boot_message Boot status code.
* \return 0 if successful, error code otherwise.
*/
int platform_boot_complete(uint32_t boot_message);
/**
* \brief Platform initialization entry, called during FW initialization.
* \param[in] sof Context.
* \return 0 if successful, error code otherwise.
*/
int platform_init(struct sof *sof);
/**
* \brief Platform specific context saving routine, called during DSP suspending.
* \param[in] sof Context.
* \return 0 if successful, error code otherwise.
*/
int platform_context_save(struct sof *sof);
/** @}*/
#endif
#endif /* __SOF_PLATFORM_H__ */