OpenBIC
OpenSource Bridge-IC
plat_cpu.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef PLAT_CPU_H
18#define PLAT_CPU_H
19
20#include <stdint.h>
21
22#define CPU_TIME_UNIT 100000000
23
24#define MONITOR_CPU_STACK_SIZE 600
25#define MONITOR_CPU_TIME_MS 1000
26#define MONITOR_SMIOUT_STACK_SIZE 400
27#define MONITOR_SMIOUT_TIME_MS 500
28
29#define SMIOUT_INDEX 9
30#define SMIOUT_TIMEOUT 90
31
32#define RDPKG_IDX_PKG_THERMAL_STATUS 0x14
33#define THERMAL_STATUS_DEASSERT 0
34#define THERMAL_STATUS_ASSERT 1
35
40void set_dam_pin();
41int pal_get_set_dam_status(uint8_t options, uint8_t *status);
42
46};
47
48#endif
uint8_t status
Definition: mctp_ctrl.h:1
void monitor_cpu_handler()
Definition: plat_cpu.c:50
void start_monitor_smi_thread()
Definition: plat_cpu.c:211
GET_SET_STATUS_OPTION
Definition: plat_cpu.h:43
@ SET_STATUS
Definition: plat_cpu.h:45
@ GET_STATUS
Definition: plat_cpu.h:44
int pal_get_set_dam_status(uint8_t options, uint8_t *status)
Definition: plat_cpu.c:276
void set_dam_pin()
Definition: plat_cpu.c:317
void start_monitor_cpu_thread()
Definition: plat_cpu.c:39
void monitor_smiout_handler()
Definition: plat_cpu.c:222