OpenBIC
OpenSource Bridge-IC
hal_c2h.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 C2H_NPCM_H
18#define C2H_NPCM_H
19
20typedef enum {
21 CR07_LDN = 0x07,
22 CR15_L_GIO = 0x15,
23 CR1A_L_PWD = 0x1A,
24 CR1B_L_FUN = 0x1B,
25 CR20_SID_H = 0x20,
26 CR21_SID_L = 0x21,
33 CR2D_CFD = 0x2D,
36
37void c2h_npcm_init(void);
38int get_chip_id(void);
39int get_chip_rev(void);
40int get_device_id(void);
41
42#endif
void c2h_npcm_init(void)
int get_device_id(void)
int get_chip_id(void)
CR_REG_Enum
Definition: hal_c2h.h:20
@ CR1B_L_FUN
Definition: hal_c2h.h:24
@ CR07_LDN
Definition: hal_c2h.h:21
@ CR2A_DEVICE_ID
Definition: hal_c2h.h:32
@ CR20_SID_H
Definition: hal_c2h.h:25
@ CR15_L_GIO
Definition: hal_c2h.h:22
@ CR29_SIOCF9
Definition: hal_c2h.h:31
@ CR21_SID_L
Definition: hal_c2h.h:26
@ CR1A_L_PWD
Definition: hal_c2h.h:23
@ CR26_SIOCF6
Definition: hal_c2h.h:29
@ CR28_SIOGPS
Definition: hal_c2h.h:30
@ CR24_CHPREV
Definition: hal_c2h.h:27
@ CR25_SIOCF5
Definition: hal_c2h.h:28
@ CR2F_SIOSFR
Definition: hal_c2h.h:34
@ CR2D_CFD
Definition: hal_c2h.h:33
int get_chip_rev(void)