File: css_default.c

package info (click to toggle)
crust-firmware 0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,900 kB
  • sloc: ansic: 19,341; yacc: 596; lex: 479; makefile: 334; asm: 215; sh: 136; python: 42
file content (73 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (2)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright © 2020-2022 The Crust Firmware Authors.
 * SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-only
 */

#include <stdint.h>

#include "css.h"

/*
 * Generic implementation using the platform-provided constants.
 */
uint32_t WEAK
css_get_cluster_count(void)
{
	return MAX_CLUSTERS;
}

uint32_t WEAK
css_get_core_count(uint32_t cluster UNUSED)
{
	/* Assume each cluster contains the same number of cores. */
	return MAX_CORES_PER_CLUSTER;
}

/*
 * Generic implementation used when no platform support is available.
 */
uint32_t WEAK
css_get_irq_status(void)
{
	return 0;
}

/*
 * Generic implementation used when no platform customization is needed.
 */
void WEAK
css_suspend_css(uint32_t new_state UNUSED)
{
}

void WEAK
css_resume_css(uint32_t old_state UNUSED)
{
}

void WEAK
css_suspend_cluster(uint32_t cluster UNUSED, uint32_t new_state UNUSED)
{
}

void WEAK
css_resume_cluster(uint32_t cluster UNUSED, uint32_t old_state UNUSED)
{
}

void WEAK
css_suspend_core(uint32_t cluster UNUSED, uint32_t core UNUSED,
                 uint32_t new_state UNUSED)
{
}

void WEAK
css_resume_core(uint32_t cluster UNUSED, uint32_t core UNUSED,
                uint32_t old_state UNUSED)
{
}

void WEAK
css_init(void)
{
}