forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatform.h
More file actions
34 lines (21 loc) · 764 Bytes
/
platform.h
File metadata and controls
34 lines (21 loc) · 764 Bytes
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
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2022 Google LLC. All rights reserved.
* Author: Andy Ross <andyross@google.com>
*/
#ifndef PLATFORM_POSIX_PLATFORM_PLATFORM_H
#define PLATFORM_POSIX_PLATFORM_PLATFORM_H
#include <platform/lib/memory.h>
#define DMA_TRACE_LOCAL_SIZE 8192
#define HOST_PAGE_SIZE 4096
#define PLATFORM_MAX_CHANNELS 8
#define PLATFORM_MAX_STREAMS 16
#define DMA_TRACE_PERIOD 500000
#define DMA_TRACE_RESCHEDULE_TIME 500000
#define DMA_FLUSH_TRACE_SIZE (MAILBOX_TRACE_SIZE >> 2)
#define PLATFORM_DEFAULT_CLOCK 0
#define PLATFORM_DEFAULT_DELAY 12
#define HW_CFG_VERSION 0x010000
struct sof;
void posix_dma_init(struct sof *sof);
void posix_dai_init(struct sof *sof);
#endif /* PLATFORM_POSIX_PLATFORM_PLATFORM_H */