OpenBIC
OpenSource Bridge-IC
plat_kernel_obj.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#include <zephyr.h>
18
19/* semaphore CPLD polling semaphore */
20void plat_ragular_cpld_polling_sem_handler(struct k_timer *timer);
24
25/* Timer for dc status checking */
26void plat_update_ubc_status(void);
27bool plat_get_ubc_status(void);
28
29/* Timer for power sequence event handling */
31
32/* mutex for pwrlevel */
33int pwr_level_mutex_lock(k_timeout_t timeout);
35void pwr_level_mutex_init(void);
void plat_ragular_cpld_polling_sem_handler(struct k_timer *timer)
Definition: plat_kernel_obj.c:34
bool plat_get_ubc_status(void)
Definition: plat_kernel_obj.c:78
void plat_handle_pwr_sequence_event(void)
Definition: plat_kernel_obj.c:124
void plat_activate_cpld_polling_semaphore_timer()
Definition: plat_kernel_obj.c:39
void plat_update_ubc_status(void)
Definition: plat_kernel_obj.c:72
int pwr_level_mutex_unlock(void)
Definition: plat_kernel_obj.c:136
int pwr_level_mutex_lock(k_timeout_t timeout)
Definition: plat_kernel_obj.c:131
void plat_wait_for_cpld_polling_trigger(void)
Definition: plat_kernel_obj.c:45
void pwr_level_mutex_init(void)
Definition: plat_hook.c:1949
void plat_trigger_cpld_polling(void)
Definition: plat_kernel_obj.c:50