OpenBIC
OpenSource Bridge-IC
plat_isr.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_FUNC_H
18#define PLAT_FUNC_H
19
20#include <stdint.h>
21
22#define MAX_PRESS_SLED_BTN_TIME_S 4
23#define MAX_RE_ENABLE_USB_POWER_TIME_MS 250 // ms
24#define MAX_PRESS_SLOT_BTN_TIME_S 4
25#define MAX_BUTTON_12V_CYCLE_INTERVAL_TIME_MS 2000
26#define ADD_BUTTON_SEL_DELAY_MS 500
27
28#define SYSTEM_PRESENT 0x0
29#define SYSTEM_ABSENT 0x1
30#define CABLE_PRESENT 0x0
31#define CABLE_ABSENT 0x1
32
33void ISR_PWROK_SLOT1();
34void ISR_PWROK_SLOT3();
35void ISR_SLED_CYCLE();
39void ISR_SLOT1_BUTTON();
40void ISR_SLOT3_BUTTON();
41void set_BIC_slot_isolator(uint8_t pwr_state_gpio_num, uint8_t isolator_gpio_num);
42void set_sled_cycle();
43
44#endif
void ISR_PWROK_SLOT3()
Definition: plat_isr.c:55
void ISR_PWROK_SLOT1()
Definition: plat_isr.c:50
void ISR_USB_POWER_LOST()
Definition: plat_isr.c:181
void set_BIC_slot_isolator(uint8_t pwr_state_gpio_num, uint8_t isolator_gpio_num)
Definition: plat_isr.c:240
void ISR_SLOT3_BUTTON()
Definition: plat_isr.c:215
void ISR_SLOT1_BUTTON()
Definition: plat_isr.c:190
void ISR_SLOT1_PRESENT()
Definition: plat_isr.c:89
void ISR_SLOT3_PRESENT()
Definition: plat_isr.c:135
void set_sled_cycle()
Definition: plat_isr.c:269
void ISR_SLED_CYCLE()
Definition: plat_isr.c:60