OpenBIC
OpenSource Bridge-IC
plat_class.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 <stdbool.h>
18
#include <stdint.h>
19
20
#ifndef PLAT_CLASS_H
21
#define PLAT_CLASS_H
22
23
enum
HSC_MODULE
{
24
HSC_MODULE_ADM1272
,
25
HSC_MODULE_XDP710
,
26
HSC_MODULE_UNKNOWN
,
27
};
28
enum
TEMP_MODULE
{
29
SB_TMP461
,
30
SB_NCT214
,
31
TEMP_MODULE_UNKNOWN
,
32
};
33
enum
BOARD_STAGE
{
34
BOARD_STAGE_EVT
,
35
BOARD_STAGE_DVT
,
36
BOARD_STAGE_UNKNOWN
,
37
};
38
void
init_aalc_config
();
39
uint8_t
get_hsc_module
();
40
uint8_t
get_temp_module
();
41
uint8_t
get_board_stage
();
42
bool
evt_access
(uint8_t
sensor_num
);
43
#endif
BOARD_STAGE
BOARD_STAGE
Definition:
plat_class.h:33
BOARD_STAGE_UNKNOWN
@ BOARD_STAGE_UNKNOWN
Definition:
plat_class.h:36
BOARD_STAGE_DVT
@ BOARD_STAGE_DVT
Definition:
plat_class.h:35
BOARD_STAGE_EVT
@ BOARD_STAGE_EVT
Definition:
plat_class.h:34
init_aalc_config
void init_aalc_config()
Definition:
plat_class.c:25
get_hsc_module
uint8_t get_hsc_module()
Definition:
plat_class.c:30
get_board_stage
uint8_t get_board_stage()
Definition:
plat_class.c:40
HSC_MODULE
HSC_MODULE
Definition:
plat_class.h:23
HSC_MODULE_XDP710
@ HSC_MODULE_XDP710
Definition:
plat_class.h:25
HSC_MODULE_ADM1272
@ HSC_MODULE_ADM1272
Definition:
plat_class.h:24
HSC_MODULE_UNKNOWN
@ HSC_MODULE_UNKNOWN
Definition:
plat_class.h:26
TEMP_MODULE
TEMP_MODULE
Definition:
plat_class.h:28
TEMP_MODULE_UNKNOWN
@ TEMP_MODULE_UNKNOWN
Definition:
plat_class.h:31
SB_NCT214
@ SB_NCT214
Definition:
plat_class.h:30
SB_TMP461
@ SB_TMP461
Definition:
plat_class.h:29
evt_access
bool evt_access(uint8_t sensor_num)
Definition:
plat_class.c:47
get_temp_module
uint8_t get_temp_module()
Definition:
plat_class.c:35
sensor_num
uint8_t sensor_num
Definition:
storage_handler.h:6
meta-facebook
aalc-rpu
src
platform
plat_class.h
Generated by
1.9.2